spec test index / oilshell.org
status | dash | bash | mksh | osh | |
pass | 7 | 6 | 9 | 13 | |
ok | 0 | 4 | 1 | 0 | |
N-I | 6 | 3 | 3 | 0 | |
total | 13 | 13 | 13 | 13 | |
case | dash | bash | mksh | osh | description |
0 | N-I | N-I | N-I | pass | strict-arith option |
details | details | details | |||
1 | pass | pass | pass | pass | Sourcing a script that returns at the top level |
2 | pass | ok | pass | pass | top level control flow |
details | |||||
3 | pass | ok | pass | pass | errexit and top-level control flow |
details | |||||
4 | N-I | N-I | N-I | pass | shopt -s strict-control-flow |
details | details | details | |||
5 | pass | ok | pass | pass | return at top level is an error |
details | |||||
6 | pass | pass | pass | pass | continue at top level is NOT an error |
7 | pass | pass | pass | pass | break at top level is NOT an error |
8 | pass | pass | pass | pass | empty argv WITHOUT strict-argv |
9 | N-I | N-I | N-I | pass | empty argv WITH strict-argv |
details | details | details | |||
10 | N-I | ok | ok | pass | Arrays are incorrectly compared, but strict-array prevents it |
details | details | details | |||
11 | N-I | pass | pass | pass | automatically creating arrays WITHOUT strict-array |
details | |||||
12 | N-I | pass | pass | pass | automatically creating arrays are INDEXED, not associative |
details |
35 passed, 5 OK, 12 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 strict-arith option stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
bash | 0 strict-arith option stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 0 strict-arith option stdout: stderr: /home/andy/git/oilshell/oil/_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: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
bash | 4 shopt -s strict-control-flow stdout: break histderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-control-flow: invalid shell option name /home/andy/git/oilshell/oil/_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: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: break: can't break |
bash | 5 return at top level is an error stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: return: can only `return' from a function or sourced script |
dash | 9 empty argv WITH strict-argv stdout: empty status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
bash | 9 empty argv WITH strict-argv stdout: empty status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-argv: invalid shell option name |
mksh | 9 empty argv WITH strict-argv stdout: empty status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
dash | 10 Arrays are incorrectly compared, but strict-array prevents it stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
bash | 10 Arrays are incorrectly compared, but strict-array prevents it stdout: 2 4 EQUAL EQUALstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 6: shopt: strict-array: invalid shell option name |
mksh | 10 Arrays are incorrectly compared, but strict-array prevents it stdout: 2 4 EQUAL EQUALstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: shopt: not found |
dash | 11 automatically creating arrays WITHOUT strict-array stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: undef[2]=x: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: undef[3]=y: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: Bad substitution |
dash | 12 automatically creating arrays are INDEXED, not associative stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: undef[2]=x: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: undef[3]=y: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 5: undef[bad]=zzz: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 6: Bad substitution |