summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_posix1.tests
blob: a7c85cbb08a6a4ae5c7f86e20620c2bda1895dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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%?}