busybox/shell/ash_test/ash-vars/var_posix1.tests

14 lines
171 B
Plaintext
Raw Normal View History

var=ababcdcd
echo ${var#ab}
echo ${var#a*b}
echo ${var##ab}
echo ${var##a*b}
echo ${var#?}
echo ${var%cd}
echo ${var%c*d}
echo ${var%%cd}
echo ${var%%c*d}
echo ${var%?}