mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-23 22:07:58 +02:00
more minor changes for builtins and array subscript expansion; fix to `wait -n'
This commit is contained in:
+2
-1
@@ -344,7 +344,8 @@ assign_array_element (name, value, flags)
|
||||
(ASS_ALLOWALLSUB) we allow it. */
|
||||
if (((isassoc == 0 || (flags & (ASS_NOEXPAND|ASS_ALLOWALLSUB)) == 0) &&
|
||||
(ALL_ELEMENT_SUB (sub[0]) && sub[1] == ']')) ||
|
||||
(sublen <= 1))
|
||||
(sublen <= 1) ||
|
||||
(sub[sublen] != '\0')) /* sanity check */
|
||||
{
|
||||
free (vname);
|
||||
err_badarraysub (name);
|
||||
|
||||
Reference in New Issue
Block a user