Re: strange expansion of <(cat p.main.{optional,extra})
From:
Andreas Schwab
Subject:
Re: strange expansion of <(cat p.main.{optional,extra})
Date:
Wed, 18 Apr 2007 14:37:03 +0200
User-agent:
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)
Eric Blake <ebb9@byu.net> writes:
> 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.
The documentation talks about strings, not words.
> <(...) forms a single word, even when ... contains unquoted spaces.
That requires syntactic interpretation to the context of the expansion,
which is explicitly excluded.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."