About
Language - Comment in bash
Syntax
# A comment
command # comment
echo CommandName InputFiles `#1st comment` \
--option1 arg1 `#2nd comment` \
--option2 arg2 `#3rd comment`
Configuration
interactive_comments
In a non-interactive shell, or an interactive shell in which the interactive_comments option to the shopt builtin is enable, a word beginning with # causes that word and all remaining characters on that line to be ignored.
An interactive shell without the interactive_comments option enabled does not allow comments. The interactive_comments option is on by default in interac- tive shells.