source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-vars/unset.tests@ 2725

Last change on this file since 2725 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 424 bytes
Line 
1# 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
Note: See TracBrowser for help on using the repository browser.