projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ash: import param_expand_default.tests from hush
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-vars
/
unset.tests
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