diff options
author | Peter Stephenson <pws@zsh.org> | 2016-11-15 16:01:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-11-15 16:01:32 +0000 |
commit | e9dbfa8046e0da6dbb37340df9d3c95f410a713b (patch) | |
tree | 121e0b4386c79370a492b21f30520f23b1a7691b | |
parent | 3fd50d06a12da8b4a9b4201272ca1f08fabd415e (diff) | |
download | zsh-e9dbfa8046e0da6dbb37340df9d3c95f410a713b.tar.gz zsh-e9dbfa8046e0da6dbb37340df9d3c95f410a713b.tar.xz zsh-e9dbfa8046e0da6dbb37340df9d3c95f410a713b.zip |
39947: Additional test for array subscripts.
This checks out-of-range multiple subscripts with and without the (@) flag.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Test/D04parameter.ztst | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 150430113..885777e37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-11-15 Peter Stephenson <p.stephenson@samsung.com> + + * 39947: Test/D04parameter.ztst: Test out-of-rantge multiple + array subscripts with and without (@). + 2016-11-15 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 39937: Src/params.c: fix a problem introduced by 39886. 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 |