diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-11-07 11:44:13 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-11-07 11:44:13 -0500 |
commit | fb0092fb0e7bb3121d3b18881f72177bcb765491 (patch) | |
tree | b0053696a4c545f9907e2a5261c9f28b1a4ff592 | |
parent | ddde6f00b83c6473561b153684ea4cea1f9d21a3 (diff) | |
download | bash-fb0092fb0e7bb3121d3b18881f72177bcb765491.tar.gz |
Bash-5.2 patch 9: allow @ and * to be used as associative array keys in arithmetic expressions
-rw-r--r-- | expr.c | 2 | ||||
-rw-r--r-- | patchlevel.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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_ */ |