bug-bash
[Top][All Lists]
Advanced

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

Re: $() does not handle nesting with case - parser precedence?


From: Chet Ramey
Subject: Re: $() does not handle nesting with case - parser precedence?
Date: Mon, 29 Jun 2015 13:10:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 6/27/15 3:48 PM, Nathan Neulinger wrote:

> Bash Version: 4.3
> Patch Level: 39
> Release Status: release
> 
> Description:
> 
>         If $() includes a case statement nested within it, the parser is
> not matching ) as closing the case,
>         but rather the $(. This behavior is different between bash and
> other shells. ksh/busybox
>         both process this without error, but I do not know which is
> officially "correct".

Thanks for the report.  This is a bug in bash that will be fixed in the
next version.  I have attached a patch for people to test.

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/

Attachment: comsub-parse-case.patch
Description: Text Data


reply via email to

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