add test cases for parameter substitution with unset/null strings

This commit is contained in:
Mike Frysinger 2009-04-09 23:01:47 +00:00
parent 57e746781c
commit e05f9286a9
2 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,19 @@
abcdcd
abcdcd
abcdcd

View File

@ -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}