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: Lawrence Velázquez
Subject: Re: Parsing regression with for loop in case statement
Date: Thu, 11 Apr 2024 00:13:46 -0400
User-agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849

On Wed, Apr 10, 2024, at 11:07 PM, Martin D Kealey wrote:
> 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?

It's been there since at least POSIX.2-1992 [1].  At a glance, it
looks like the Bourne shell accepted LFs before "in" from the very
beginning [2].  (The Solaris 10 shell definitely does accept them.)

[1]: https://archive.org/details/ieeestandardfori0000inst
[2]: https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/cmd.c

-- 
vq



reply via email to

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