bug-bash
[Top][All Lists]
Advanced

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

Re: Random parser error of $() when there is a case inside


From: Luiz Angelo Daros de Luca
Subject: Re: Random parser error of $() when there is a case inside
Date: Mon, 07 Dec 2015 18:22:56 +0000

Thanks Chet and Dennis,

Dennis, your workaround did work.

Regards,

Em sáb, 5 de dez de 2015 às 18:58, Chet Ramey <chet.ramey@case.edu> escreveu:
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/
--

Luiz Angelo Daros de Luca


reply via email to

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