blob: f59ce59231265bc969965c63616f2c3db9f98ce0 [file] [log] [blame]
Mike Frysingerd690f682009-03-30 06:50:54 +00001# check invalid options are rejected
2unset -
3echo $?
4unset -m a b c
5echo $?
6
7# check funky usage
8unset
9echo $?
10
11# check normal usage
12echo ___
13f=f g=g
14echo $? $f $g
15unset f
16echo $? $f $g
17unset g
18echo $? $f $g
19
20echo ___
21f=f g=g
22echo $? $f $g
23unset f g
24echo $? $f $g
25f=f g=g
26echo $? $f $g
27unset -v f g
28echo $? $f $g
29
30# check read only vars
31echo ___
32f=f g=g
33unset HUSH_VERSION
34echo $? $f $g
35unset f HUSH_VERSION g
36echo $? $f $g