diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-21 09:30:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-21 09:30:24 +0000 |
commit | faf05be3d2adc99212af74e2507a66de1161a52a (patch) | |
tree | 7a0ac19d76eff3142484c02a83388a5e52848535 /Test | |
parent | 86ff81f82d97b0118eddb729a2d4956fcbdd7c7a (diff) | |
download | zsh-faf05be3d2adc99212af74e2507a66de1161a52a.tar.gz zsh-faf05be3d2adc99212af74e2507a66de1161a52a.tar.xz zsh-faf05be3d2adc99212af74e2507a66de1161a52a.zip |
23440: Make $param[(R)value] substitute the empty string on failure
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D06subscript.ztst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst index 9ce022557..4dd8a8237 100644 --- a/Test/D06subscript.ztst +++ b/Test/D06subscript.ztst @@ -29,12 +29,11 @@ >*, [how] I [wonder] what? You are! >] I [ - # $s[(R)x] actually is $s[0], but zsh treats 0 as 1 for subscripting. print $s[(i)x] : $s[(I)x] print $s[(r)x] : $s[(R)x] 0:Scalar pattern subscripts that do not match >61 : 0 ->: T +>: print -R $s[$s[(i)\[]] $s[(i)$s[(r)\*]] $s[(i)${(q)s[(r)\]]}] 0:Scalar subscripting using a pattern subscript to get the index |