This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Tab completion adding spurious escape characters
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 04 Sep 2018 20:46:32 -0700 (PDT)
- Subject: 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