From b8a52e05d4319c6103e7e056a2bd2ae53e5fef47 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Thu, 9 Nov 2023 16:46:47 -0500 Subject: [PATCH] Bash-5.2 patch 20: allow time reserved word as first token in command substitution --- parse.y | 1 + patchlevel.h | 2 +- y.tab.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index b360dd7dd..8fd24a1c7 100644 --- a/parse.y +++ b/parse.y @@ -3150,6 +3150,7 @@ time_command_acceptable () case TIME: /* time time pipeline */ case TIMEOPT: /* time -p time pipeline */ case TIMEIGN: /* time -p -- ... */ + case DOLPAREN: return 1; default: return 0; diff --git a/patchlevel.h b/patchlevel.h index 88059dee0..2db9d9cea 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 19 +#define PATCHLEVEL 20 #endif /* _PATCHLEVEL_H_ */ diff --git a/y.tab.c b/y.tab.c index a24e3f423..78c793065 100644 --- a/y.tab.c +++ b/y.tab.c @@ -5465,6 +5465,7 @@ time_command_acceptable () case TIME: /* time time pipeline */ case TIMEOPT: /* time -p time pipeline */ case TIMEIGN: /* time -p -- ... */ + case DOLPAREN: return 1; default: return 0; -- 2.47.3