Results for dbracket.test.sh

statusbashmkshosh
pass 513649
ok 070
N-I 080
BUG 110
FAIL 003
total525252
casebashmkshoshdescription
0pass pass pass [[ glob matching, [[ has no glob expansion
1pass pass pass [[ glob matching with escapes
2pass pass pass equality
3pass pass pass [[ glob matching with unquoted var
4pass N-I pass [[ regex matching
details
5pass N-I pass [[ regex syntax error
details
6pass pass pass [[ has no word splitting
7pass pass pass [[ has quote joining
8pass pass pass [[ empty string is false
9pass pass pass && chain
10pass pass pass || chain
11pass pass pass [[ compound expressions
12pass pass pass precedence of && and || inside [[
13pass pass pass precedence of && and || in a command context
14pass N-I pass Octal literals with -eq
details
15pass N-I pass Hex literals with -eq
details
16pass pass pass > on strings
17pass pass pass != on strings
18pass pass pass -eq on strings
19pass pass pass [[ compare with literal -f (compare with test-builtin.test.sh)
20pass ok pass [[ with op variable (compare with test-builtin.test.sh)
details
21pass pass pass [[ with unquoted empty var (compare with test-builtin.test.sh)
22pass pass pass [[ at runtime doesn't work
23pass pass pass [[ with env prefix doesn't work
24pass pass pass [[ over multiple lines is OK
25pass pass pass Argument that looks like a command word operator
26pass ok pass Argument that looks like a real operator
details
27pass pass pass User array compared to "$@" (broken unless shopt -s strict_array)
28pass pass pass Array coerces to string (shopt -s strict_array to disallow)
29BUG pass pass (( array1 == array2 )) doesn't work
details
30pass pass pass Quotes don't matter in comparison
31pass pass pass -eq does dynamic arithmetic parsing (not supported in OSH)
32pass pass pass -eq coercion produces weird results
33pass pass pass [[ '(' ]] is treated as literal
34pass ok pass [[ '(' foo ]] is syntax error
details
35pass pass pass empty ! is treated as literal
36pass ok pass [[ -z ]] is syntax error
details
37pass pass pass [[ -z '>' ]]
38pass ok pass [[ -z '>' a ]] is syntax error
details
39pass pass pass test whether ']]' is empty
40pass ok pass [[ ]] is syntax error
details
41pass ok pass [[ && ]] is syntax error
details
42pass BUG pass [[ a 3< b ]] doesn't work (bug regression)
details
43pass pass pass tilde expansion in [[
44pass pass pass more tilde expansion
45pass N-I pass tilde expansion with =~ (confusing)
details
46pass pass pass [[ ]] with redirect
47pass pass pass special chars
48pass pass pass \(\) in pattern (regression)
49pass N-I FAIL [[ -v array[i] ]]
detailsdetails
50pass N-I FAIL [[ -v array[expr]] ]] does arith expression evaluation
detailsdetails
51pass N-I FAIL [[ -v assoc[key] ]]
detailsdetails
136 passed, 7 OK, 8 not implemented, 2 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

mksh4 [[ regex matching

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand
mksh5 [[ regex syntax error

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '=~' unexpected operator/operand
mksh14 Octal literals with -eq

stdout:
false
stderr:
mksh: <stdin>[1]: shopt: not found
mksh15 Hex literals with -eq

stdout:
false
stderr:
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[4]: 0x0f: bad number '0x0f'
mksh20 [[ with op variable (compare with test-builtin.test.sh)

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: '$op' unexpected operator/operand
mksh26 Argument that looks like a real operator

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '-f' missing argument
bash29 (( array1 == array2 )) doesn't work

stdout:
status=1
status=1
status=1
stderr:
bash: line 6: ((: 1 3: syntax error in expression (error token is "3")
bash: line 9: ((: 1 3: syntax error in expression (error token is "3")
bash: line 12: ((: 1 3: syntax error in expression (error token is "3")
mksh34 [[ '(' foo ]] is syntax error

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: 'foo' unexpected operator/operand
mksh36 [[ -z ]] is syntax error

stdout:
stderr: 
mksh: <stdin>[2]: syntax error: 'echo' unexpected operator/operand
mksh38 [[ -z '>' a ]] is syntax error

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '--' unexpected operator/operand
mksh40 [[ ]] is syntax error

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: 'newline' unexpected operator/operand
mksh41 [[ && ]] is syntax error

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '&&' expression expected
mksh42 [[ a 3< b ]] doesn't work (bug regression)

stdout:
status=0
status=1
stderr:
mksh45 tilde expansion with =~ (confusing)

stdout:
stderr: 
mksh49 [[ -v array[i] ]]

stdout:
stderr: 
mksh: <stdin>[4]: syntax error: 'array[0]' unexpected operator/operand
osh49 [[ -v array[i] ]]

[osh stdout] Expected 'zero=0\none=0\ntwo=1\n', got 'zero=1\none=1\ntwo=1\n'

stdout:
zero=1
one=1
two=1
stderr:
mksh50 [[ -v array[expr]] ]] does arith expression evaluation

stdout:
stderr: 
mksh: <stdin>[6]: syntax error: 'array[zero+0]' unexpected operator/operand
osh50 [[ -v array[expr]] ]] does arith expression evaluation

[osh stdout] Expected 'zero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n' Got 'zero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n'

stdout:
zero=1
one=1
two=1
---
zero=1
one=1
two=1
---
zero=1
one=1
two=1
stderr:
mksh51 [[ -v assoc[key] ]]

stdout:
stderr: 
mksh: <stdin>[1]: typeset: -A: unknown option
mksh: <stdin>[4]: syntax error: 'assoc[empty]' unexpected operator/operand
osh51 [[ -v assoc[key] ]]

[osh stdout] Expected 'empty=0\nk=0\nnonexistent=1\n---\nempty=0\nk=0\nnonexistent=1\n---\nempty=0\nk=0\nnonexistent=1\n' Got 'empty=1\nk=1\nnonexistent=1\n---\nempty=1\nk=1\nnonexistent=1\n---\nempty=1\nk=1\nnonexistent=1\n'

stdout:
empty=1
k=1
nonexistent=1
---
empty=1
k=1
nonexistent=1
---
empty=1
k=1
nonexistent=1
stderr: