From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8169 invoked from network); 30 Sep 1999 19:05:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Sep 1999 19:05:59 -0000 Received: (qmail 25764 invoked by alias); 30 Sep 1999 19:05:42 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2639 Received: (qmail 25754 invoked from network); 30 Sep 1999 19:05:42 -0000 Date: Thu, 30 Sep 1999 20:05:41 +0100 From: Adam Spiers To: zsh-users@sunsite.auc.dk Subject: Re: cd, pwd and symlinks Message-ID: <19990930200541.A3469@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh-users@sunsite.auc.dk References: <19990927105103.A21392@youkaidi.irisa.fr> <19990927140204.A10336@thelonious.new.ox.ac.uk> <19990927153430.A22914@youkaidi.irisa.fr> <19990927144235.A11234@thelonious.new.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19990927144235.A11234@thelonious.new.ox.ac.uk> X-URL: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.9 i686 Adam Spiers, on thelonious (adam@thelonious.new.ox.ac.uk) wrote: > Hubert Canon (Hubert.Canon@irisa.fr) wrote: > > But I am a bit confused, because I would like that `cd ..' had the > > present behaviour (when these options are unset) and that I use > > another construct (like `cd ./..' for example) when I want to follow > > links. > > Sounds like a reasonable request. You could implement it with a > function: > > function ccd { > # Chase Change Directory > setopt localopts chaselinks > builtin cd "$@" > } > > and then do > > % ccd .. > > or even as a wrapper around cd, but I'll leave that as an exercise to > the reader :-) This is of course all stupid. If I had a brain I would have consulted the manual before giving advice. Check out the -L and -P options to cd.