Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug: cd auto-completion of .. fails with parentheses in directory name



On Oct 29,  7:39pm, Peter Stephenson wrote:
} Subject: Re: Bug: cd auto-completion of .. fails with parentheses in direc
}
} On Sat, 29 Oct 2016 18:06:32 +0000
} Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
} > The following fixes it without breaking the original case; however, the
} > comment is a Sven original so I'm a bit wary of contravening it.
} 
} That's a "my goodness, is that the time?" if ever I saw it.

My intuition would be that the line Daniel commented out was there in
the first place because the quoting that was added in the compfiles
internals was not previously present.  The fact that the end result
is double-backslashing of some of the special characters would tend
to support this notion.

I'd lean toward committing Daniel's _path_files one-line change.

} The first step to getting this under control is probably tests.  There
} are some Y01completion tests involving files.  A few with more exotic
} characters plus variables wouldn't hurt.  What else is needed?

I agree this would be a good place to start ... exotic characters are
interesting, but probably less so than characters from the set of
pattern characters and other shell specials.



Messages sorted by: Reverse Date, Date, Thread, Author