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