From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15837 invoked from network); 18 Nov 1998 13:26:49 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Nov 1998 13:26:49 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id IAA18289; Wed, 18 Nov 1998 08:23:14 -0500 (EST) Resent-Date: Wed, 18 Nov 1998 08:23:14 -0500 (EST) Message-Id: <9811181306.AA62590@ibmth.df.unipi.it> To: zsh-workers@math.gatech.edu Subject: Re: bug 3.1.5 symlinks & cd In-Reply-To: "Sven Wischnowsky"'s message of "Wed, 18 Nov 1998 10:09:34 NFT." <199811180909.KAA14049@beta.informatik.hu-berlin.de> Date: Wed, 18 Nov 1998 14:06:40 +0100 From: Peter Stephenson Resent-Message-ID: <"lY3EE2.0.iT4.2fiKs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4669 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sven Wischnowsky wrote: > So the question is: do you think that this is enough (probably with > some more work on the function) or should we build this into the shell? Isn't the problem only with ../ ? -/ and the rest happily follow symlinks, it's only when going up there's a problem. In that case, it would be OK to use -/ most of the time and only have a special function when there's a ../ in the string so far. As the only case where you would normally use this is ../ at the start (although I've been known to use $PWD/.. when I needed an absolut path), I should have thought a shell function for this one case would have been quite good enough. ../../ etc. is a complication, but one a function could still easily handle. (Unless I've missed some other potential problem.) Presumably it will one day become possible to replace the (../)# with a truncated version of $PWD, then reapply -/ using the -W option to compctl to generate the completions you want. Then the script solution ought to become pretty painless. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56100 Pisa, Italy