zsh-users
 help / color / mirror / code / Atom feed
From: Phil Pennock <phil.pennock@globnix.org>
To: zsh-users@sunsite.dk
Subject: Tab-completion inside dir named with braces (brace_ccl)
Date: Sun, 9 Jul 2006 15:51:07 +0200	[thread overview]
Message-ID: <20060709135107.GA2753@parhelion.globnix.org> (raw)

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


                 reply	other threads:[~2006-07-09 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060709135107.GA2753@parhelion.globnix.org \
    --to=phil.pennock@globnix.org \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).