From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26810 invoked from network); 1 Mar 1999 13:26:48 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Mar 1999 13:26:48 -0000 Received: (qmail 27662 invoked by alias); 1 Mar 1999 13:26:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5575 Received: (qmail 27653 invoked from network); 1 Mar 1999 13:26:28 -0000 From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: PATCH: Re: pws-10 RE: zsh-3.1.5-pws-9: _path_files and symbolic links Date: Mon, 1 Mar 1999 16:24:51 +0300 Message-ID: <003c01be63e6$e2fcd180$21c9ca95@mowp.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2013.2901 In-Reply-To: <199903011303.OAA14813@beta.informatik.hu-berlin.de> Should it not be tested in _path_files? What if I want to use other array rather than cdpath in other function? It is really hard to always remember to test it before using. And, BTW, is it not a typo in _path_files: liniepath='' I'd expect it to be linepath (not that it helps much). /andrej > That's the result of not testing ig `cdpath' is set. > > Bye > Sven > > diff -u oc/Builtins/_cd Completion/Builtins/_cd > --- oc/Builtins/_cd Mon Mar 1 13:12:40 1999 > +++ Completion/Builtins/_cd Mon Mar 1 13:54:51 1999 > @@ -1,3 +1,7 @@ > #defcomp cd > > -_files -W cdpath -g '*(-/)' > +if (( $#cdpath )); then > + _files -W cdpath -/ > +else > + _files -/ > +fi > > -- > Sven Wischnowsky wischnow@informatik.hu-berlin.de > >