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: Lucas Nussbaum
Subject: Re: strange expansion of <(cat p.main.{optional,extra})
Date: Wed, 18 Apr 2007 19:16:21 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On 18/04/07 at 14:37 +0200, Andreas Schwab wrote:
> Eric Blake <address@hidden> writes:
> 
> > According to Andreas Schwab on 4/18/2007 4:01 AM:
> >> Lucas Nussbaum <address@hidden> 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.

Based on the behaviour, I think that bash first splits the command line
into a list of parameters, then expands each parameter. <(...) is a
single parameter.
-- 
| Lucas Nussbaum
| address@hidden   http://www.lucas-nussbaum.net/ |
| jabber: address@hidden             GPG: 1024D/023B3F4F |




reply via email to

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