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

Re: tab comlpetion bug



On Fri, 12 Apr 2002, Jeremy M. Dolan wrote:

>  % cd "aaa\!       <-- what zsh changes it to
>    *hit tab again*
>
> No matches found. It works ok if I don't put the " at the begining.

It works if you "setopt no_bang_hist", or if you use single quotes (but
note that if you're using the new completion system it won't work exactly
as you have it there, because the argument to "cd" must be a directory).

The problem is that inside the completion system zsh doesn't know that the
backslash in front of the exclamation point is there solely for the
purpose of preventing a history expansion.  So it is trying to complete
files whose names contain a literal backslash-bang.



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