summaryrefslogtreecommitdiffstats
path: root/test/bashisms/case-modification.sh
blob: d163e6a5e40d9b01cde49c1835cc9b36d1d76551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

foo=foo
bar=BAR

echo BASHISM: ${foo^f}
echo BASHISM: ${foo^^o}
echo BASHISM: ${bar,B}
echo BASHISM: ${bar,,R}

echo BASHISM: ${foo^}
echo BASHISM: ${foo^^}
echo BASHISM: ${bar,}
echo BASHISM: ${bar,,}

echo BASHISM: ${@^}
echo BASHISM: ${*^^}
echo BASHISM: ${@,}
echo BASHISM: ${*,,}