Web lists-archives.com

Tab completion adding spurious escape characters




If you create this file:

   touch -- \''-#%.!$&(),;@[]^`{}=_~+9zZ'

Then enter "touch", "Tab", "Tab", you get this:

   touch \'-#%.\!\$\&\(\)\,\;\@\[\]\^\`\{\}\=_~+9zZ

So the shell is saying that these characters need to be escaped:

   ' ! $ & ( ) , ; @ [ ] ^ ` { } =

but they dont, not all of them:

   $ (set -x; true \' \! \$ \& \( \) \, \; \@ \[ \] \^ \` \{ \} \=)
   + true \' '!' '$' '&' '(' ')' , ';' @ '[' ']' '^' '`' '{' '}' =

Notice carefully that the shell removes escaping for these:

   , @ =

but tab completion is adding it. Is this an issue of Readline or Cygwin?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple