delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/22/08:50:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <49EF1268.6060607@byu.net>
Date: Wed, 22 Apr 2009 06:49:44 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Backslash incorrectly triggers DOS style path warning
References: <49EC78A0 DOT 6050602 AT cornell DOT edu> <49EC7A7D DOT 2050706 AT cornell DOT edu> <20090420211453 DOT GB3143 AT ednor DOT casa DOT cgf DOT cx> <f60fe000904211641l558faa99r957730125f8cd7ab AT mail DOT gmail DOT com> <20090421235020 DOT GA593 AT ednor DOT casa DOT cgf DOT cx> <f60fe000904211700v712de190s50f5998e48ecbc98 AT mail DOT gmail DOT com> <49EE7BC1 DOT 1070400 AT gmail DOT com> <49EF0674 DOT 9090605 AT cornell DOT edu> <49EF0C6E DOT 6010808 AT byu DOT net>
In-Reply-To: <49EF0C6E.6010808@byu.net>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 4/22/2009 6:24 AM:
>           COMPREPLY=($( awk 'BEGIN {FS=","}
> 				/^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \
> 				       gsub(" .*$", "", $i); \
> 				       if ($i ~ /'$cur'/) {print $i} \
> 				}}' "${kh[@]}" 2>/dev/null ));
> 
> That looks properly quoted to me.

Scratch that.  It is a bug in bash-completion, after all.  I'm forwarding
this report upstream.  $cur is underquoted, and in your particular case,
happened to be set to '[a-z.]'.  Which means, as written, bash is trying
to perform glob expansion on 'text'[a-z.]'text', and it is bash, not awk,
triggering the warning.

> 
> In other words, strace is mistakenly performing glob expansion on the
> subsidiary arguments to the program being traced, when we really wanted to
> trace ls with a literal argument of "*".

And this strace limitation (bug?) was just a red herring.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknvEmgACgkQ84KuGfSFAYBBAACdHs7USmVRVj85i1LZxCKnvPS9
rn0AoK1a1905Dgjcs+nkaFKmQJu97b4H
=sW7P
-----END PGP SIGNATURE-----

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

- Raw text -


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