[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comment

From: Mike Stroyan
Subject: Re: comment
Date: Sun, 9 Apr 2006 10:35:00 -0600

> 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.

  This is a
  multiline 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]