bug-bash
[Top][All Lists]
Advanced

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

Re: Parsing regression with for loop in case statement


From: Martin D Kealey
Subject: Re: Parsing regression with for loop in case statement
Date: Thu, 11 Apr 2024 15:07:14 +1200

I can confirm that this changed between 4.4.23(49)-release and
5.0.0(1)-beta, which coincides with the parser being largely rewritten.

On Thu, 11 Apr 2024 at 12:51, <nbowler@draconx.ca> wrote:

> The POSIX shell grammar specifies that a newline may optionally appear
> before the in keyword of a for loop.


I don't see that at §2.9.4 "The for Loop" (
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_03)
and I've never seen it in the wild.

But ... oh look, it's mentioned in §2.10.2 (
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02
).

I wonder when that was added, and why?

-Martin


reply via email to

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