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

Re: Completion fails to properly escape parenthesis



Felix Eckhofer wrote:
> --nextPart1267650.dR9JUp2fVv
> Content-Type: text/plain;
>   charset="utf-8"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
> 
> Hi.
> 
> Have a look at this short session:
> > $ mkdir 'some(dir'
> > $ cd some<TAB>
> > $ cd some\(dir
> > cd:5: bad pattern: some(dir
> 
> Obviously, completion fails to escape the '(' properly ("cd some\\\(dir
> works fine).

I must be missing the point here.  some\(dir is exactly the right
quoting for a single parenthesis; the result has just the same effect as
'some(dir'.  Is your cd doing something clever with patterns?  In that
case the problem is there.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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