]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic...
authorChet Ramey <chet.ramey@case.edu>
Mon, 7 Nov 2022 16:44:13 +0000 (11:44 -0500)
committerChet Ramey <chet.ramey@case.edu>
Mon, 7 Nov 2022 16:44:13 +0000 (11:44 -0500)
expr.c
patchlevel.h

diff --git a/expr.c b/expr.c
index 5079bd476309a46f1b7a8eba7cbee6e35b712cd3..66e120d951ae47088b4437eb64713fc4eb93d54f 100644 (file)
--- 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);
index 333dd9472f941499ea32147297e46aad4c9022d7..e59027ac847976cb0ec180d14a55f7d5a2e9b40c 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 8
+#define PATCHLEVEL 9
 
 #endif /* _PATCHLEVEL_H_ */