mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
add test cases for parameter substitution with unset/null strings
This commit is contained in:
parent
57e746781c
commit
e05f9286a9
@ -1,3 +1,19 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
abcdcd
|
||||
abcdcd
|
||||
abcdcd
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user