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