Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible bug with cd completion
- X-seq: zsh-workers 15608
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: martin.ebourne@xxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Subject: Re: Possible bug with cd completion
- Date: Thu, 9 Aug 2001 15:52:49 +0000
- In-reply-to: <OF0FB43A3C.07298D98-ON80256AA3.00348BBA@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <OF0FB43A3C.07298D98-ON80256AA3.00348BBA@xxxxxxxxxxxxxxx>
On Aug 9, 10:38am, martin.ebourne@xxxxxxxxxxxx wrote:
}
} This seems to be a problem with the handling of cdablevars in _cd.
Try this:
Index: Completion/Zsh/Command/_cd
===================================================================
--- Completion/Zsh/Command/_cd 2001/06/27 16:40:02 1.3
+++ Completion/Zsh/Command/_cd 2001/08/09 15:50:44
@@ -36,7 +36,7 @@
tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
# With cdablevars, we can complete foo as if ~foo/
- if [[ -o cdablevars && -n "$PREFIX" ]]; then
+ if [[ -o cdablevars && -n "$PREFIX" && "$PREFIX" != <-> ]]; then
if [[ "$PREFIX" != */* ]]; then
_tilde && ret=0
else
--
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