Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Docs fix
- X-seq: zsh-workers 4452
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hacking and development)
- Subject: Re: Docs fix
- Date: Mon, 26 Oct 1998 19:25:56 -0600 (CST)
- In-reply-to: <981026155319.ZM11570@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Oct 26, 98 03:53:19 pm"
- Reply-to: hzoli@xxxxxxxxxxxxxxx
> > 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