Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: cd '' doesn't produce an error
- X-seq: zsh-workers 22120
- From: Ulrik Haugen <qha@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: BUG: cd '' doesn't produce an error
- Date: Wed, 04 Jan 2006 23:30:01 +0100
- Cancel-lock: sha1:FuTyUlwk0pR8huP/AHu9Ezegrko=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <87zmmvxl3g.fsf@xxxxxxxxxxxxxxx> <20051221102159.44d9f5ca.pws@xxxxxxx> <877j9mycf9.fsf@xxxxxxxxxxxxxxx> <EXCHANGE03jSFUMCGlb00000a49@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> wrote:
> That's because of the special handling of ".": if it doesn't occur in
> cdpath, it's assumed to occur first.
> That's long-standing behaviour, although I think the documentation (for
> cd) is a bit screwy...
Ok, after reading your documentation changes and tinkering a bit my
self I think I've gotten a grasp on cdpath.
It seems to me that having another directory in cdpath before . would
be quite unusual, and that was the one case when cd to the empty
string was even remotely useful. I don't think that motivates not
complaining about an argument that you can't stat(2), but I can't
think of anything but subjective reasons any more though. :|
Messages sorted by:
Reverse Date,
Date,
Thread,
Author