diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-27 15:51:26 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-27 15:51:26 +0000 |
| commit | 0076d686645eb58256f2051a3f82136b9d70ea42 (patch) | |
| tree | d4392ed7dc4f47d3f800fb7398e6c9f57f084efa /Test/D04parameter.ztst | |
| parent | 24609: try to be safe about using libiconv (diff) | |
| download | zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.gz zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.bz2 zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.lz zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.xz zsh-0076d686645eb58256f2051a3f82136b9d70ea42.tar.zst zsh-0076d686645eb58256f2051a3f82136b9d70ea42.zip | |
24611: fix ${+array[...]} for empty range
Diffstat (limited to 'Test/D04parameter.ztst')
| -rw-r--r-- | Test/D04parameter.ztst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index e8718a691..6775803a7 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -52,6 +52,14 @@ 0:$+... >1 1 0 0 + x=() + print ${+x} ${+x[1]} ${+x[(r)foo]} ${+x[(r)bar]} + x=(foo) + print ${+x} ${+x[1]} ${+x[(r)foo]} ${+x[(r)bar]} +0:$+... with arrays +>1 0 0 0 +>1 1 1 0 + set1=set1v null1= print ${set1:-set1d} ${set1-set2d} ${null1:-null1d} ${null1-null2d} x |
