fix for @ and * as associative array keys in arithmetic expressions; minor readline callback mode changes

This commit is contained in:
Chet Ramey
2022-11-02 16:23:12 -04:00
parent b48c234286
commit 88d69b4fa2
9 changed files with 4198 additions and 3 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);