From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17168 invoked from network); 27 Sep 1999 13:44:33 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Sep 1999 13:44:33 -0000 Received: (qmail 7920 invoked by alias); 27 Sep 1999 13:42:46 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2621 Received: (qmail 7913 invoked from network); 27 Sep 1999 13:42:45 -0000 Date: Mon, 27 Sep 1999 14:42:35 +0100 From: Adam Spiers To: zsh-users@sunsite.auc.dk Subject: Re: cd, pwd and symlinks Message-ID: <19990927144235.A11234@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19990927153430.A22914@youkaidi.irisa.fr> X-URL: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.9 i686 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 :-)