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

Re: `cd .` in non-existent directory leads into weird corner case



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: Reverse Date, Date, Thread, Author