spec test index / oilshell.org
106 passed, 10 OK, 64 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 command sub: errexit is NOT inherited and outer shell keeps going stdout: one parent status=0stderr: |
mksh | 0 command sub: errexit is NOT inherited and outer shell keeps going stdout: one parent status=0stderr: |
ash | 1 command sub with inherit_errexit only stdout: zero one two parent status=0stderr: ash: shopt: not found |
dash | 2 strict_errexit and assignment builtins (local, export, readonly ...) stdout: x=hi ---stderr: dash: 2: shopt: not found |
bash | 2 strict_errexit and assignment builtins (local, export, readonly ...) stdout: x=hi ---stderr: bash: line 2: shopt: strict_errexit: invalid shell option name |
mksh | 2 strict_errexit and assignment builtins (local, export, readonly ...) stdout: x=hi ---stderr: mksh: <stdin>[2]: shopt: not found |
ash | 2 strict_errexit and assignment builtins (local, export, readonly ...) stdout: x=hi ---stderr: ash: shopt: not found |
dash | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
bash | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
mksh | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
ash | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
dash | 4 strict_errexit allows pipeline because you can set -o pipefail stdout: stderr: |
ash | 4 strict_errexit allows pipeline because you can set -o pipefail stdout: stderr: |
dash | 5 strict_errexit does NOT affect inside of function stdout: before x= ok before x= okstderr: dash: 1: shopt: not found dash: 14: shopt: not found |
bash | 5 strict_errexit does NOT affect inside of function stdout: before x= ok before x= okstderr: bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 14: shopt: command_sub_errexit: invalid shell option name |
mksh | 5 strict_errexit does NOT affect inside of function stdout: before x= ok before x= okstderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[14]: shopt: not found |
ash | 5 strict_errexit does NOT affect inside of function stdout: before x= ok before x= okstderr: ash: shopt: not found ash: shopt: not found |
dash | 6 strict_errexit does NOT affect inside of proc stdout: stderr: dash: 1: shopt: not found dash: 3: Syntax error: "(" unexpected |
bash | 6 strict_errexit does NOT affect inside of proc stdout: stderr: bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 3: syntax error near unexpected token `(' bash: line 3: `proc p() {' |
mksh | 6 strict_errexit does NOT affect inside of proc stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: syntax error: '(' unexpected |
ash | 6 strict_errexit does NOT affect inside of proc stdout: stderr: ash: shopt: not found ash: syntax error: unexpected "(" |
dash | 7 command sub with command_sub_errexit only stdout: zero one parent status=0stderr: dash: 2: shopt: not found |
mksh | 7 command sub with command_sub_errexit only stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found |
dash | 8 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: dash: 3: shopt: not found dash: 4: shopt: not found |
bash | 8 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: bash: line 4: shopt: command_sub_errexit: invalid shell option name |
mksh | 8 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: mksh: <stdin>[3]: shopt: not found mksh: <stdin>[4]: shopt: not found |
ash | 8 command sub with inherit_errexit and command_sub_errexit stdout: zero one two parent status=0stderr: ash: shopt: not found ash: shopt: not found |
dash | 10 global assignment with command sub: middle command fails stdout: stderr: |
mksh | 10 global assignment with command sub: middle command fails stdout: stderr: |
dash | 12 local: middle command fails and keeps going stdout: good status=0 onestderr: |
mksh | 12 local: middle command fails and keeps going stdout: good status=0 onestderr: |
dash | 14 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 14 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: bash: line 3: shopt: command_sub_errexit: invalid shell option name |
mksh | 14 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 14 local and inherit_errexit / command_sub_errexit stdout: good status=0 one twostderr: ash: shopt: not found ash: shopt: not found |
dash | 16 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: dash: 6: shopt: not found |
bash | 16 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: bash: line 6: shopt: strict_errexit: invalid shell option name |
mksh | 16 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: mksh: <stdin>[6]: shopt: not found |
ash | 16 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: ash: shopt: not found |
dash | 17 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: dash: 4: shopt: not found |
bash | 17 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: bash: line 4: shopt: strict_errexit: invalid shell option name |
mksh | 17 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: mksh: <stdin>[4]: shopt: not found |
ash | 17 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: ash: shopt: not found |
dash | 18 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: dash: 2: shopt: not found dash: 6: shopt: not found |
bash | 18 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: bash: line 6: shopt: strict_errexit: invalid shell option name |
mksh | 18 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[6]: shopt: not found |
ash | 18 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: ash: shopt: not found ash: shopt: not found |
dash | 19 strict_errexit and ! && || if while until stdout: fun should not get here bang=0 -- fun or=0 -- fun and=0 -- fun if=0 -- fun while while=0 -- fun until=0 --stderr: dash: 2: shopt: not found dash: 2: shopt: not found dash: 2: shopt: not found dash: 2: shopt: not found dash: 2: shopt: not found dash: 2: shopt: not found |
bash | 19 strict_errexit and ! && || if while until stdout: fun should not get here bang=0 -- fun or=0 -- fun and=0 -- fun if=0 -- fun while while=0 -- fun until=0 --stderr: bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 1: shopt: strict_errexit: invalid shell option name bash: line 1: shopt: strict_errexit: invalid shell option name |
mksh | 19 strict_errexit and ! && || if while until stdout: fun should not get here bang=0 -- fun or=0 -- fun and=0 -- fun if=0 -- fun while while=0 -- fun until=0 --stderr: mksh: shopt: not found mksh: shopt: not found mksh: shopt: not found mksh: shopt: not found mksh: shopt: not found mksh: shopt: not found |
ash | 19 strict_errexit and ! && || if while until stdout: fun should not get here bang=0 -- fun or=0 -- fun and=0 -- fun if=0 -- fun while while=0 -- fun until=0 --stderr: ash: shopt: not found ash: shopt: not found ash: shopt: not found ash: shopt: not found ash: shopt: not found ash: shopt: not found |
dash | 20 if pipeline doesn't fail fatally stdout: stderr: dash: 2: set: Illegal option -o pipefail |
dash | 22 command sub errexit preserves exit code stdout: before afterstderr: dash: 2: shopt: not found |
bash | 22 command sub errexit preserves exit code stdout: before afterstderr: bash: line 2: shopt: command_sub_errexit: invalid shell option name |
mksh | 22 command sub errexit preserves exit code stdout: before afterstderr: mksh: <stdin>[2]: shopt: not found |
ash | 22 command sub errexit preserves exit code stdout: before afterstderr: ash: shopt: not found |
dash | 24 What's in strict:all? stdout: one two should not get herestderr: dash: 2: shopt: not found date: invalid date ‘%x’ |
bash | 24 What's in strict:all? stdout: one two should not get herestderr: bash: line 2: shopt: strict:all: invalid shell option name date: invalid date ‘%x’ |
mksh | 24 What's in strict:all? stdout: one two should not get herestderr: mksh: <stdin>[2]: shopt: not found date: invalid date ‘%x’ |
ash | 24 What's in strict:all? stdout: one two should not get herestderr: ash: shopt: not found date: invalid date ‘%x’ |
dash | 25 command_sub_errexit causes local d=$(date %x) to fail stdout: histderr: dash: 2: shopt: not found dash: 3: shopt: not found date: invalid date ‘%x’ |
bash | 25 command_sub_errexit causes local d=$(date %x) to fail stdout: histderr: bash: line 3: shopt: command_sub_errexit: invalid shell option name date: invalid date ‘%x’ |
mksh | 25 command_sub_errexit causes local d=$(date %x) to fail stdout: histderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found date: invalid date ‘%x’ |
ash | 25 command_sub_errexit causes local d=$(date %x) to fail stdout: histderr: ash: shopt: not found ash: shopt: not found date: invalid date ‘%x’ |
dash | 26 command_sub_errexit and command sub in array stdout: stderr: |
bash | 26 command_sub_errexit and command sub in array stdout: ['one', '', 'two']stderr: bash: line 5: shopt: command_sub_errexit: invalid shell option name date: invalid date ‘%x’ |
mksh | 26 command_sub_errexit and command sub in array stdout: stderr: |
ash | 26 command_sub_errexit and command sub in array stdout: stderr: |
dash | 27 OLD: command sub in conditional, with inherit_errexit stdout: 1 A donestderr: dash: 2: shopt: not found |
mksh | 27 OLD: command sub in conditional, with inherit_errexit stdout: 1 A donestderr: mksh: <stdin>[2]: shopt: not found |
dash | 29 Regression stdout: stderr: |
bash | 29 Regression stdout: stderr: |
mksh | 29 Regression stdout: stderr: |
ash | 29 Regression stdout: stderr: |