Results for builtin-bracket.test.sh

statusdashbashmkshoshosh_ALT
pass 3844424646
ok 31200
N-I 40100
BUG 11100
total4646464646
casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass zero args: [ ]
1pass pass pass pass pass one arg: [ x ] where x is one of '=' '!' '(' ']'
2pass pass pass pass pass one arg: empty string is false. Equivalent to -n.
3N-I pass pass pass pass -a as unary operator (alias of -e)
details
4pass pass pass pass pass two args: -z with = ! ( ]
5pass pass pass pass pass three args
6pass pass pass pass pass four args
7pass pass pass pass pass test with extra args is syntax error
8pass pass pass pass pass ] syntax errors
9pass pass pass pass pass -n
10pass pass pass pass pass ! -a
11pass pass pass pass pass -o
12pass pass pass pass pass ( )
13pass pass pass pass pass ( ) ! -a -o with system version of [
14BUG pass pass pass pass == is alias for =
details
15N-I pass pass pass pass == and = does not do glob
details
16pass pass pass pass pass [ with op variable
17pass pass pass pass pass [ with unquoted empty var
18pass pass pass pass pass [ compare with literal -f
19pass pass pass pass pass [ '(' foo ] is runtime syntax error
20pass pass pass pass pass -z '>' implies two token lookahead
21ok pass ok pass pass operator/operand ambiguity with ]
detailsdetails
22ok pass ok pass pass operator/operand ambiguity with -a
detailsdetails
23pass pass pass pass pass -d
24pass pass pass pass pass -x
25pass pass pass pass pass -r
26pass pass pass pass pass -w
27pass pass pass pass pass -k for sticky bit
28pass pass pass pass pass -h and -L test for symlink
29pass pass pass pass pass -t 1 for stdout
30pass BUG pass pass pass [ -t invalid ]
details
31pass pass pass pass pass -ot and -nt
32pass pass BUG pass pass [ a -eq b ]
details
33pass pass pass pass pass test -s
34pass pass pass pass pass test -b -c -S (block, character, socket)
35pass pass pass pass pass test -p named pipe
36pass pass pass pass pass -G and -O for effective user ID and group ID
37pass pass pass pass pass -u for setuid, -g too
38N-I pass N-I pass pass -v to test variable
detailsdetails
39N-I pass pass pass pass test -o for options
details
40pass pass pass pass pass -nt -ot
41pass pass pass pass pass -ef
42ok ok pass pass pass Overflow error
detailsdetails
43pass pass pass pass pass Bug regression
44pass pass pass pass pass test -c
45pass pass pass pass pass test -S
216 passed, 6 OK, 5 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash3 -a as unary operator (alias of -e)

stdout:
status=2
status=2
stderr:
dash: 1: [: -a: unexpected operator
dash: 3: [: -a: unexpected operator
dash14 == is alias for =

stdout:
true
stderr:
dash: 2: [: a: unexpected operator
dash15 == and = does not do glob

stdout:
status=1
status=2
stderr:
dash: 3: [: abc: unexpected operator
dash21 operator/operand ambiguity with ]

stdout:
status=2
stderr:
dash: 1: [: -a: unexpected operator
mksh21 operator/operand ambiguity with ]

stdout:
status=2
stderr:
mksh: <stdin>[1]: [: ]: unexpected operator/operand
dash22 operator/operand ambiguity with -a

stdout:
status=1
stderr:
mksh22 operator/operand ambiguity with -a

stdout:
status=2
stderr:
mksh: <stdin>[1]: [: expression expected
bash30 [ -t invalid ]

stdout:
status=1
stderr:
mksh32 [ a -eq b ]

stdout:
status=0
stderr:
dash38 -v to test variable

stdout:
global=2
global=2
dynamic=2
dynamic=2
dynamic=2
stderr:
dash: 1: test: -v: unexpected operator
dash: 5: test: -v: unexpected operator
dash: 14: test: -v: unexpected operator
dash: 16: test: -v: unexpected operator
dash: 18: test: -v: unexpected operator
mksh38 -v to test variable

stdout:
global=2
global=2
dynamic=2
dynamic=2
dynamic=2
stderr:
mksh: <stdin>[1]: test: nonexistent: unexpected operator/operand
mksh: <stdin>[5]: test: g: unexpected operator/operand
mksh: <stdin>[21]: test: f_var: unexpected operator/operand
mksh: <stdin>[21]: test: g: unexpected operator/operand
mksh: <stdin>[21]: test: nonexistent: unexpected operator/operand
dash39 test -o for options

stdout:
status=2
status=2
status=2
stderr:
dash: 1: test: -o: unexpected operator
dash: 5: test: -o: unexpected operator
dash: 8: test: -o: unexpected operator
dash42 Overflow error

stdout:
status=1
stderr:
bash42 Overflow error

stdout:
status=1
stderr: