Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: a directory `a#'.
- X-seq: zsh-workers 10226
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: a directory `a#'.
- Date: Fri, 24 Mar 2000 12:55:52 +0100 (MET)
- In-reply-to: Tanaka Akira's message of 24 Mar 2000 20:02:30 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% mkdir a\#
> is27e1u11% touch a\#/b
> is27e1u11% ls a\#/
>
> This inserts a space rather than `b '.
Small quoting problem when testing for ambiguity.
Bye
Sven
diff -ru ../z.old/Completion/Core/_path_files Completion/Core/_path_files
--- ../z.old/Completion/Core/_path_files Fri Mar 24 12:23:16 2000
+++ Completion/Core/_path_files Fri Mar 24 12:54:58 2000
@@ -417,9 +418,9 @@
# Next we see if this component is ambiguous.
if [[ "$tmp3" = */* ]]; then
- tmp4=$tmp1[(I)^${tmp1[1]%%/*}/*]
+ tmp4=$tmp1[(I)^${(q)tmp1[1]%%/*}/*]
else
- tmp4=$tmp1[(I)^${tmp1[1]}]
+ tmp4=$tmp1[(I)^${(q)tmp1[1]}]
fi
if [[ "$tpre" = */* ]]; then
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author