spec test index / oilshell.org
98 passed, 6 OK, 58 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 with command sub stops program stdout: 1 A donestderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 2 strict_errexit with command sub stops program stdout: 1 2 A donestderr: bash: line 3: shopt: strict_errexit: invalid shell option name |
mksh | 2 strict_errexit with command sub stops program stdout: 1 A donestderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 2 strict_errexit with command sub stops program stdout: 1 2 A donestderr: ash: shopt: not found ash: shopt: not found |
dash | 3 {inherit,strict}_errexit: command sub with a single command stdout: A donestderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 3 {inherit,strict}_errexit: command sub with a single command stdout: A donestderr: bash: line 3: shopt: strict_errexit: invalid shell option name |
mksh | 3 {inherit,strict}_errexit: command sub with a single command stdout: A donestderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 3 {inherit,strict}_errexit: command sub with a single command stdout: A donestderr: ash: shopt: not found ash: shopt: not found |
dash | 4 strict_errexit with command sub in weird place stdout: 2stderr: dash: 1: shopt: not found |
bash | 4 strict_errexit with command sub in weird place stdout: 2stderr: bash: line 1: shopt: oil:basic: invalid shell option name |
mksh | 4 strict_errexit with command sub in weird place stdout: 2stderr: mksh: <stdin>[1]: shopt: not found |
ash | 4 strict_errexit with command sub in weird place stdout: 2stderr: ash: shopt: not found |
dash | 5 strict_errexit allows pipeline because you can set -o pipefail stdout: stderr: |
ash | 5 strict_errexit allows pipeline because you can set -o pipefail stdout: stderr: |
dash | 6 command sub with command_sub_errexit only stdout: zero one parent status=0stderr: dash: 2: shopt: not found |
mksh | 6 command sub with command_sub_errexit only stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found |
dash | 7 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 7 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: bash: line 3: shopt: command_sub_errexit: invalid shell option name |
mksh | 7 command sub with inherit_errexit and command_sub_errexit stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 7 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 | 9 global assignment with command sub: middle command fails stdout: stderr: |
mksh | 9 global assignment with command sub: middle command fails stdout: stderr: |
dash | 11 local: middle command fails and keeps going stdout: good status=0 onestderr: |
mksh | 11 local: middle command fails and keeps going stdout: good status=0 onestderr: |
dash | 13 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 13 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: bash: line 3: shopt: command_sub_errexit: invalid shell option name |
mksh | 13 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 | 13 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: 4: shopt: not found |
bash | 16 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: bash: line 4: 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>[4]: 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: 3: shopt: not found |
bash | 17 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: bash: line 3: 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>[3]: 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: 4: shopt: not found |
bash | 18 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: bash: line 4: 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>[4]: 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 4: 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: |