zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Re: completion problem with filename including #
@ 2000-08-03 11:10 Sven Wischnowsky
  2000-08-03 11:47 ` Tanaka Akira
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 2000-08-03 11:10 UTC (permalink / raw)
  To: zsh-workers


Tanaka Akira wrote:

> Z:akr@cvs% zsh -f
> cvs% bindkey -e; autoload -U compinit; compinit -D
> cvs% rmdir /cvs/root/www/\#cvs.lock/<TAB>
> _path_files:327: bad pattern: /cvs/root/www/#cvs.lock/*(-/)

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.

Bye
 Sven

Index: Completion/Core/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v
retrieving revision 1.27
diff -u -r1.27 _path_files
--- Completion/Core/_path_files	2000/07/26 09:16:13	1.27
+++ Completion/Core/_path_files	2000/08/03 11:08:38
@@ -421,6 +421,7 @@
     # There are more components, so skip over the next components and make a
     # slash be added.
 
+    tmp1=( ${tmp1//(#b)([][()|*?^#~<>])/\\${match[1]}} )
     tmp2="${(M)tpre##((.|..|)/)##}"
     if [[ -n "$tmp2" ]]; then
       skipped="/$tmp2"

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Re: completion problem with filename including #
  2000-08-03 11:10 PATCH: Re: completion problem with filename including # Sven Wischnowsky
@ 2000-08-03 11:47 ` Tanaka Akira
  0 siblings, 0 replies; 2+ messages in thread
From: Tanaka Akira @ 2000-08-03 11:47 UTC (permalink / raw)
  To: zsh-workers

In article <200008031110.NAA09282@beta.informatik.hu-berlin.de>,
  Sven Wischnowsky <wischnow@informatik.hu-berlin.de> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-03 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-03 11:10 PATCH: Re: completion problem with filename including # Sven Wischnowsky
2000-08-03 11:47 ` Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).