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

Re: FAQ bug



Phil Pennock wrote:
> In section 2.3 of the new FAQ, the first example of the zsh function for
> cd is missing the closing double-quotes:
>  cd() { builtin cd "$@; echo $PWD; }

yup, I've fixed that

> As a thought: Bart pointed out $==* as an alternative to "$@" (one would
> almost think he wanted to free up the syntax for something else :^) ...

There was a problem pointed out by Zoli with $* which still applies to
$==*, namely if you have cd as a function and want to do `cd foo ""'
the null string gets dropped, and it means something completely
different.  There is now a mention of the difference between "$@" and
$* in the shwordsplit section.  I can point out about $==*, if you
don't think it's going to make people's hair stand on end.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy



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