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, <nbow...@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