From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24371 invoked from network); 28 Sep 1999 00:12:31 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Sep 1999 00:12:31 -0000 Received: (qmail 4672 invoked by alias); 28 Sep 1999 00:11:24 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2626 Received: (qmail 4665 invoked from network); 28 Sep 1999 00:11:22 -0000 From: "Bart Schaefer" Message-Id: <990928001116.ZM17774@candle.brasslantern.com> Date: Tue, 28 Sep 1999 00:11:16 +0000 In-Reply-To: <5lemfkez1d.fsf@tequila.cs.yale.edu> Comments: In reply to "Stefan Monnier" "Re: cd, pwd and symlinks" (Sep 27, 7:05pm) References: <19990927105103.A21392@youkaidi.irisa.fr> <19990927140204.A10336@thelonious.new.ox.ac.uk> <5lemfkez1d.fsf@tequila.cs.yale.edu> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: zsh-users@sunsite.auc.dk Subject: Re: cd, pwd and symlinks MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 27, 7:05pm, Stefan Monnier wrote: > Subject: Re: cd, pwd and symlinks > >>>>> "Adam" == Adam Spiers writes: > > Put `setopt chaselinks' or `setopt chasedots' in your .zshrc. From > > the info pages: > > 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. > But apart from that, I'm more often annoyed by `pwd' not checking the > value it returns "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". The builtin pwd in bash and (I think) ksh also have the same behavior. There is no builtin pwd in tcsh, but tcsh does not reset $cwd following such a "mv" command. You can always put disable pwd in your init files somewhere, to force zsh to run the external pwd command instead.