Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Comment behaviour



ZSH_VERSION: 5.3.1-test-2

Example code produced the following output:
  /home/user/.zshrc:<number of last line>: parse error near `\n'

[ -f /bin/zsh ] && {
  # code
}# A comment.   <<<--- point of error(no space after brace)
IF
} # A comment.   <<<--- no error(space after brace)

Also checked "(#", ")#", and "{#" with no errors. FWIW

BUG or did I miss something in the man page? # after a brace in
a nested statement would be valid, but didn't expect it here.

Thanks,

Jim


Messages sorted by: Reverse Date, Date, Thread, Author