]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - expr.c
Bash-5.2 patch 17: fix for optimizing forks when using the . builtin in a subshell
[thirdparty/bash.git] / expr.c
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);