bug-bash
[Top][All Lists]
Advanced

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

Re: bash-4.3 p42 Parser bug: for ((; 1<(1);)); do ...; done


From: Chet Ramey
Subject: Re: bash-4.3 p42 Parser bug: for ((; 1<(1);)); do ...; done
Date: Tue, 31 May 2016 10:08:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 5/30/16 6:56 AM, Sergey Tselikh wrote:

> Bash Version: 4.3
> Patch Level: 42
> Release Status: release
> 
> Description:
> "<(...)" construct triggers syntax error in "for ((...; ...; ...)); do ...;
> done" syntax.
> 
> Repeat-By:
> $ for ((; 1<(1); )); do ...; done
> bash: syntax error near unexpected token `newline'
> 
> compare behavior to (with space after "<"):
> $ for ((; 1< (1); )); do ...; done
> 
> Fix:   I don't have a fix, sorry.

This was reported and fixed back in April 2014:

http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00100.html

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



reply via email to

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