[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inner Command Groups fail in Bash 5.2
From: |
Kerin Millar |
Subject: |
Re: Inner Command Groups fail in Bash 5.2 |
Date: |
Fri, 1 Sep 2023 15:27:05 +0100 |
On Fri, 1 Sep 2023 09:52:17 -0400
Chet Ramey <chet.ramey@case.edu> wrote:
> On 8/31/23 1:21 PM, Dima Korobskiy wrote:
>
> > Bash Version: 5.2
> > Patch Level: 15
> > Release Status: release
> >
> > Description:
> > One of my Bash scripts started to fail all of a sudden and I was
> > able to narrow down this problem to Bash upgrade itself (via Homebrew on a
> > Mac): from 5.1.16 to 5.2.15.
> > It looks to me pretty serious: a lot of scripts might be potentially
> > affected.
>
> Thanks for the report. It's an easy fix:
>
>
> *** ../bash-20230818/parse.y Wed Aug 23 09:56:19 2023
> --- parse.y Fri Sep 1 09:29:27 2023
> ***************
> *** 3224,3227 ****
> --- 3224,3229 ----
> case TIMEOPT: /* time -p time pipeline */
> case TIMEIGN: /* time -p -- ... */
> + case DOLPAREN:
> + case DOLBRACE:
> return 1;
> default:
Would you mind supplying a diff for 5.2.15? For that version, I get:
./parse.y: In function ‘time_command_acceptable’:
./parse.y:3139:14: error: ‘DOLBRACE’ undeclared (first use in this function);
did you mean ‘Q_DOLBRACE’
--
Kerin Millar