Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: New _cd ignores matching specs
- X-seq: zsh-workers 15198
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "ZSH Workers Mailing List" <zsh-workers@xxxxxxxxxx>
- Subject: PATCH: Re: New _cd ignores matching specs
- Date: Mon, 2 Jul 2001 06:52:13 +0000
- In-reply-to: <000401c102be$6002e9d0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <000401c102be$6002e9d0$21c9ca95@xxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author