Mail Archives: cygwin/2009/04/22/08:50:10
-----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 -