strict-options () { run-file strict-options "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
37 passed, 5 OK, 18 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 strict_arith option stdout: stderr: dash: 1: shopt: not found |
bash-4 | 0 strict_arith option stdout: stderr: bash-4.4: line 1: shopt: strict_arith: invalid shell option name |
mksh | 0 strict_arith option stdout: stderr: mksh: <stdin>[1]: shopt: not found |
bash-4 | 2 top level control flow stdout: SUBSHELL BREAK CONTINUE RETURN DONEstderr: /home/uke/oil/test/../spec/testdata/top-level-control-flow.sh: line 14: return: can only `return' from a function or sourced script /home/uke/oil/test/../spec/testdata/top-level-control-flow.sh: line 17: break: only meaningful in a `for', `while', or `until' loop /home/uke/oil/test/../spec/testdata/top-level-control-flow.sh: line 19: continue: only meaningful in a `for', `while', or `until' loop /home/uke/oil/test/../spec/testdata/top-level-control-flow.sh: line 24: return: can only `return' from a function or sourced script |
bash-4 | 3 errexit and top-level control flow stdout: SUBSHELLstderr: /home/uke/oil/test/../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: dash: 1: shopt: not found |
bash-4 | 4 shopt -s strict_control_flow stdout: break histderr: bash-4.4: line 1: shopt: strict_control_flow: invalid shell option name bash-4.4: line 3: break: only meaningful in a `for', `while', or `until' loop |
mksh | 4 shopt -s strict_control_flow stdout: break histderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: break: can't break |
bash-4 | 5 return at top level is an error stdout: status=1stderr: bash-4.4: line 1: return: can only `return' from a function or sourced script |
dash | 9 empty argv WITH strict_argv stdout: empty status=0stderr: dash: 1: shopt: not found |
bash-4 | 9 empty argv WITH strict_argv stdout: empty status=0stderr: bash-4.4: line 1: shopt: strict_argv: invalid shell option name |
mksh | 9 empty argv WITH strict_argv stdout: empty status=0stderr: mksh: <stdin>[1]: shopt: not found |
dash | 10 Arrays are incorrectly compared, but strict_array prevents it stdout: stderr: dash: 1: Syntax error: "(" unexpected |
bash-4 | 10 Arrays are incorrectly compared, but strict_array prevents it stdout: 2 4 EQUAL EQUALstderr: bash-4.4: line 7: shopt: strict_array: invalid shell option name |
mksh | 10 Arrays are incorrectly compared, but strict_array prevents it stdout: 2 4 EQUAL EQUALstderr: mksh: <stdin>[7]: shopt: not found |
dash | 11 automatically creating arrays WITHOUT strict_array stdout: stderr: dash: 1: undef[2]=x: not found dash: 2: undef[3]=y: not found dash: 3: Bad substitution |
dash | 12 automatically creating arrays are INDEXED, not associative stdout: stderr: dash: 1: shopt: not found dash: 3: undef[2]=x: not found dash: 4: undef[3]=y: not found dash: 7: undef[bad]=zzz: not found dash: 8: Bad substitution |
dash | 13 simple_eval_builtin stdout: status=0 one status=0 two status=0 --- status=0 one status=0 two status=0 ---stderr: dash: 8: shopt: not found dash: 8: shopt: not found |
bash-4 | 13 simple_eval_builtin stdout: status=0 one status=0 two status=0 --- status=0 one status=0 two status=0 ---stderr: bash-4.4: line 8: shopt: simple_eval_builtin: invalid shell option name bash-4.4: line 8: shopt: simple_eval_builtin: invalid shell option name |
mksh | 13 simple_eval_builtin stdout: status=0 one status=0 two status=0 --- status=0 one status=0 two status=0 ---stderr: mksh: <stdin>[10]: shopt: not found mksh: <stdin>[10]: shopt: not found |
dash | 14 strict_parse_slice means you need explicit length stdout: stderr: |
bash-4 | 14 strict_parse_slice means you need explicit length stdout: stderr: |
mksh | 14 strict_parse_slice means you need explicit length stdout: stderr: |