Results for dparen.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 13101039914
ok 0000001
N-I 0500000
BUG 1000000
FAIL 10512660
total15151515151515
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass pass pass pass pass (( )) result
1pass pass pass pass pass pass pass negative number is true
2pass pass pass pass pass pass pass (( )) in if statement
3pass pass pass FAIL pass pass pass (( ))
details
4pass pass pass FAIL pass pass pass (( )) with arrays
details
5pass pass pass FAIL pass pass pass (( )) with error
details
6pass pass pass FAIL pass pass pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
details
7pass N-I FAIL FAIL pass FAIL ok bash: K in (( A[K] = V )) is a constant string
detailsdetailsdetailsdetailsdetails
8BUG pass pass FAIL FAIL FAIL pass BUG: (( V = A[K] )) doesn't retrieve the right value
detailsdetailsdetailsdetails
9pass N-I FAIL FAIL pass FAIL pass bash: V in (( A["K"] = V )) gets coerced to integer
detailsdetailsdetailsdetails
10FAIL N-I FAIL FAIL FAIL FAIL pass literal strings inside (( ))
detailsdetailsdetailsdetailsdetailsdetails
11pass pass pass FAIL FAIL pass pass (( )) with redirect
detailsdetails
12pass pass pass FAIL FAIL pass pass Assigning whole raray (( b = a ))
detailsdetails
13pass N-I FAIL FAIL FAIL FAIL pass set associative array
detailsdetailsdetailsdetailsdetails
14pass N-I FAIL FAIL FAIL FAIL pass Example of incrementing associative array entry with var key (ble.sh)
detailsdetailsdetailsdetailsdetails
68 passed, 1 OK, 5 not implemented, 1 BUG, 30 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

toysh3 (( ))

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

stdout:
0 0
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
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
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
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:
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:
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' ")
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:
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.3692597/11-sush/x.txt: No such file or directory
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:
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:
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: