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

Re: minor parsing bug in zsh 3.0.8



On May 7,  4:02pm, Jens Schweikhardt wrote:
} 
} zsh won't parse function definitions with a space between the parentheses:
} 
} # foo ( ) { echo foo }
} zsh: parse error near `}'

It will if you `setopt SH_GLOB'.  The POSIX rules conflict with zsh's own
globbing rules.  There are a number of options one has to set before the
shell will closely emulate POSIX; the easiest way to get them all is to
use the `emulate sh' command.


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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