mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
ash: a bit more complete POSIX subst testsuite entry
This commit is contained in:
parent
033424a213
commit
f78a656f7c
@ -3,8 +3,15 @@ abcdcd
|
||||
abcdcd
|
||||
cdcd
|
||||
babcdcd
|
||||
babcdcd
|
||||
ababcdcd
|
||||
|
||||
ababcd
|
||||
ababcd
|
||||
ababcd
|
||||
abab
|
||||
ababcdc
|
||||
ababcdc
|
||||
ababcdcd
|
||||
|
||||
end
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user