Lines starting with # are comments. The first line may begin with #! but it is still a comment on bash and is simply used to indicate the interpreter to be used for the file. All other lines beginning with # are absolutely not important for bash , whether the next character has $ or something else.