> I have a question for you.
> How to comment a paragraph in bash file ?
> I read a lot of documentation and I dont find anything. May be I miss
> It but i need to know.

  There isn't a special convention for a paragraph comment.
You can start each line in your paragraph with a '#' character.
That is common practice.

# This is a
# multiline comment.

If you wanted to comment out several lines without adding a comment
character to each one, you could use a 'here' document with no command
to send it to.

<<\COMMENT
  This is a
  multiline comment.
COMMENT

It would be safer to quote a character in the here document delimiter as I did
above.  That will prevent command expansion of the comment text which might
have unintended side-effects.

--
Mike Stroyan
[EMAIL PROTECTED]


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash
  • comment lyubo hristov
    • Re: comment Mike Stroyan

Reply via email to