bug#20006: Bash-specific performance by avoiding sed

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs,gmane.comp.gnu.libtool.general
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 10/05/2015 01:47 AM, Pavel Raiskup wrote:

> 
> Hmm, one might-be-a-problem with this (catched by testsuite), when you

s/catched/caught/


> We would like to have an output \"*\".  I'm not aware of portable way
> how to disable wildcard expansion in shell, and autoconf 'Shellology'
> section haven't helped me.  In particular, the problem is here:

It is portable to use 'set +f' to disable wildcard globbing, then 'set
-f' to turn them back on.  (POSIX requires it).

> 
>   x='a"[a-z]*"c'
>   IFS='"'
>   for i in $x; do # Here we wan't to disable wildcard expansion

s/wan't/want/

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
signature.asc (application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJWEpRSAAoJEKeha0olJ0NqjncH/RzhXltA8WRNSlfberhyfCgg
dfXYW2mxbD09ikJVaozvMd4iBGTtb2TMV443MRJf2b/T+fOZAXjMSCag6J4bNmXY
gYphr28ed65R47t/NPf3mzVNC/Ru07YpcdBwM7p2f1mQPuP/WLWVV5mhT+6Gx+G1
IHpiFpkQRS1gLuFCP/zZyjr7I7RzN3GhWJeI4ARuiVckPODQevBIy3+9yVibCGZx
oG6nFekeCvmivIfhjbacmHVgckL1K8TakaupVoiE/MQXIKfYKnCp941uXn68z2q2
uylDbnbpVmsphmTSh0CxqURPZDkszD08mtss8gNg28rGRNAwyeP41ur6U4Hm7rw=
=+gob
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.