From: Chet Ramey Date: Mon, 7 Nov 2022 16:44:13 +0000 (-0500) Subject: Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic... X-Git-Tag: bash-5.3-alpha~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb0092fb0e7bb3121d3b18881f72177bcb765491;p=thirdparty%2Fbash.git Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic expressions --- diff --git a/expr.c b/expr.c index 5079bd476..66e120d95 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 333dd9472..e59027ac8 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_ */