Results for dparen.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 13006101039914
ok 0001000001
N-I 0006500000
BUG 1002000000
FAIL 1151500512660
total15151515151515151515
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL pass pass pass pass pass pass pass (( )) result
detailsdetails
1pass FAIL FAIL pass pass pass pass pass pass pass negative number is true
detailsdetails
2pass FAIL FAIL pass pass pass pass pass pass pass (( )) in if statement
detailsdetails
3pass FAIL FAIL pass pass pass FAIL pass pass pass (( ))
detailsdetailsdetails
4pass FAIL FAIL ok pass pass FAIL pass pass pass (( )) with arrays
detailsdetailsdetailsdetails
5pass FAIL FAIL pass pass pass FAIL pass pass pass (( )) with error
detailsdetailsdetails
6pass FAIL FAIL N-I pass pass FAIL pass pass pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
detailsdetailsdetailsdetails
7pass FAIL FAIL N-I N-I FAIL FAIL pass FAIL ok bash: K in (( A[K] = V )) is a constant string
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
8BUG FAIL FAIL BUG pass pass FAIL FAIL FAIL pass BUG: (( V = A[K] )) doesn't retrieve the right value
detailsdetailsdetailsdetailsdetailsdetailsdetails
9pass FAIL FAIL N-I N-I FAIL FAIL pass FAIL pass bash: V in (( A["K"] = V )) gets coerced to integer
detailsdetailsdetailsdetailsdetailsdetailsdetails
10FAIL FAIL FAIL N-I N-I FAIL FAIL FAIL FAIL pass literal strings inside (( ))
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
11pass FAIL FAIL pass pass pass FAIL FAIL pass pass (( )) with redirect
detailsdetailsdetailsdetails
12pass FAIL FAIL BUG pass pass FAIL FAIL pass pass Assigning whole raray (( b = a ))
detailsdetailsdetailsdetailsdetails
13pass FAIL FAIL N-I N-I FAIL FAIL FAIL FAIL pass set associative array
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
14pass FAIL FAIL N-I N-I FAIL FAIL FAIL FAIL pass Example of incrementing associative array entry with var key (ble.sh)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
74 passed, 2 OK, 11 not implemented, 3 BUG, 60 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 (( )) result

[dash stdout] Expected 'True\nFalse\n', got 'False\n'

stdout:
False
stderr:
dash: 1: 1: not found
dash: 2: 0: not found
ash0 (( )) result

[ash stdout] Expected 'True\nFalse\n', got 'False\n'

stdout:
False
stderr:
ash: 1: not found
ash: 0: not found
dash1 negative number is true

[dash stdout] Expected 'True\n', got ''
[dash status] Expected 0, got 127

stdout:
stderr: 
dash: 1: -1: not found
ash1 negative number is true

[ash stdout] Expected 'True\n', got ''
[ash status] Expected 0, got 127

stdout:
stderr: 
ash: -1: not found
dash2 (( )) in if statement

[dash stdout] Expected 'True\n', got ''

stdout:
stderr: 
dash: 1: 3: not found
ash2 (( )) in if statement

[ash stdout] Expected 'True\n', got ''

stdout:
stderr: 
ash: 3: not found
dash3 (( ))

[dash stdout] Expected '1 3\n', got '\n'

stdout:
stderr: 
dash: 1: x: not found
dash: 2: y: not found
ash3 (( ))

[ash stdout] Expected '1 3\n', got '\n'

stdout:
stderr: 
ash: x: not found
ash: y: not found
toysh3 (( ))

[toysh stdout] Expected '1 3\n', got '0 0\n'

stdout:
0 0
stderr:
dash4 (( )) with arrays

[dash stdout] Expected '15\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash4 (( )) with arrays

[ash stdout] Expected '15\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh4 (( )) with arrays

stdout:
9
stderr:
toysh4 (( )) with arrays

[toysh stdout] Expected '15\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 4
dash5 (( )) with error

