diff options
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} |