bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing error when "case" in "for" in $()


From: Chet Ramey
Subject: Re: Parsing error when "case" in "for" in $()
Date: Wed, 12 Sep 2012 08:56:48 -0400
User-agent: 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/



reply via email to

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