spec test index / oilshell.org
76 passed, 6 OK, 40 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
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 |
osh | 2 strict_errexit with command sub stops program [osh stdout] Expected u'', got '\nA\ndone\n' [osh status] Expected 1, got 0 stdout: A donestderr: if echo $( echo 1; false; echo 2); then ^~ [ stdin ]:4: fatal: errexit is disabled here, but strict_errexit disallows it with a compound command (command.CommandList) |
osh_ALT | 2 strict_errexit with command sub stops program [osh_ALT stdout] Expected u'', got '\nA\ndone\n' [osh_ALT status] Expected 1, got 0 stdout: A donestderr: if echo $( echo 1; false; echo 2); then ^~ [ stdin ]:4: fatal: errexit is disabled here, but strict_errexit disallows it with a compound command (command.CommandList) |
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 |
osh | 3 {inherit,strict}_errexit: command sub with a single command [osh stdout] Expected u'', got '\nA\ndone\n' [osh status] Expected 1, got 0 stdout: A donestderr: |
osh_ALT | 3 {inherit,strict}_errexit: command sub with a single command [osh_ALT stdout] Expected u'', got '\nA\ndone\n' [osh_ALT status] Expected 1, got 0 stdout: A donestderr: |
dash | 4 command sub with more_errexit only stdout: zero one parent status=0stderr: dash: 2: shopt: not found |
mksh | 4 command sub with more_errexit only stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found |
dash | 5 command sub with inherit_errexit and more_errexit stdout: zero one parent status=0stderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 5 command sub with inherit_errexit and more_errexit stdout: zero one parent status=0stderr: bash: line 3: shopt: more_errexit: invalid shell option name |
mksh | 5 command sub with inherit_errexit and more_errexit stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 5 command sub with inherit_errexit and more_errexit stdout: zero one two parent status=0stderr: ash: shopt: not found ash: shopt: not found |
dash | 7 global assignment with command sub: middle command fails stdout: stderr: |
mksh | 7 global assignment with command sub: middle command fails stdout: stderr: |
dash | 9 local: middle command fails and keeps going stdout: good status=0 onestderr: |
mksh | 9 local: middle command fails and keeps going stdout: good status=0 onestderr: |
dash | 11 local and inherit_errexit / more_errexit stdout: good status=0 onestderr: dash: 2: shopt: not found dash: 3: shopt: not found |
bash | 11 local and inherit_errexit / more_errexit stdout: good status=0 onestderr: bash: line 3: shopt: more_errexit: invalid shell option name |
mksh | 11 local and inherit_errexit / more_errexit stdout: good status=0 onestderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ash | 11 local and inherit_errexit / more_errexit stdout: good status=0 one twostderr: ash: shopt: not found ash: shopt: not found |
dash | 14 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: dash: 4: shopt: not found |
bash | 14 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 | 14 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: mksh: <stdin>[4]: shopt: not found |
ash | 14 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: ash: shopt: not found |
dash | 15 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: dash: 3: shopt: not found |
bash | 15 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 | 15 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: mksh: <stdin>[3]: shopt: not found |
ash | 15 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: ash: shopt: not found |
dash | 16 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 | 16 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 | 16 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 | 16 strict_errexit prevents errexit from being disabled in subshell stdout: foo bar foo barstderr: ash: shopt: not found ash: shopt: not found |
dash | 17 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 | 17 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 | 17 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 | 17 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 | 18 if pipeline doesn't fail fatally stdout: stderr: dash: 2: set: Illegal option -o pipefail |
dash | 19 if pipeline DOES fail fatally with strict_errexit stdout: stderr: dash: 2: set: Illegal option -o pipefail |
bash | 19 if pipeline DOES fail fatally with strict_errexit stdout: ! false ok donestderr: bash: line 3: shopt: strict_errexit: invalid shell option name rmdir: failed to remove '/home/andy/git/oilshell/oil/_tmp/spec-tmp/errexit-oil.test.sh/_tmp': No such file or directory ls: cannot access '/nonexistent': No such file or directory |
mksh | 19 if pipeline DOES fail fatally with strict_errexit stdout: ! false ok donestderr: mksh: <stdin>[3]: shopt: not found rmdir: failed to remove '/home/andy/git/oilshell/oil/_tmp/spec-tmp/errexit-oil.test.sh/_tmp': No such file or directory ls: cannot access '/nonexistent': No such file or directory |
ash | 19 if pipeline DOES fail fatally with strict_errexit stdout: ! false ok donestderr: ash: shopt: not found rmdir: failed to remove '/home/andy/git/oilshell/oil/_tmp/spec-tmp/errexit-oil.test.sh/_tmp': No such file or directory ls: cannot access '/nonexistent': No such file or directory |