Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0
On 9/11/12 10:50 AM, Benoit Vaugon wrote:
> Description:
> Cannot use "case" construction in a "for" loop in a $() sub shell.
> Should work but produces parsing error.
>
> Repeat-By:
> echo $(for x in whatever; do case y in *) echo 42;; esac; done)
Thanks for the report. This will be fixed in the next bash release.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/