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