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

Re: PATCH: Re: completion problem with filename including #



In article <200008031110.NAA09282@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> Damn. This `quoting of glob characters' just made it one more step up
> in my list of things that would be nice to have in C-code, efficiently.

Thanks.

> +    tmp1=( ${tmp1//(#b)([][()|*?^#~<>])/\\${match[1]}} )

I tried test some special characters other than # and found that > and
\ has a problem.

Z(2):akr@flux% Src/zsh -f
flux% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
flux% mkdir -p '>aa/bb' '\cc/dd'
flux% ls -ld '>aa' '\cc'
drwxr-xr-x  3 akr  akr  512 Aug  3 20:46 >aa
drwxr-xr-x  3 akr  akr  512 Aug  3 20:46 \cc
flux% ls \>a<TAB>
flux% ls \\c<TAB>

They completes nothing.

Although I tried to change the character range to [][()|*?^#~<\\], the
problem is not fixed.
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author