From f2d873d8114561c4c8658659408d9cecfe60a0fc Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 6 Sep 2005 15:28:17 +0000 Subject: 21701: Negative subscripts of scalars before start were broken --- Test/D06subscript.ztst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Test/D06subscript.ztst') diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst index f90c1cb0a..9ce022557 100644 --- a/Test/D06subscript.ztst +++ b/Test/D06subscript.ztst @@ -178,3 +178,8 @@ 0:Keys with double quotes and the (P) expansion flag >lower >upper + + typeset -a empty_array + echo X${${l##*}[-1]}X +0:Negative index applied to substition result from empty array +>XX -- cgit 1.4.1