Skip to content
Advertisement

Tag: comments

Does Bash ignore # after command?

I know that Bash ignores the # character at the beginning of shell script lines. But in documentation I’d like to add them at the end of lines for documentation: Just in case somebody copies and pastes the literal information I’ve written, will Bash ignore everything after the # character? For every command? (It seems to work in informal testing,

Advertisement