diff options
author | Denis Vlasenko | 2008-03-25 07:49:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-03-25 07:49:43 +0000 |
commit | 80591b0a000e88c284bd2ec355f27e19e1da7528 (patch) | |
tree | 101b48a0a2c5506e6c818717c8ef7d66b857d6a7 /shell/ash_test/ash-vars/var_bash1.tests | |
parent | b02cea12129f1aa484701317f38466ec9e1c8462 (diff) | |
download | busybox-80591b0a000e88c284bd2ec355f27e19e1da7528.zip busybox-80591b0a000e88c284bd2ec355f27e19e1da7528.tar.gz |
ash: support for && and || in [[ expr ]]; add testsuite checks
Diffstat (limited to 'shell/ash_test/ash-vars/var_bash1.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash1.tests | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_bash1.tests b/shell/ash_test/ash-vars/var_bash1.tests new file mode 100755 index 0000000..24d3c9a --- /dev/null +++ b/shell/ash_test/ash-vars/var_bash1.tests @@ -0,0 +1,18 @@ +var=abcdef + +echo ${var:7} +echo ${var:6} +echo ${var:5} +echo ${var:1} +echo ${var:0} +echo ${var:-1} + +echo ${var:1:4} +echo ${var:0:4} +echo ${var::4} +echo ${var:-1:4} + +echo ${var:1:7} +echo ${var:0:7} +echo ${var::7} +echo ${var:-1:7} |