From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17100 invoked from network); 27 Sep 1999 13:36:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Sep 1999 13:36:07 -0000 Received: (qmail 6159 invoked by alias); 27 Sep 1999 13:34:51 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2620 Received: (qmail 5999 invoked from network); 27 Sep 1999 13:34:41 -0000 Date: Mon, 27 Sep 1999 15:34:31 +0200 From: Hubert Canon To: zsh-users@sunsite.auc.dk Subject: Re: cd, pwd and symlinks Message-ID: <19990927153430.A22914@youkaidi.irisa.fr> References: <19990927105103.A21392@youkaidi.irisa.fr> <19990927140204.A10336@thelonious.new.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.7us In-Reply-To: <19990927140204.A10336@thelonious.new.ox.ac.uk> Adam Spiers écrivait : > Hubert Canon (Hubert.Canon@irisa.fr) wrote: > > I have strange behaviours with symlinks to directories. > > [snip] > > Put `setopt chaselinks' or `setopt chasedots' in your .zshrc. From > the info pages: Thank you. I didn't see these options. 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. youkaidi ~ % mkdir foo youkaidi ~ % mkdir bar youkaidi ~ % mkdir foo/bar youkaidi ~ % cd bar youkaidi ~/bar % ln -s ../foo/bar foo youkaidi ~/bar % cd foo youkaidi ~/bar/foo % l .. # that's why I prefer chase_links unset bar/ youkaidi ~/bar/foo % cd .. youkaidi ~/bar % cd foo # that's why I prefer chase_dots unset youkaidi ~/bar/foo % cd ./.. youkaidi ~/foo % # this the new behaviour I wish