On 11/1/17 7:04 AM, Kjetil Torgrim Homme wrote:

> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
> 
> Description:
>       I was bitten by earlier iterations of case selectors prematurely ending 
> an $()
> and my actual problem has been patched in the newest release (thanks!).  I 
> came across a
> degenerate case in my testing, though.
> 
> Repeat-By:
>       foo=$(while true; do case $HOME in /*) echo abs ;; esac; done)
>       bash: syntax error near unexpected token `;;'

Thanks for the report and test case. I'll take a look.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to