mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 07:43:07 +02:00
commit bash-20160603 snapshot
This commit is contained in:
+3
-1
@@ -370,7 +370,7 @@ find_or_make_array_variable (name, flags)
|
||||
}
|
||||
if (var && nameref_p (var))
|
||||
{
|
||||
if (valid_nameref_value (nameref_cell (var), 1) == 0)
|
||||
if (valid_nameref_value (nameref_cell (var), 2) == 0)
|
||||
{
|
||||
sh_invalidid (nameref_cell (var));
|
||||
return ((SHELL_VAR *)NULL);
|
||||
@@ -899,6 +899,8 @@ valid_array_reference (name, flags)
|
||||
len = skipsubscript (t, 0, 0);
|
||||
if (t[len] != ']' || len == 1)
|
||||
return 0;
|
||||
if (t[len+1] != '\0')
|
||||
return 0;
|
||||
for (r = 1; r < len; r++)
|
||||
if (whitespace (t[r]) == 0)
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user