1
0
mirror of https://github.com/zsh-users/zsh synced 2024-07-08 19:55:44 +00:00

39947: Additional test for array subscripts.

This checks out-of-range multiple subscripts with and without
the (@) flag.
This commit is contained in:
Peter Stephenson 2016-11-15 16:01:32 +00:00
parent 3fd50d06a1
commit e9dbfa8046
2 changed files with 13 additions and 0 deletions

View File

@ -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.

View File

@ -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