From e9dbfa8046e0da6dbb37340df9d3c95f410a713b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 15 Nov 2016 16:01:32 +0000 Subject: 39947: Additional test for array subscripts. This checks out-of-range multiple subscripts with and without the (@) flag. --- Test/D04parameter.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/D04parameter.ztst') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 97c8ba3fc..4cbd2fa0f 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -2041,3 +2041,11 @@ () { print -r -- "${(q)1}" "${(b)1}" "${(qq)1}" } '=foo' 0:(q) and (b) quoting deal with the EQUALS option >\=foo =foo '=foo' + + args() { print $#; } + a=(foo) + args "${a[3,-1]}" + args "${(@)a[3,-1]}" +0:Out-of-range multiple array subscripts with quoting, with and without (@) +>1 +>0 -- cgit 1.4.1