zsh-users
 help / color / mirror / code / Atom feed
* Tab-completion inside dir named with braces (brace_ccl)
@ 2006-07-09 13:51 Phil Pennock
  0 siblings, 0 replies; only message in thread
From: Phil Pennock @ 2006-07-09 13:51 UTC (permalink / raw)
  To: zsh-users

Hi,

The zsh options brace_ccl doesn't appear to play nicely with expansion
under the new completion system.  Zsh 4.3.2.

 zsh -f
 setopt brace_ccl
 autoload -Uz compinit
 compinit -u
 zstyle ':completion:*' completer _expand _complete 

Mozilla Firefox puts extensions inside sub-directories of
~/.mozilla/firefox/<random>.<profname>/extensions/ and many of those
directories are named "{"<UUID>"}".

If I try to tab-complete the directory name, that succeeds, using the
appropriate backslash escaping.  But if I try to tab-complete a name
such as "install.rdf" inside that, then the backslashes are escaped
again and the braces are treated to brace expansion.  If I use '{1A
instead of \{1A then the brace expansion still happens.

So given '{1A2D0EC4-75F5-4c91-89C4-3656F6E44B68}' and tab-completing
twice, I can see either:
% vi \\-/i \\0/i \\1/i \\2/i \\3/i \\4/i \\5/i \\6/i \\7/i \\8/i \\9/i \\A/i \\B/i \\C/i \\D/i \\E/i \\F/i \\/i \\c/i 
% vi '-/i 0/i 1/i 2/i 3/i 4/i 5/i 6/i 7/i 8/i 9/i A/i B/i C/i D/i E/i F/i c/i 

I know, I'm explicitly putting expansion first (and I don't remember
why) but I think that zsh probably shouldn't be ignoring its own
escaping.

Is this a bug or expected behaviour?

Thanks,
-- 
VISTA: Viruses, Infections, Spyware, Trojans & Adware


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-09 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-09 13:51 Tab-completion inside dir named with braces (brace_ccl) Phil Pennock

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).