[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "bashbug" script
From: |
Chet Ramey |
Subject: |
Re: "bashbug" script |
Date: |
Thu, 2 Aug 2007 09:29:19 -0400 |
> 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
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/
- "bashbug" script, Michael, 2007/08/02
- Re: "bashbug" script,
Chet Ramey <=
- Message not available