summaryrefslogtreecommitdiffstats
path: root/tests/case4.sub
blob: 56f88baadd37ac3629201ee77b1af35026c6ce40 (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
shopt -s -o posix
two="t w  o"
ten="t   e
n"
set 1 "$two" 3 4 5 6 7 8 9 "$ten"

unset IFS
expvar="$*"
case $* in
"$expvar") ;;
*) echo "failed 1" ;;
esac

case $* in
$expvar) ;;
*) echo "failed 2" ;;
esac

alias foo='oneword'
foo_word='foo'
case "$foo_word"
in
        foo) ;;
	*) echo failed 3;;
esac