]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.2 patch 20: allow time reserved word as first token in command substitution
authorChet Ramey <chet.ramey@case.edu>
Thu, 9 Nov 2023 21:46:47 +0000 (16:46 -0500)
committerChet Ramey <chet.ramey@case.edu>
Thu, 9 Nov 2023 21:46:47 +0000 (16:46 -0500)
parse.y
patchlevel.h
y.tab.c

diff --git a/parse.y b/parse.y
index b360dd7dd4247d0645c80e4cc19e589d640600ec..8fd24a1c79803b6bb99d55bc123479fb8c080da6 100644 (file)
--- 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;
index 88059dee098f668b331a7309ad05c93431a29fe1..2db9d9cea4febf53f673fb37577c4dc25cf16c15 100644 (file)
@@ -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 a24e3f4233b0d7279860d9b35766e3aa8b50a7bb..78c793065928f2d93ff63f72c89ef703788d28c2 100644 (file)
--- 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;