On Thu, 2 Aug 2007 09:29:19 -0400
Chet Ramey <[EMAIL PROTECTED]> wrote:
> > Here was an interesting bug which was some what unexpected.
> >
> > cat <(find ./ -iname t{1,2,3})
> >
> > this is a valid command according to bash due to a bugged expansion
> > of {1,2,3} and the process expansion. It becomes three commands:
> >
> > find ./ -iname t1
> > find ./ -iname t2
> > find ./ -iname t3
>
> It's not a bug. Brace expansion is the first word expansion
> performed, and can potentially expand one word to multiple ones. If
> you want to defer the brace expansion until the command in the
> process substitution is executed, add a backslash before the open
> brace.
>
> Chet
>
Hi Chet,
I intentionally expected <() and >() to be as protected as $() is. Is
there a specific reason for them to not be protected against the
initial parsing? Compatiblity to some other shell maybe?
Or do I get that all wrong?
J.
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash