mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 20:50:42 +02:00
commit bash-20161223 snapshot
This commit is contained in:
@@ -6464,7 +6464,7 @@ array_length_reference (s)
|
||||
}
|
||||
else
|
||||
{
|
||||
ind = array_expand_index (var, t, len);
|
||||
ind = array_expand_index (var, t, len, 0);
|
||||
/* negative subscripts to indexed arrays count back from end */
|
||||
if (var && array_p (var) && ind < 0)
|
||||
ind = array_max_index (array_cell (var)) + 1 + ind;
|
||||
|
||||
Reference in New Issue
Block a user