Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: FAQ bug
- X-seq: zsh-workers 4686
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: Re: FAQ bug
- Date: Wed, 25 Nov 1998 09:57:29 +0100
- In-reply-to: "Phil Pennock"'s message of "Tue, 24 Nov 1998 19:15:29 NFT." <19981124191529.05649@xxxxxxxxxxxxxxxxxxxxx>
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