[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random parser error of $() when there is a case inside
From: |
Chet Ramey |
Subject: |
Re: Random parser error of $() when there is a case inside |
Date: |
Sat, 5 Dec 2015 15:58:09 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/4/15 1:25 PM, Luiz Angelo Daros de Luca wrote:
> Bash Version: 4.2
> Patch Level: 53
> Release Status: release
>
> Description:
> While writing a script, I faced a random parser error with code like
>
> A=$(
> ...
> case b in
> c)
> ...
> esac
> ...
> )
>
> Minor changes like renaming a variable skips the problem. It seems that the
> parser gets confused in some cases.
This was fixed back in bash-4.3.
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/