Results for dparen.test.sh

statusbash-4mkshzshosh
pass 1410612
ok 0011
N-I 0560
BUG 1020
FAIL 0002
total15151515
casebash-4mkshzshoshdescription
0pass pass pass pass (( )) result
1pass pass pass pass negative number is true
2pass pass pass pass (( )) in if statement
3pass pass pass pass (( ))
4pass pass ok pass (( )) with arrays
details
5pass pass pass pass (( )) with error
6pass pass N-I pass bash and mksh: V in (( a[K] = V )) gets coerced to integer
details
7pass N-I N-I ok bash: K in (( A[K] = V )) is a constant string
detailsdetailsdetails
8BUG pass BUG pass BUG: (( V = A[K] )) doesn't retrieve the right value
detailsdetails
9pass N-I N-I pass bash: V in (( A["K"] = V )) gets coerced to integer
detailsdetails
10pass N-I N-I pass literal strings inside (( ))
detailsdetails
11pass pass pass pass (( )) with redirect
12pass pass BUG pass Assigning whole raray (( b = a ))
details
13pass N-I N-I FAIL set associative array
detailsdetailsdetails
14pass N-I N-I FAIL Example of incrementing associative array entry with var key (ble.sh)
detailsdetailsdetails
42 passed, 2 OK, 11 not implemented, 3 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

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: 
mksh: <stdin>[3]: typeset: -A: unknown option
mksh: <stdin>[6]: "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: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
bash-48 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: 
mksh: <stdin>[1]: shopt: not found
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:
mksh: <stdin>[1]: declare: not found
zsh10 literal strings inside (( ))

stdout:
42
stderr:
zsh: bad math expression: operand expected at `'y' '
zsh12 Assigning whole raray (( b = a ))

stdout:
4 5 6

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

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

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

[osh stdout] Expected '42\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 202, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1214, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 2174, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1973, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1700, in _Dispatch
    status = self._DoSimple(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 964, in _DoSimple
    status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 607, in _RunSimpleCommand
    return self._RunAssignBuiltin(cmd_val)
  File "/home/uke/oil/osh/cmd_eval.py", line 393, in _RunAssignBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/uke/oil/builtin/assign_osh.py", line 530, in Run
    self.arith_ev, arg.a, arg.A)
  File "/home/uke/oil/builtin/assign_osh.py", line 245, in _AssignVarForBuiltin
    with tagswitch(old_val) as case:
NameError: global name 'tagswitch' is not defined
mksh14 Example of incrementing associative array entry with var key (ble.sh)

stdout:
stderr: 
mksh: <stdin>[1]: 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''
osh14 Example of incrementing associative array entry with var key (ble.sh)

[osh stdout] Expected 'foo=44\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 202, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1214, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 2174, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1973, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1700, in _Dispatch
    status = self._DoSimple(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 964, in _DoSimple
    status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 607, in _RunSimpleCommand
    return self._RunAssignBuiltin(cmd_val)
  File "/home/uke/oil/osh/cmd_eval.py", line 393, in _RunAssignBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/uke/oil/builtin/assign_osh.py", line 530, in Run
    self.arith_ev, arg.a, arg.A)
  File "/home/uke/oil/builtin/assign_osh.py", line 245, in _AssignVarForBuiltin
    with tagswitch(old_val) as case:
NameError: global name 'tagswitch' is not defined