ash: a bit more complete POSIX subst testsuite entry

This commit is contained in:
Denis Vlasenko 2008-04-12 23:02:43 +00:00
parent 033424a213
commit f78a656f7c
2 changed files with 17 additions and 2 deletions

View File

@ -3,8 +3,15 @@ abcdcd
abcdcd
cdcd
babcdcd
babcdcd
ababcdcd
ababcd
ababcd
ababcd
abab
ababcdc
ababcdc
ababcdcd
end

View File

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