mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-01 07:30:24 +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