diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-25 10:34:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-25 10:34:32 +0000 |
commit | fc6c76519b863f38ab650e0e82fce574c5dc98e1 (patch) | |
tree | e8b04143855ec64e08084349de5d173a48c969a0 /Test | |
parent | 32a4c982065bff9829ef6be87095530c7acc96d3 (diff) | |
download | zsh-fc6c76519b863f38ab650e0e82fce574c5dc98e1.tar.gz zsh-fc6c76519b863f38ab650e0e82fce574c5dc98e1.tar.xz zsh-fc6c76519b863f38ab650e0e82fce574c5dc98e1.zip |
28434: make ${NAME:OFFSET} always use zero-offset
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 46565a121..4bd911e5f 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1268,15 +1268,15 @@ print ${foo:$(echo 3 + 3):`echo 4 - 3`} print ${foo: -1} print ${foo: -10} -0:Bash-style subscripts, scalar ->3456789 +0:Bash-style offsets, scalar >456789 >56789 >6789 ->3 +>789 >4 >5 >6 +>7 >9 >123456789 @@ -1291,15 +1291,15 @@ print ${foo:$(echo 3 + 3):`echo 4 - 3`} print ${foo: -1} print ${foo: -10} -0:Bash-style subscripts, array ->3 4 5 6 7 8 9 +0:Bash-style offsets, array >4 5 6 7 8 9 >5 6 7 8 9 >6 7 8 9 ->3 +>7 8 9 >4 >5 >6 +>7 >9 >1 2 3 4 5 6 7 8 9 @@ -1321,7 +1321,7 @@ echo ${str: -1:1} } testfn -0:Bash-style subscripts, Bourne-style indexing +0:Bash-style offsets, Bourne-style indexing >1 >2 >3 |