Zsh Mailing List Archive
Messages sorted by:
Re: `cd .` in non-existent directory leads into weird corner case
- X-seq: zsh-users 16952
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: `cd .` in non-existent directory leads into weird corner case
- Date: Mon, 2 Apr 2012 12:00:08 +0100
- In-reply-to: <CAHYJk3QPQC-P8wbpMJDkxvdww-Lar3L+AoaHzM8rh_rO=Z=zYA@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <CAD77+gT4LXRyTL8V1UZrNfCohyJ9peTNdfZ=G7Q-sJcDnyNE8Q@mail.gmail.com> <120327073414.ZM6783@torch.brasslantern.com> <CAD77+gSn9zrTHDMj=zi_Y5M6b86pOizkUin8zVVEAU1aTfuKfw@mail.gmail.com> <email@example.com> <CAHYJk3QPQC-P8wbpMJDkxvdww-Lar3L+AoaHzM8rh_rO=Z=zYA@mail.gmail.com>
On Mon, 2 Apr 2012 12:56:55 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >> Just to make sure this does not get lost, do we agree that not
> >> changing $PWD to a literal dot would make sense? Escalating the ENOENT
> >> to the user is probably the best approach.
> > Sounds OK. Silently failing and changing the directory reported doesn't
> > really do a lot of good to anyone.
> Can we keep the current behaviour for cd -P?
I think that only those cases that currently give up and silently revert
to "." as the current directory would be affected, so anything that
already did something sensible would still do that. Certainly that's
what we should be aiming for.
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
Messages sorted by: