public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tab completion adding spurious escape characters
@ 2018-09-05  3:46 Steven Penny
  2018-09-05 15:05 ` Eric Blake
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Penny @ 2018-09-05  3:46 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-05 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05  3:46 Tab completion adding spurious escape characters Steven Penny
2018-09-05 15:05 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).