]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.3 patch 38
authorChet Ramey <chet.ramey@case.edu>
Tue, 19 May 2015 19:49:39 +0000 (15:49 -0400)
committerChet Ramey <chet.ramey@case.edu>
Tue, 19 May 2015 19:49:39 +0000 (15:49 -0400)
parse.y
patchlevel.h
y.tab.c

diff --git a/parse.y b/parse.y
index 815db98a8af11d32f0c4c5394b69382a9d3525f5..74b5927dbf1e87b137d1dba4bfa1d6f167614ec0 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -2818,11 +2818,16 @@ time_command_acceptable ()
     case AND_AND:
     case OR_OR:
     case '&':
+    case WHILE:
     case DO:
+    case UNTIL:
+    case IF:
     case THEN:
+    case ELIF:
     case ELSE:
     case '{':          /* } */
-    case '(':          /* ) */
+    case '(':          /* )( */
+    case ')':          /* only valid in case statement */
     case BANG:         /* ! time pipeline */
     case TIME:         /* time time pipeline */
     case TIMEOPT:      /* time -p time pipeline */
index a1ad6c0680b5df0a4598916fcc5df4c9aa395e3b..8d34c53e3c0c7bb7a58e528c2c8bf839c6cedd5d 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 37
+#define PATCHLEVEL 38
 
 #endif /* _PATCHLEVEL_H_ */
diff --git a/y.tab.c b/y.tab.c
index 1dbc360d6ffa94e4088791a1ba0ff4f773bc6255..4141e5dd00e51f9bddcf206cdce0fac8a745e7eb 100644 (file)
--- a/y.tab.c
+++ b/y.tab.c
@@ -5130,11 +5130,16 @@ time_command_acceptable ()
     case AND_AND:
     case OR_OR:
     case '&':
+    case WHILE:
     case DO:
+    case UNTIL:
+    case IF:
     case THEN:
+    case ELIF:
     case ELSE:
     case '{':          /* } */
-    case '(':          /* ) */
+    case '(':          /* )( */
+    case ')':          /* only valid in case statement */
     case BANG:         /* ! time pipeline */
     case TIME:         /* time time pipeline */
     case TIMEOPT:      /* time -p time pipeline */