1 |
## compare_shells: dash bash mksh zsh
|
2 |
|
3 |
#
|
4 |
# Tests for the blog.
|
5 |
#
|
6 |
|
7 |
|
8 |
[ -a ]
|
9 |
echo status=$?
|
10 |
## stdout: status=0
|
11 |
|
12 |
|
13 |
[ -a -a ]
|
14 |
echo status=$?
|
15 |
## stdout: status=1
|
16 |
|
17 |
|
18 |
[ -a -a -a ]
|
19 |
echo status=$?
|
20 |
## stdout: status=0
|
21 |
## BUG mksh stdout: status=2
|
22 |
|
23 |
|
24 |
[ -a -a -a -a ]
|
25 |
echo status=$?
|
26 |
## STDOUT:
|
27 |
status=1
|
28 |
## END
|
29 |
|
30 |
|
31 |
[ -a -a -a -a -a ]
|
32 |
echo status=$?
|
33 |
## stdout: status=1
|
34 |
## BUG dash/zsh stdout: status=0
|
35 |
|
36 |
|
37 |
[ -a -a -a -a -a -a ]
|
38 |
echo status=$?
|
39 |
## STDOUT:
|
40 |
status=2
|
41 |
## END
|
42 |
|
43 |
## BUG dash/zsh STDOUT:
|
44 |
status=1
|
45 |
## END
|
46 |
|
47 |
|
48 |
[ -a -a -a -a -a -a -a ]
|
49 |
echo status=$?
|
50 |
## STDOUT:
|
51 |
status=1
|
52 |
## END
|
53 |
## BUG dash/zsh STDOUT:
|
54 |
status=0
|
55 |
## END
|
56 |
|
57 |
|
58 |
[ -a -a -a -a -a -a -a -a ]
|
59 |
echo status=$?
|
60 |
## stdout: status=1
|