From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: David Madore <david.madore@ens.fr>, 389111-forwarded@bugs.debian.org
Subject: Re: Bug#389111: autocompletion fails on non-printable characters in directories
Date: Sat, 23 Sep 2006 21:42:28 -0400 [thread overview]
Message-ID: <20060924014228.GA10845@scowler.net> (raw)
In-Reply-To: <20060923230155.GA19190@clipper.ens.fr>
> zsh seems to autocomplete non-printable characters by representing
> them as something like $'\377', but then it fails to understand them
> when autocompleting one further level of directories.
>
> For example, suppose we start in an empty directory (/tmp/test, say)
> and use no config file at all (cd /tmp/test; HOME=`pwd` zsh), just to
> make sure we load only the base completion module: then try
>
> % export LC_ALL=C
> % mkdir "`/usr/bin/printf 'x\\377z'`"
> % touch "`/usr/bin/printf 'x\\377z'`"/corge
> % cat x$'\377'z/
>
> It will complete so far (if you type x<TAB>, it completes to
> x$'\377'z/ as shown above), but no further (the "corge" part never
> appears).
x$'\377'z is getting munged to "x$\\377z" and then matching
[^][*?#^\|\<\>\\]#(\`[^\`]#\`|\$)*/* in _path_files.
next parent reply other threads:[~2006-09-24 1:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060923230155.GA19190@clipper.ens.fr>
2006-09-24 1:42 ` Clint Adams [this message]
2006-09-24 7:11 ` Andrey Borzenkov
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=20060924014228.GA10845@scowler.net \
--to=schizo@debian.org \
--cc=389111-forwarded@bugs.debian.org \
--cc=david.madore@ens.fr \
--cc=zsh-workers@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).