diff options
Diffstat (limited to 'shell/ash_test/ash-vars/var_posix1.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_posix1.tests | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/shell/ash_test/ash-vars/var_posix1.tests b/shell/ash_test/ash-vars/var_posix1.tests index a7c85cb..4139e2c 100755 --- a/shell/ash_test/ash-vars/var_posix1.tests +++ b/shell/ash_test/ash-vars/var_posix1.tests @@ -1,13 +1,21 @@ var=ababcdcd echo ${var#ab} -echo ${var#a*b} echo ${var##ab} +echo ${var#a*b} echo ${var##a*b} echo ${var#?} +echo ${var##?} +echo ${var#*} +echo ${var##*} echo ${var%cd} -echo ${var%c*d} echo ${var%%cd} +echo ${var%c*d} echo ${var%%c*d} echo ${var%?} +echo ${var%%?} +echo ${var%*} +echo ${var%%*} + +echo end |