bug-bash
[Top][All Lists]
Advanced

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

Re: strange expansion of <(cat p.main.{optional,extra})


From: Eric Blake
Subject: Re: strange expansion of <(cat p.main.{optional,extra})
Date: Wed, 18 Apr 2007 06:16:05 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666

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

According to Andreas Schwab on 4/18/2007 4:01 AM:
> Lucas Nussbaum <lucas@lucas-nussbaum.net> writes:
> 
>> Well, no, because bash expands *parameters*, not words. So the prefix is
>> "<(cat /etc/", and the suffix is ")".
> 
> But that would not be a *strict textual* expansion.

According to 'man bash', brace expansion is documented as being able to
expand one word into many.  <(...) forms a single word, even when ...
contains unquoted spaces.  Therefore, strict textual expansion occurred,
and there was no syntax error.

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

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

iD8DBQFGJgwE84KuGfSFAYARAgF/AJ0VUlTUe/SoCsHOEKKsNk/D4bQXhwCfbWYU
ba0721NvVacYWFWx4ldk4Ng=
=PmOq
-----END PGP SIGNATURE-----




reply via email to

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