[dash stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n'

stdout:
false
0
stderr:
dash: 1: a: not found
dash: 2: b: not found
dash: 3: c: not found
ash5 (( )) with error

[ash stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n'

stdout:
false
0
stderr:
ash: a: not found
ash: b: not found
ash: c: not found
toysh5 (( )) with error

[toysh stdout] Expected 'false\ntrue\ntrue\n0\n', got 'false\n0\n'

stdout:
false
0
stderr:
main: line 1: sh: =0
main: line 1: sh: bad math:  a = 0  @ 7
dash6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

[dash stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: shopt: not found
dash: 4: typeset: not found
dash: 5: a[K]: not found
dash: 7: Bad substitution
ash6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

[ash stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: shopt: not found
ash: typeset: not found
ash: a[K]: not found
ash: syntax error: bad substitution
zsh6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

stdout:
stderr: 
zsh: command not found: shopt
zsh: a: assignment to invalid subscript range
zsh: no matches found: a["key"]=
toysh6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

[toysh stdout] Expected 'a["key"]=0\nkeys = 0\nvalues = 0\n', got 'a["key"]=\nkeys =\nvalues =\n'

stdout:
a["key"]=
keys =
values =
stderr:
sh: shopt: No such file or directory
sh: typeset: No such file or directory
main: line 5: sh: bad math:  a[K] = V  @ 2
dash7 bash: K in (( A[K] = V )) is a constant string

[dash stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 3: typeset: not found
dash: 4: A[K]: not found
dash: 6: Bad substitution
ash7 bash: K in (( A[K] = V )) is a constant string

[ash stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: typeset: not found
ash: A[K]: not found
ash: syntax error: bad substitution
zsh7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
zsh: no matches found: A[5]=
mksh7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
mksh: <stdin>[3]: typeset: -A: unknown option
mksh: <stdin>[6]: "5": unexpected '"'
ksh7 bash: K in (( A[K] = V )) is a constant string

[ksh stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[3]: typeset: -A: unknown option
W: ksh: <stdin>[6]: "5": unexpected '"'
toysh7 bash: K in (( A[K] = V )) is a constant string

[toysh stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got 'A[5]=\nkeys =\nvalues =\n'

stdout:
A[5]=
keys =
values =
stderr:
sh: typeset: No such file or directory
main: line 4: sh: bad math:  A[K] = V  @ 2
brush7 bash: K in (( A[K] = V )) is a constant string

[brush stdout] Expected 'A[5]=\nkeys = K\nvalues = 42\n', got 'A[5]=42\nkeys = 5\nvalues = 42\n'

stdout:
A[5]=42
keys = 5
values = 42
stderr:
osh7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
  (( A[K] = V ))
      ^
[ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
bash8 BUG: (( V = A[K] )) doesn't retrieve the right value

stdout:
V=0
stderr:
dash8 BUG: (( V = A[K] )) doesn't retrieve the right value

[dash stdout] Expected u'', got 'V=42\n'
[dash status] Expected 1, got 0

stdout:
V=42
stderr:
dash: 1: typeset: not found
dash: 4: A[5]=42: not found
dash: 5: A[K]=oops: not found
dash: 6: A[K]=oops2: not found
dash: 8: V: not found
ash8 BUG: (( V = A[K] )) doesn't retrieve the right value

[ash stdout] Expected u'', got 'V=42\n'
[ash status] Expected 1, got 0

stdout:
V=42
stderr:
ash: typeset: not found
ash: A[5]=42: not found
ash: A[K]=oops: not found
ash: A[K]=oops2: not found
ash: V: not found
zsh8 BUG: (( V = A[K] )) doesn't retrieve the right value

stdout:
V=0
stderr:
toysh8 BUG: (( V = A[K] )) doesn't retrieve the right value

[toysh stdout] Expected u'', got 'V=42\n'
[toysh status] Expected 1, got 0

stdout:
V=42
stderr:
sh: typeset: No such file or directory
sh: A[5]=42: No such file or directory
sh: A[K]=oops: No such file or directory
sh: A[K]=oops2: No such file or directory
main: line 8: sh: =0
main: line 8: sh: bad math:  V = A[K]  @ 6
sush8 BUG: (( V = A[K] )) doesn't retrieve the right value

[sush stdout] Expected u'', got 'V=0\n'
[sush status] Expected 1, got 0

stdout:
V=0
stderr:
brush8 BUG: (( V = A[K] )) doesn't retrieve the right value

[brush stdout] Expected u'', got 'V=42\n'
[brush status] Expected 1, got 0

stdout:
V=42
stderr:
dash9 bash: V in (( A["K"] = V )) gets coerced to integer

[dash stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got ''
[dash status] Expected 0, got 1

stdout:
stderr: 
dash: 1: shopt: not found
dash: 4: typeset: not found
ash9 bash: V in (( A["K"] = V )) gets coerced to integer

[ash stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got ''
[ash status] Expected 0, got 1

stdout:
stderr: 
ash: shopt: not found
ash: typeset: not found
zsh9 bash: V in (( A["K"] = V )) gets coerced to integer

stdout:
stderr: 
zsh: command not found: shopt
zsh: no matches found: A["key"]=
mksh9 bash: V in (( A["K"] = V )) gets coerced to integer

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[4]: typeset: -A: unknown option
ksh9 bash: V in (( A["K"] = V )) gets coerced to integer

[ksh stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[4]: typeset: -A: unknown option
toysh9 bash: V in (( A["K"] = V )) gets coerced to integer

[toysh stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got ''
[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: shopt: No such file or directory
sh: typeset: No such file or directory
brush9 bash: V in (( A["K"] = V )) gets coerced to integer

[brush stdout] Expected 'A["key"]=\nkeys = K\nvalues = 0\n', got 'A["key"]=\nkeys = 0\nvalues = 0\n'

stdout:
A["key"]=
keys = 0
values = 0
stderr:
shopt: strict_arith: invalid shell option name
bash10 literal strings inside (( ))

[bash stdout] Expected '42 0\n', got '42\n'

stdout:
42
stderr:
bash: line 4: ((: A['y'] = 'y' : syntax error: operand expected (error token is "'y' ")
dash10 literal strings inside (( ))

[dash stdout] Expected '42 0\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: declare: not found
dash: 2: A[x]=42: not found
dash: 3: x: not found
dash: 4: A[y]: not found
dash: 5: Bad substitution
ash10 literal strings inside (( ))

[ash stdout] Expected '42 0\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: declare: not found
ash: A[x]=42: not found
ash: x: not found
ash: A[y]: not found
ash: syntax error: bad substitution
zsh10 literal strings inside (( ))

stdout:
42
stderr:
zsh: bad math expression: operand expected at `'y' '
mksh10 literal strings inside (( ))

stdout:
0
stderr:
mksh: <stdin>[1]: declare: not found
ksh10 literal strings inside (( ))

[ksh stdout] Expected '42 0\n', got '0\n'

stdout:
0
stderr:
E: ksh: <stdin>[1]: declare: inaccessible or not found
toysh10 literal strings inside (( ))

[toysh stdout] Expected '42 0\n', got '\n'

stdout:
stderr: 
sh: A[x]=42: No such file or directory
main: line 3: sh: =0
main: line 3: sh: bad math:  x = A[x]  @ 6
main: line 4: sh: bad math:  A[y] = y  @ 2
sush10 literal strings inside (( ))

[sush stdout] Expected '42 0\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: 'x': syntax error: operand expected (error token is "'x'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: ((: x = A['x'] : syntax error: operand expected (error token is "'x'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: ((: A['y'] = 'y' : syntax error: operand expected (error token is "'y'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: 'y': syntax error: operand expected (error token is "'y'")
brush10 literal strings inside (( ))

[brush stdout] Expected '42 0\n', got '0\n'

stdout:
0
stderr:
dash11 (( )) with redirect

[dash stdout] Expected '52\n--\nSTDERR\n', got '\n--\nSTDERR\ndash: 1: a: not found\n'

stdout:
--
STDERR
dash: 1: a: not found
stderr:
ash11 (( )) with redirect

[ash stdout] Expected '52\n--\nSTDERR\n', got '\n--\nSTDERR\nash: a: not found\n'

stdout:
--
STDERR
ash: a: not found
stderr:
toysh11 (( )) with redirect

[toysh stdout] Expected '52\n--\nSTDERR\n', got '0\n\nSTDERR\n'

stdout:
0

STDERR
stderr:
sush11 (( )) with redirect

[sush stdout] Expected '52\n--\nSTDERR\n', got '\n--\n'
[sush status] Expected 0, got 1

stdout:
--
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: 2>$TMP/x.txt

cat: /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/dparen.test.sh/11-sush/x.txt: No such file or directory
dash12 Assigning whole raray (( b = a ))

[dash stdout] Expected '4 5 6\n4\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash12 Assigning whole raray (( b = a ))

[ash stdout] Expected '4 5 6\n4\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh12 Assigning whole raray (( b = a ))

stdout:
4 5 6

stderr:
zsh: bad math expression: operator expected at `5 6'
toysh12 Assigning whole raray (( b = a ))

[toysh stdout] Expected '4 5 6\n4\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 4
sush12 Assigning whole raray (( b = a ))

[sush stdout] Expected '4 5 6\n4\n', got '4 5 6\n\n'

stdout:
4 5 6

stderr:
dash13 set associative array

[dash stdout] Expected '42\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash13 set associative array

[ash stdout] Expected '42\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh13 set associative array

stdout:
0
stderr:
zsh: no matches found: [foo]=bar
mksh13 set associative array

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh13 set associative array

[ksh stdout] Expected '42\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh13 set associative array

[toysh stdout] Expected '42\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush13 set associative array

[sush stdout] Expected '42\n', got '\n'

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'foo': syntax error: operand expected (error token is "'foo'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'spam': syntax error: operand expected (error token is "'spam'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: ((: x = A['spam'] : syntax error: operand expected (error token is "'spam'")
brush13 set associative array

[brush stdout] Expected '42\n', got '0\n'

stdout:
0
stderr:
dash14 Example of incrementing associative array entry with var key (ble.sh)

[dash stdout] Expected 'foo=44\n', got ''
[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash14 Example of incrementing associative array entry with var key (ble.sh)

[ash stdout] Expected 'foo=44\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: unexpected "("
zsh14 Example of incrementing associative array entry with var key (ble.sh)

stdout:
stderr: 
zsh: no matches found: [foo]=42
zsh: A: assignment to invalid subscript range
zsh: bad math expression: operand expected at `'foo''
mksh14 Example of incrementing associative array entry with var key (ble.sh)

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
ksh14 Example of incrementing associative array entry with var key (ble.sh)

[ksh stdout] Expected 'foo=44\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected '('
toysh14 Example of incrementing associative array entry with var key (ble.sh)

[toysh stdout] Expected 'foo=44\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: )
sush14 Example of incrementing associative array entry with var key (ble.sh)

[sush stdout] Expected 'foo=44\n', got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: 'foo': syntax error: operand expected (error token is "'foo'")
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: 'foo': syntax error: operand expected (error token is "'foo'")
brush14 Example of incrementing associative array entry with var key (ble.sh)

[brush stdout] Expected 'foo=44\n', got 'foo=42\n'

stdout:
foo=42
stderr: