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 N-I N-I -a as unary operator (alias of -e)
detailsdetailsdetails
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 -o
11pass pass pass pass pass ( )
12pass pass pass FAIL FAIL ( ) ! -a -o with system version of [
detailsdetails
13BUG pass pass pass pass == is alias for =
details
14N-I pass pass pass pass == and = does not do glob
details
15pass pass pass pass pass [ with op variable
16pass pass pass pass pass [ with unquoted empty var
17pass pass pass pass pass [ compare with literal -f
18pass pass pass pass pass [ '(' foo ] is runtime syntax error
19pass pass pass pass pass -z '>' implies two token lookahead
20ok pass ok pass pass operator/operand ambiguity with ]
detailsdetails
21ok pass ok pass pass operator/operand ambiguity with -a
detailsdetails
22pass pass pass pass pass -d
23pass pass pass pass pass -x
24pass pass pass pass pass -r
25pass pass pass pass pass -w

119 passed, 4 ok, 4 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
osh3 -a as unary operator (alias of -e)

stdout:
status=2
status=2
stderr:
osh error: Expected unary operator, got '-a'
osh error: Expected unary operator, got '-a'
osh_ALT3 -a as unary operator (alias of -e)

stdout:
status=2
status=2
stderr:
osh error: Expected unary operator, got '-a'
osh error: Expected unary operator, got '-a'
osh12 ( ) ! -a -o with system version of [

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

stdout:
stderr: 
Unexpected error in execvpe('command', ['command', '[', '--version'], ...): [Errno 2] No such file or directory
Unexpected error in execvpe('command', ['command', '[', '-z', '', '-a', '(', '!', '-z', 'x', ')', ']'], ...): [Errno 2] No such file or directory
osh_ALT12 ( ) ! -a -o with system version of [

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

stdout:
stderr: 
Unexpected error in execvpe('command', ['command', '[', '--version'], ...): [Errno 2] No such file or directory
Unexpected error in execvpe('command', ['command', '[', '-z', '', '-a', '(', '!', '-z', 'x', ')', ']'], ...): [Errno 2] No such file or directory
dash13 == is alias for =

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

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

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

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

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

stdout:
status=2
stderr:
/bin/mksh: <stdin>[1]: [: expression expected