Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#389111: autocompletion fails on non-printable characters in directories
- X-seq: zsh-workers 22766
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#389111: autocompletion fails on non-printable characters in directories
- Date: Sat, 23 Sep 2006 21:42:28 -0400
- Cc: David Madore <david.madore@xxxxxx>, 389111-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20060923230155.GA19190@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, David Madore <david.madore@xxxxxx>, 389111-forwarded@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060923230155.GA19190@xxxxxxxxxxxxxx>
> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author