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

minor parsing bug in zsh 3.0.8



hello, world\n

zsh won't parse function definitions with a space between the parentheses:

# foo ( ) { echo foo }
zsh: parse error near `}'
# foo () { echo foo } 
# echo $ZSH_VERSION
3.0.8

The draft of the next POSIX spec makes ( and ) in function definitons
separate tokens,

	function_definition : fname '(' ')' linebreak function_body

You might want to fix this for proper POSIX conformance. Thanks!

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)



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