spec test index / oilshell.org
49 passed, 3 ok, 12 known unimplemented, 2 known bugs, 2 failed, 0 skipped
dash | 0 strict-arith option stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found |
bash | 0 strict-arith option stdout: stderr: _tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 0 strict-arith option stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
bash | 2 top level control flow stdout: SUBSHELL BREAK CONTINUE RETURN DONEstderr: spec/testdata/top-level-control-flow.sh: line 14: return: can only `return' from a function or sourced script spec/testdata/top-level-control-flow.sh: line 17: break: only meaningful in a `for', `while', or `until' loop spec/testdata/top-level-control-flow.sh: line 19: continue: only meaningful in a `for', `while', or `until' loop spec/testdata/top-level-control-flow.sh: line 24: return: can only `return' from a function or sourced script |
bash | 3 errexit and top-level control flow stdout: SUBSHELLstderr: spec/testdata/top-level-control-flow.sh: line 14: return: can only `return' from a function or sourced script |
dash | 4 shopt -s strict-control-flow stdout: break histderr: _tmp/spec-bin/dash: 1: shopt: not found |
bash | 4 shopt -s strict-control-flow stdout: break histderr: _tmp/spec-bin/bash: line 1: shopt: strict-control-flow: invalid shell option name _tmp/spec-bin/bash: line 3: break: only meaningful in a `for', `while', or `until' loop |
mksh | 4 shopt -s strict-control-flow stdout: break histderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: break: can't break |
bash | 5 return at top level is an error stdout: status=1stderr: _tmp/spec-bin/bash: line 1: return: can only `return' from a function or sourced script |
osh | 9 strict-argv: no first word but exit code (DUPE of if `false` ??) [osh stdout] Expected 'FALSE\n', got 'TRUE\n' stdout: TRUEstderr: |
osh_ALT | 9 strict-argv: no first word but exit code (DUPE of if `false` ??) [osh_ALT stdout] Expected 'FALSE\n', got 'TRUE\n' stdout: TRUEstderr: |
dash | 10 empty argv WITH strict-argv stdout: empty status=0stderr: _tmp/spec-bin/dash: 1: shopt: not found |
bash | 10 empty argv WITH strict-argv stdout: empty status=0stderr: _tmp/spec-bin/bash: line 1: shopt: strict-argv: invalid shell option name |
mksh | 10 empty argv WITH strict-argv stdout: empty status=0stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
dash | 11 Arrays should not be incorrectly compared like bash/mksh stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
bash | 11 Arrays should not be incorrectly compared like bash/mksh stdout: 2 4 EQUALstderr: |
mksh | 11 Arrays should not be incorrectly compared like bash/mksh stdout: 2 4 EQUALstderr: |
osh | 11 Arrays should not be incorrectly compared like bash/mksh [osh stdout] Expected '2\n4\n', got '2\n4\nEQUAL\n' [osh status] Expected 1, got 0 stdout: 2 4 EQUALstderr: |
osh_ALT | 11 Arrays should not be incorrectly compared like bash/mksh [osh_ALT stdout] Expected '2\n4\n', got '2\n4\nEQUAL\n' [osh_ALT status] Expected 1, got 0 stdout: 2 4 EQUALstderr: |
dash | 12 automatically creating arrays WITHOUT strict-array stdout: stderr: _tmp/spec-bin/dash: 1: undef[2]=x: not found _tmp/spec-bin/dash: 2: undef[3]=y: not found _tmp/spec-bin/dash: 3: Bad substitution |
dash | 13 automatically creating arrays are INDEXED, not associative stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 2: undef[2]=x: not found _tmp/spec-bin/dash: 3: undef[3]=y: not found _tmp/spec-bin/dash: 5: undef[bad]=zzz: not found _tmp/spec-bin/dash: 6: Bad substitution |