Bash-5.2 patch 20: allow time reserved word as first token in command substitution

This commit is contained in:
Chet Ramey
2023-11-09 16:46:47 -05:00
parent f4cb298c02
commit b8a52e05d4
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -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;
+1 -1
View 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_ */
+1
View File
@@ -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;