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

Re: cd, pwd and symlinks



>> I must say I don't like the names and defaults.  The names give the
>> impression that chasing links is a very unusual feature while it's the
>> normal unix behavior.
> It's not, however, the normal zsh behavior, and has not been for a very long
> time.  It may even date back to a specific personal preference of Falstad's;
> I don't recall for certain now.

That's indeed what I'm complaining about.  The default behavior is very
non-unixish which is surprising for a unix-only tool.

> "pwd" is nothing more than a slightly fancified alias for "echo $PWD", and
> PWD does not get reset every time zsh prints a prompt (unless you do it in
> your precmd function).  Rather, it gets reset every time you "cd".

But how hard would it be to have `pwd' do a stat("$PWD") and stat(".")
and compare the inode to make sure the current $PWD is still valid ?


	Stefan



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