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, Apr 2, 2012 at 13:10, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:

> One (semi-)realistic case I came up with, one shell sits in a
> directory, someone else first moves the directory, then deletes it,
> then the shell tries to 'cd ..'. In this case I would like it to end
> up in the new parent directory as it does now [1], not the old
> "$PWD:h". (with chasedots/-P) (and even if I did 'cd .' first for some
> weird reason).

If feasible, I agree that this would be nice.


Richard



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