Results for dparen.test.sh

casebashmkshzshoshosh_ALTdescription
0pass pass pass pass pass (( )) result
1pass pass pass pass pass negative number is true
2pass pass pass pass pass (( )) in if statement
3pass pass pass pass pass (( ))
4pass pass ok pass pass (( )) with arrays
details
5pass pass pass pass pass (( )) with error
6pass pass N-I FAIL FAIL bash and mksh: V in (( a[K] = V )) gets coerced to integer
detailsdetailsdetails
7pass N-I N-I FAIL FAIL bash: K in (( A[K] = V )) is a constant string
detailsdetailsdetailsdetails
8BUG pass BUG pass pass BUG: (( V = A[K] )) doesn't retrieve the right value
detailsdetails
9pass N-I N-I FAIL FAIL bash: V in (( A[K] = V )) gets coerced to integer
detailsdetailsdetailsdetails
10pass N-I N-I FAIL FAIL literal strings not properly supported
detailsdetailsdetailsdetails

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

Details on runs that didn't PASS

zsh4 (( )) with arrays

stdout:
9
stderr:
zsh6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

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

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

stdout:
stderr: 
  (( a[K] = V ))
            ^
[ stdin ]:4: fatal: Invalid integer constant 'value'
osh_ALT6 bash and mksh: V in (( a[K] = V )) gets coerced to integer

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

stdout:
stderr: 
  (( a[K] = V ))
            ^
[ stdin ]:4: fatal: Invalid integer constant 'value'
mksh7 bash: K in (( A[K] = V )) is a constant string

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

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

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

stdout:
stderr: 
  (( A[K] = V ))
  ^~
[ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc.
osh_ALT7 bash: K in (( A[K] = V )) is a constant string

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

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

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

stdout:
V=0
stderr:
mksh9 bash: V in (( A[K] = V )) gets coerced to integer

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[3]: typeset: -A: unknown option
zsh9 bash: V in (( A[K] = V )) gets coerced to integer

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

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

stdout:
stderr: 
  (( A[K] = V ))
            ^
[ stdin ]:4: fatal: Invalid integer constant 'value'
osh_ALT9 bash: V in (( A[K] = V )) gets coerced to integer

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

stdout:
stderr: 
  (( A[K] = V ))
            ^
[ stdin ]:4: fatal: Invalid integer constant 'value'
mksh10 literal strings not properly supported

stdout:
0
stderr:
_tmp/spec-bin/mksh: <stdin>[1]: declare: not found
zsh10 literal strings not properly supported

stdout:
0
stderr:
zsh: bad math expression: operand expected at `'y' '
osh10 literal strings not properly supported

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

stdout:
stderr: 
  (( x = A['x'] ))
           ^
[ stdin ]:3: fatal: Invalid integer constant 'x'
osh_ALT10 literal strings not properly supported

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

stdout:
stderr: 
  (( x = A['x'] ))
           ^
[ stdin ]:3: fatal: Invalid integer constant 'x'