Results for dparen.test.sh

statusbashmkshzshoshosh_ALT
pass 12961313
ok 00111
N-I 04500
BUG 21200
total1414141414
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 pass pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
details
7pass N-I N-I ok ok 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 pass pass bash: V in (( A["K"] = V )) gets coerced to integer
detailsdetails
10pass N-I N-I pass pass literal strings inside (( ))
detailsdetails
11pass pass pass pass pass (( )) with redirect
12BUG BUG BUG pass pass Can't make assign whole array to var (( b = a ))
detailsdetailsdetails
13pass N-I N-I pass pass set associative array
detailsdetails
53 passed, 3 OK, 9 not implemented, 5 BUG, 0 failed, 0 timeouts, 0 cases 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: command not found: shopt
zsh: a: assignment to invalid subscript range
zsh: no matches found: a["key"]=
mksh7 bash: K in (( A[K] = V )) is a constant string

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: typeset: -A: unknown option
/home/andy/git/oilshell/oil/_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

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

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: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[4]: typeset: -A: unknown option
zsh9 bash: V in (( A["K"] = V )) gets coerced to integer

stdout:
stderr: 
zsh: command not found: shopt
zsh: no matches found: A["key"]=
mksh10 literal strings inside (( ))

stdout:
0
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: declare: not found
zsh10 literal strings inside (( ))

stdout:
42
stderr:
zsh: bad math expression: operand expected at `'y' '
bash12 Can't make assign whole array to var (( b = a ))

stdout:
4 5 6
4
stderr:
mksh12 Can't make assign whole array to var (( b = a ))

stdout:
4 5 6
4
stderr:
zsh12 Can't make assign whole array to var (( b = a ))

stdout:
4 5 6

stderr:
zsh: bad math expression: operator expected at `5 6'
mksh13 set associative array

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
zsh13 set associative array

stdout:
0
stderr:
zsh: no matches found: [foo]=bar