From faf05be3d2adc99212af74e2507a66de1161a52a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 May 2007 09:30:24 +0000 Subject: 23440: Make $param[(R)value] substitute the empty string on failure --- Test/D06subscript.ztst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Test') 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 -- cgit 1.4.1