delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/04/23:46:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:content-type:subject;
q=dns; s=default; b=u9uw2D1Dp24+tjo/niJ0KMRJO6RbFDVb6a0rtUeoCrg
LFTOZU8hoVRRTLfwQi1FzNejtylclbls18u7ibpXRbPfsq1E+QzpQmD7egxAKQwv
thwUdjaJkW1zHBeqImbZnUlbS5Ijd47e0hjfKvbHhLV+fC3/Hz7xiRgO8OpCkUcI
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:to:content-type:subject;
s=default; bh=25eZfoL91FIYYDnIPl5emxbwIPQ=; b=XFDOSPKI98tVyweG0
zHx+8JTlDLvDhC0aQXlHA9p+hzGgQ2fb97rwIklmaHLfDreCOZ3or5apcpxLm31/
9Jt/0IBE0gW86ra1e14955ZK/0yoW61QI6VGpoObOPn0EJrNyQQ3AQrmWzCqsOyI
skcRY1qUMpM2wR+W2P9V1QL97c=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=carefully, H*MI:1c69fb81, H*M:1c69fb81, escaped
X-HELO: mail-oi0-f66.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:user-agent:subject; bh=dlEAw1MyRSPViMkAQkQyXM5q8Xgw8PoGOq9x9H+OgrY=; b=aBRsI9EQK0eQm0kUo3hWNQPfsX+m65aufgin4orphp6s2v1/HvcsYwg2QotDS9jxgC 6zRnHw1PLPRWDuCQdP4TUnLei28xdPDe9ogE1sIOcGhJPOyUzbU7hPIICJXra/lQ0PNM CxL6IPC2PvSCBrwFbX0dlyFLEBZqDM/cZDJKJxay0kffRxOnXSsu84Pn9CGmt3FwGu7h llYVZR5Rqgy4dTwlSeBW+pCaw+SfItI1UkZyYk5YQEH570r1Ae55gdYRTrMUTnlrkYiG bE7604PaxymLvEuzg/Gad5zWzdkbrAGcKiDqZI8W72QX07nTrE95v8V92lEHYC6J97UY 04mg==
Message-ID: <5b8f5198.1c69fb81.969c7.a997@mx.google.com>
Date: Tue, 04 Sep 2018 20:46:32 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
User-Agent: Tryst/2.8.0 (cup.github.io/tryst)
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019