summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-11-07 11:44:13 -0500
committerChet Ramey <chet.ramey@case.edu>2022-11-07 11:44:13 -0500
commitfb0092fb0e7bb3121d3b18881f72177bcb765491 (patch)
treeb0053696a4c545f9907e2a5261c9f28b1a4ff592
parentddde6f00b83c6473561b153684ea4cea1f9d21a3 (diff)
downloadbash-fb0092fb0e7bb3121d3b18881f72177bcb765491.tar.gz
Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic expressions
-rw-r--r--expr.c2
-rw-r--r--patchlevel.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index 5079bd47..66e120d9 100644
--- a/expr.c
+++ b/expr.c
@@ -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);
diff --git a/patchlevel.h b/patchlevel.h
index 333dd947..e59027ac 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 8
+#define PATCHLEVEL 9
#endif /* _PATCHLEVEL_H_ */