Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd, pwd and symlinks
- X-seq: zsh-users 2627
- From: "Stefan Monnier" <monnier+lists/zsh/users/news/@tequila.cs.yale.edu>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: cd, pwd and symlinks
- Date: 27 Sep 1999 20:47:26 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990927105103.A21392@xxxxxxxxxxxxxxxxx> <19990927140204.A10336@xxxxxxxxxxxxxxxxxxxxxxx> <5lemfkez1d.fsf@xxxxxxxxxxxxxxxxxxx> <990928001116.ZM17774@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: monnier@xxxxxxxxxxxxxxxxxxx
>> 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