Block comments on bash script

Asked

Viewed 376 times

0

I need to comment on a code block and found the following way it worked:

<<COMENTÁRIO
meus comentários aqui...
...
COMENTÁRIO

I wonder if this is the right way to do it, I read on a website and said that the shell actually disregards this string because it’s not being used, as if it’s a comment but it’s actually not.

I’ve tried too

<# comentários aqui..#>

-*- comentários aqui.. -*-

:'
Comentários aqui..
'

but none of them worked..

  • 1

    Try **: ' ** again by placing a space between the two characters.

  • It worked!! was the lack of a space after the two points, if you can put as answer for me to check.

1 answer

2


Missing space between first line characters in the following option:

: '
Comentarios aqui..
'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.