Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic expressions

This commit is contained in:
Chet Ramey
2022-11-07 11:44:13 -05:00
parent ddde6f00b8
commit fb0092fb0e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1168,6 +1168,8 @@ expr_streval (tok, e, lvalue)
/* [[[[[ */
#if defined (ARRAY_VARS)
aflag = tflag; /* use a different variable for now */
if (shell_compatibility_level > 51)
aflag |= AV_ATSTARKEYS;
v = (e == ']') ? array_variable_part (tok, tflag, (char **)0, (int *)0) : find_variable (tok);
#else
v = find_variable (tok);
+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 8
#define PATCHLEVEL 9
#endif /* _PATCHLEVEL_H_ */