summaryrefslogtreecommitdiffstats
path: root/tests/exp10.sub
blob: 6592bab97ba26345c9a44d00bc655fdfcce73634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set -- ' A ' ' B '
IFS=

printf '<%s>' ${*} ${*##}
echo
printf '<%s>' ${*} ${*/}
echo
printf '<%s>' ${*} ${*,,}
echo
printf '<%s>' ${*} ${*:1:2}
echo
printf '<%s>' ${*} ${*@Q}
echo

echo -----

printf '<%s>' ${@} ${@##}
echo
printf '<%s>' ${@} ${@/}
echo
printf '<%s>' ${@} ${@,,}
echo
printf '<%s>' ${@} ${@:1:2}
echo
printf '<%s>' ${@} ${@@Q}
echo