From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6406 invoked from network); 29 Sep 2002 06:54:47 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Sep 2002 06:54:47 -0000 Received: (qmail 19881 invoked by alias); 29 Sep 2002 06:54:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17741 Received: (qmail 19870 invoked from network); 29 Sep 2002 06:54:41 -0000 From: "Bart Schaefer" Message-Id: <1020929065406.ZM2411@candle.brasslantern.com> Date: Sun, 29 Sep 2002 06:54:06 +0000 In-Reply-To: <20020929054913.GA29838@dman.com> Comments: In reply to Clint Adams "../ in PATH and completion" (Sep 29, 1:49am) References: <20020929054913.GA29838@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams , zsh-workers@sunsite.dk Subject: Re: ../ in PATH and completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 29, 1:49am, Clint Adams wrote: } Subject: ../ in PATH and completion } } A/1% PATH=/tmp/testdir } A/2% fo } (will offer foobin as a completion, and hash it) } } or } } B/1% PATH=/tmp/otherdir/../testdir } B/2% fo } (will not offer foobin, and not hash it) This is caused by hashdirs() skipping directories for which isrelative() returns true. It's entirely possible that isrelative() should not return true for /absolute/../rest; but as of this writing, it does. } In contrast, bin_whence likes it just fine. That's because bin_whence() calls findcmd(), which does a direct search of the path without using hashdirs(). The completion system always uses the hash tables, and is therefore at the mercy of the HASH_* setopts. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net