Re: Parsing regression with for loop in case statement

2024-04-10 Thread Kerin Millar
On Thu, 11 Apr 2024 15:07:14 +1200 Martin D Kealey wrote: > 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, wrote: > > > The POSIX shell grammar specifies that a newline m

Re: Parsing regression with for loop in case statement

2024-04-10 Thread Lawrence Velázquez
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 g

Re: Parsing regression with for loop in case statement

2024-04-10 Thread Martin D Kealey
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, wrote: > The POSIX shell grammar specifies that a newline may optionally appear > before the in keyword of a for loop. I don't se

Parsing regression with for loop in case statement

2024-04-10 Thread nbowler
Configuration Information [Automatically generated, do not change]: Machine: powerpc64le OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux aion 6.8.1 #26 SMP PREEMPT Fri Mar 15 23:18:26 EDT 2024 ppc64le POWER9, altivec supported PowerNV C1P9S01 REV 1.02 GNU/Linux Machine T

Re: echo test >& "quote'test"

2024-04-10 Thread Chet Ramey
On 4/8/24 9:37 PM, squeaky wrote: Bash Version: 5.2 Patch Level: 21 Release Status: release Description: Running echo test >& "quote'test" should create the file "quote'test", but it creates "quotetest" instead. Repeat-By: echo test >& "quote'test" Thanks