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

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



Once pwd is set to '.', $PWD has different value than pwd.
Is this intensional?

/tmp% mkdir x && cd x
/tmp/x% rmdir ../x
/tmp/x% cd .
.% pwd
.
.% echo $PWD
/tmp/x
.% cd .
.% pwd
.
.% echo $PWD

.% 



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