From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14620 invoked from network); 13 Apr 2001 15:39:06 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Apr 2001 15:39:06 -0000 Received: (qmail 18877 invoked by alias); 13 Apr 2001 15:39:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13977 Received: (qmail 18861 invoked from network); 13 Apr 2001 15:39:02 -0000 From: "Bart Schaefer" Message-Id: <1010413153830.ZM1837@candle.brasslantern.com> Date: Fri, 13 Apr 2001 15:38:30 +0000 In-Reply-To: Comments: In reply to Wayne Davison "Re: Automatic hash -d" (Apr 13, 1:01am) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh Workers Subject: Re: Automatic hash -d MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 13, 1:01am, Wayne Davison wrote: } Subject: Re: Automatic hash -d } } I applied both of your changes to _path_files, and things are working } very nicely now. I'll let you know if I encounter any problems. Here's one potential oddity: % z=/usr/local/share/zsh % ls ~`echo z`/ Completing unknown user `echo z` And yet ~z has now been made into a nameddir. Perhaps backticks should be treated like $(...) and therefore passed through the parameter expansion branch in _path_files? The expression would be something like: if [[ "$pre" = *(\`[^\`]#\`|\$)*/* && ... Of course one must be careful when completing command substitutions in general. -- 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