help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Performing quote removal on data


From: Chet Ramey
Subject: Re: [Help-bash] Performing quote removal on data
Date: Fri, 30 May 2014 16:06:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

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

On 5/28/14, 4:49 PM, Maarten Billemont wrote:

> Interesting.  You're probably running an older bash version then, because for 
> me:
> 
> $ mkdir -p "dir "{1,2}
> $ echo dir*
> dir 1 dir 2
> $ compgen -o bashdefault "di"
> $ compgen -o bashdefault "di*"
> dir 1
> dir 2
> $ compgen -o default "di"
> dir 1
> dir 2
> $ compgen -o default "di*"
> 
> So it appears we can only really rely on -o default "$partial", but then 
> pathname expansion is definitely out.

Did you try using -o default and -o bashdefault together?  They don't do
the same thing.


- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlOI5MkACgkQu1hp8GTqdKuTWgCbBqcWU1gJCcTU/7UuIXqGTAce
54YAniPgTShfP8hza6J7q8D4LPFjn6kN
=/Amw
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]