From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11060 invoked from network); 2 Jul 2001 06:53:57 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jul 2001 06:53:57 -0000 Received: (qmail 2883 invoked by alias); 2 Jul 2001 06:52:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15198 Received: (qmail 2871 invoked from network); 2 Jul 2001 06:52:58 -0000 From: "Bart Schaefer" Message-Id: <1010702065213.ZM2321@candle.brasslantern.com> Date: Mon, 2 Jul 2001 06:52:13 +0000 In-Reply-To: <000401c102be$6002e9d0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "New _cd ignores matching specs" (Jul 2, 10:15am) References: <000401c102be$6002e9d0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH Workers Mailing List" Subject: PATCH: Re: New _cd ignores matching specs MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 2, 10:15am, Andrej Borsenkow wrote: } Subject: New _cd ignores matching specs } } bor@itsrm2% cd z-4TAB } No matches for: `user', `named directory', `local directories', or } `directories in cdpath' } } bor@itsrm2% cd zTAB } bor@itsrm2% cd zip-2.3/ } Completing directories in cdpath } zip-2.3/ zlib-1.1.3/ zsh/ zsh-4.0.x/ The problem isn't with _cd, it's with _tilde. --- zsh-forge/current/Completion/Zsh/Context/_tilde Thu Jun 28 01:35:36 2001 +++ zsh-4.0/Completion/Zsh/Context/_tilde Sun Jul 1 23:49:39 2001 @@ -6,7 +6,7 @@ [[ -n "$compstate[quote]" ]] && return 1 -local expl suf ret +local expl suf ret=1 if [[ "$SUFFIX" = */* ]]; then ISUFFIX="/${SUFFIX#*/}$ISUFFIX" @@ -28,3 +28,5 @@ (( ret )) || return 0 done + +return ret -- 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