Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11949

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

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Random parser error of $() when there is a case inside
Date 2015-12-05 15:58 -0500
Organization ITS, Case Western Reserve University
Message-ID <mailman.1473.1449349100.31583.bug-bash@gnu.org> (permalink)
References <CAJq09z7seytHm_SPNBvGvz68wRoiWp0fY3Ehnyw4av4FrDRHvA@mail.gmail.com>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Random parser error of $() when there is a case inside Chet Ramey <chet.ramey@case.edu> - 2015-12-05 15:58 -0500

csiph-web