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