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

Re: Docs fix



> > The first one is just some stuff for the FAQ about $* vs "$@"
> 
> The FAQ was correct without this patch.  $* and "$@" are equivalent in
> zsh, unless you run it under Bourne sh or ksh emulation (i.e. with the
> SH_WORD_SPLIT option set).

Not exactly.  "$@" keeps empty arguments and independent of option and
IFS settings, neither of which is true for $*.  It's good habbit to use
"$@".  The use of $* is almost always wrong in bourne/korn shell scripts
still people use that all the time.

Zoli



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