Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: a directory `a#'.



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