Results for builtin-test.test.sh

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 FAIL FAIL ( ) ! -a -o with system version of [
detailsdetails
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

126 passed, 4 ok, 2 known unimplemented, 1 known bugs, 1 failed, 0 skipped

Details on runs that didn't PASS

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

stdout:
status=2
status=2
stderr:
/bin/dash: 1: [: -a: unexpected operator
/bin/dash: 3: [: -a: unexpected operator
osh13 ( ) ! -a -o with system version of [

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
osh warning: *** command without -v not not implemented ***
osh warning: *** command without -v not not implemented ***
osh_ALT13 ( ) ! -a -o with system version of [

[osh_ALT stdout] Expected 'true\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
osh warning: *** command without -v not not implemented ***
osh warning: *** command without -v not not implemented ***
dash14 == is alias for =

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

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

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

stdout:
status=2
stderr:
/bin/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:
/bin/mksh: <stdin>[1]: [: expression expected