mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-23 05:47:59 +02:00
bash-4.3-beta2 overlay
This commit is contained in:
+2
-2
@@ -306,8 +306,8 @@ assign_array_element_internal (entry, name, vname, sub, sublen, value, flags)
|
||||
{
|
||||
ind = array_expand_index (entry, sub, sublen);
|
||||
/* negative subscripts to indexed arrays count back from end */
|
||||
if (ind < 0)
|
||||
ind = array_max_index (array_cell (entry)) + 1 + ind;
|
||||
if (entry && ind < 0)
|
||||
ind = (array_p (entry) ? array_max_index (array_cell (entry)) : 0) + 1 + ind;
|
||||
if (ind < 0)
|
||||
{
|
||||
err_badarraysub (name);
|
||||
|
||||
Reference in New Issue
Block a user