diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush_test/hush-vars/var_posix1.right | 16 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_posix1.tests | 22 |
2 files changed, 38 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.right b/shell/hush_test/hush-vars/var_posix1.right index 55f35798a..702bbca79 100644 --- a/shell/hush_test/hush-vars/var_posix1.right +++ b/shell/hush_test/hush-vars/var_posix1.right @@ -1,3 +1,19 @@ + + + + + + + + + + + + + + + + abcdcd abcdcd abcdcd diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests index 4139e2cc3..d3205b119 100755 --- a/shell/hush_test/hush-vars/var_posix1.tests +++ b/shell/hush_test/hush-vars/var_posix1.tests @@ -1,3 +1,25 @@ +unset var + +echo ${var#} +echo ${var##} +echo ${var#*} +echo ${var##*} +echo ${var%} +echo ${var%%} +echo ${var%*} +echo ${var%%*} + +var= + +echo ${var#} +echo ${var##} +echo ${var#*} +echo ${var##*} +echo ${var%} +echo ${var%%} +echo ${var%*} +echo ${var%%*} + var=ababcdcd echo ${var#ab} |