108 passed, 5 OK, 40 not implemented, 0 BUG, 91 failed, 1 timeouts, 0 cases skipped
mksh | 0 command sub: errexit is NOT inherited and outer shell keeps going stdout: one parent status=0stderr: |
ksh | 0 command sub: errexit is NOT inherited and outer shell keeps going [ksh stdout] Expected 'one two\nparent status=0\n', got 'one\nparent status=0\n' stdout: one parent status=0stderr: |
toysh | 1 command sub with inherit_errexit only [toysh stdout] Expected 'zero\none\nparent status=0\n', got 'zero\none two\nparent status=0\n' stdout: zero one two parent status=0stderr: set: bad -o errexit sh: shopt: No such file or directory |
sush | 1 command sub with inherit_errexit only [sush stdout] Expected 'zero\none\nparent status=0\n', got 'zero\none two\nparent status=0\n' stdout: zero one two parent status=0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: inherit_errexit: not supported yet |
brush | 1 command sub with inherit_errexit only [brush stdout] Expected 'zero\none\nparent status=0\n', got 'zero\none two\nparent status=0\n' stdout: zero one two parent status=0stderr: |
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 |
ksh | 2 strict_errexit and assignment builtins (local, export, readonly ...) [ksh stdout] Expected '', got 'x=hi\n---\n' [ksh status] Expected 1, got 0 stdout: x=hi ---stderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
toysh | 2 strict_errexit and assignment builtins (local, export, readonly ...) [toysh stdout] Expected '', got 'x=hi\n---\n' [toysh status] Expected 1, got 0 stdout: x=hi ---stderr: set: bad -o errexit sh: shopt: No such file or directory |
sush | 2 strict_errexit and assignment builtins (local, export, readonly ...) [sush stdout] Expected '', got 'x=hi\n---\n' [sush status] Expected 1, got 0 stdout: x=hi ---stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet |
brush | 2 strict_errexit and assignment builtins (local, export, readonly ...) [brush stdout] Expected '', got 'x=hi\n---\n' [brush status] Expected 1, got 0 stdout: x=hi ---stderr: shopt: strict_errexit: invalid shell option name |
bash | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
mksh | 3 strict_errexit and command sub in export / readonly stdout: stderr: |
ksh | 3 strict_errexit and command sub in export / readonly [ksh stdout] Expected 'a\nstatus=1\na\nstatus=1\na\nb\nstatus=0\n', got 'status=1\nstatus=1\nstatus=1\n' stdout: status=1 status=1 status=1stderr: E: ksh: -O: unknown option E: ksh: -O: unknown option E: ksh: -O: unknown option |
toysh | 3 strict_errexit and command sub in export / readonly [toysh stdout] Expected 'a\nstatus=1\na\nstatus=1\na\nb\nstatus=0\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 3 strict_errexit and command sub in export / readonly [sush stdout] Expected 'a\nstatus=1\na\nstatus=1\na\nb\nstatus=0\n', got 'status=2\nstatus=2\nstatus=2\n' stdout: status=2 status=2 status=2stderr: : line : errexit: invalid option name : line : errexit: invalid option name : line : errexit: invalid option name |
brush | 3 strict_errexit and command sub in export / readonly [brush stdout] Expected 'a\nstatus=1\na\nstatus=1\na\nb\nstatus=0\n', got 'status=1\nstatus=1\nstatus=1\n' stdout: status=1 status=1 status=1stderr: [31mERROR[0m error: failed to source file: -o; i/o error: No such file or directory (os error 2) [31mERROR[0m error: failed to source file: -o; i/o error: No such file or directory (os error 2) [31mERROR[0m error: failed to source file: -o; i/o error: No such file or directory (os error 2) |
bash | 4 strict_errexit disallows pipeline stdout: 1 onestderr: bash: line 2: shopt: strict_errexit: invalid shell option name |
mksh | 4 strict_errexit disallows pipeline stdout: 1 onestderr: mksh: <stdin>[2]: shopt: not found |
ksh | 4 strict_errexit disallows pipeline [ksh status] Expected 1, got 0 stdout: 1 onestderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
toysh | 4 strict_errexit disallows pipeline [toysh status] Expected 1, got 0 stdout: 1 onestderr: set: bad -o errexit sh: shopt: No such file or directory |
sush | 4 strict_errexit disallows pipeline [sush status] Expected 1, got 0 stdout: 1 onestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet |
brush | 4 strict_errexit disallows pipeline [brush status] Expected 1, got 0 stdout: 1 onestderr: shopt: strict_errexit: invalid shell option name |
bash | 7 strict_errexit detects proc in && || ! stdout: failing should not get here failing should not get herestderr: bash: line 2: shopt: strict_errexit: invalid shell option name |
mksh | 7 strict_errexit detects proc in && || ! stdout: failing should not get here failing should not get herestderr: mksh: <stdin>[2]: shopt: not found |
ksh | 7 strict_errexit detects proc in && || ! [ksh stdout] Expected '', got 'failing\nshould not get here\nfailing\nshould not get here\n' [ksh status] Expected 1, got 0 stdout: failing should not get here failing should not get herestderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
toysh | 7 strict_errexit detects proc in && || ! [toysh stdout] Expected '', got 'B\nA\n' [toysh status] Expected 1, got 0 stdout: B Astderr: set: bad -o errexit sh: shopt: No such file or directory sh: myfunc: No such file or directory sh: myfunc: No such file or directory |
sush | 7 strict_errexit detects proc in && || ! [sush stdout] Expected '', got 'failing\nshould not get here\nfailing\nshould not get here\n' [sush status] Expected 1, got 0 stdout: failing should not get here failing should not get herestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet |
brush | 7 strict_errexit detects proc in && || ! [brush stdout] Expected '', got 'failing\nshould not get here\nfailing\nshould not get here\n' [brush status] Expected 1, got 0 stdout: failing should not get here failing should not get herestderr: shopt: strict_errexit: invalid shell option name |
bash | 8 strict_errexit without errexit proc stdout: myproc myprocstderr: bash: line 6: shopt: strict_errexit: invalid shell option name |
mksh | 8 strict_errexit without errexit proc stdout: myproc myprocstderr: mksh: <stdin>[6]: shopt: not found |
ksh | 8 strict_errexit without errexit proc [ksh stdout] Expected 'myproc\n', got 'myproc\nmyproc\n' [ksh status] Expected 1, got 0 stdout: myproc myprocstderr: E: ksh: <stdin>[6]: shopt: inaccessible or not found |
toysh | 8 strict_errexit without errexit proc [toysh stdout] Expected 'myproc\n', got 'myproc\nmyproc\n' [toysh status] Expected 1, got 0 stdout: myproc myprocstderr: sh: shopt: No such file or directory |
sush | 8 strict_errexit without errexit proc [sush stdout] Expected 'myproc\n', got 'myproc\nmyproc\n' [sush status] Expected 1, got 0 stdout: myproc myprocstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: shopt: strict_errexit: not supported yet |
brush | 8 strict_errexit without errexit proc [brush stdout] Expected 'myproc\n', got 'myproc\nmyproc\n' [brush status] Expected 1, got 0 stdout: myproc myprocstderr: shopt: strict_errexit: invalid shell option name |
bash | 9 strict_errexit without errexit proc / command sub stdout: before x= okstderr: bash: line 1: shopt: strict_errexit: invalid shell option name |
mksh | 9 strict_errexit without errexit proc / command sub stdout: before x= okstderr: mksh: <stdin>[1]: shopt: not found |
ksh | 9 strict_errexit without errexit proc / command sub [ksh stdout] Expected '', got 'before\nx=\nok\n' [ksh status] Expected 1, got 0 stdout: before x= okstderr: E: ksh: <stdin>[1]: shopt: inaccessible or not found |
toysh | 9 strict_errexit without errexit proc / command sub [toysh stdout] Expected '', got 'before\nx=\nok\n' [toysh status] Expected 1, got 0 stdout: before x= okstderr: sh: shopt: No such file or directory |
sush | 9 strict_errexit without errexit proc / command sub [sush stdout] Expected '', got 'before\nx=\nok\n' [sush status] Expected 1, got 0 stdout: before x= okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: shopt: strict_errexit: not supported yet |
brush | 9 strict_errexit without errexit proc / command sub [brush stdout] Expected '', got 'before\nx=\nok\n' [brush status] Expected 1, got 0 stdout: before x= okstderr: shopt: strict_errexit: invalid shell option name |
bash | 10 strict_errexit and errexit disabled stdout: stderr: |
mksh | 10 strict_errexit and errexit disabled stdout: stderr: |
ksh | 10 strict_errexit and errexit disabled [ksh stdout] Expected 'before\nx=\n', got '' [ksh status] Expected 0, got 127 stdout: stderr: E: ksh: <stdin>[3]: shopt: inaccessible or not found E: ksh: <stdin>[13]: shopt: inaccessible or not found |
toysh | 10 strict_errexit and errexit disabled [toysh stdout] Expected 'before\nx=\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 10 strict_errexit and errexit disabled [sush status] Expected 0, got 2 stdout: before x=stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: shopt: parse_brace: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: set: errexit: invalid option name sush: shopt: --: invalid shell option name shopt: usage: shopt [-su] [optname ...] /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: Unexpected token: } |
brush | 10 strict_errexit and errexit disabled [brush status] Expected 0, got 2 stdout: before x=stderr: shopt: parse_brace: invalid shell option name shopt: strict_errexit: invalid shell option name error: unexpected argument '--unset' found tip: to pass '--unset' as a value, use '-- --unset' Usage: shopt [OPTIONS] [OPTIONS]... For more information, try '--help'. [31mERROR[0m main: syntax error near token ` ' (line 1 col 2) |
mksh | 11 command sub with command_sub_errexit only stdout: zero one parent status=0stderr: mksh: <stdin>[2]: shopt: not found |
ksh | 11 command sub with command_sub_errexit only [ksh stdout] Expected 'zero\none two\nparent status=0\n', got 'zero\none\nparent status=0\n' stdout: zero one parent status=0stderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
bash | 12 command_sub_errexit stops at first error stdout: stderr: |
mksh | 12 command_sub_errexit stops at first error stdout: stderr: |
ksh | 12 command_sub_errexit stops at first error [ksh stdout] Expected 'OK\n', got '' [ksh status] Expected 0, got 127 stdout: stderr: E: ksh: <stdin>[4]: shopt: inaccessible or not found E: ksh: <stdin>[8]: try: inaccessible or not found |
toysh | 12 command_sub_errexit stops at first error [toysh stdout] Expected 'OK\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 12 command_sub_errexit stops at first error [sush stdout] Expected 'OK\n', got '\n' stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: set: errexit: invalid option name sush: shopt: --: invalid shell option name shopt: usage: shopt [-su] [optname ...] /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: try: command not found date: invalid date ā%dā /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 11: Unexpected token: } |
brush | 12 command_sub_errexit stops at first error [brush stdout] Expected 'OK\n', got '\n' stdout: stderr: error: unexpected argument '--set' found tip: to pass '--set' as a value, use '-- --set' Usage: shopt [OPTIONS] [OPTIONS]... For more information, try '--help'. try: command not found date: invalid date ā%dā [31mERROR[0m main: syntax error near token ` ' (line 1 col 2) |
bash | 13 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 | 13 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 |
ksh | 13 command sub with inherit_errexit and command_sub_errexit [ksh stdout] Expected 'zero\n', got 'zero\none\nparent status=0\n' [ksh status] Expected 1, got 0 stdout: zero one parent status=0stderr: E: ksh: <stdin>[3]: shopt: inaccessible or not found E: ksh: <stdin>[4]: shopt: inaccessible or not found |
toysh | 13 command sub with inherit_errexit and command_sub_errexit [toysh stdout] Expected 'zero\n', got 'zero\none two\nparent status=0\n' [toysh status] Expected 1, got 0 stdout: zero one two parent status=0stderr: set: bad -o errexit sh: shopt: No such file or directory sh: shopt: No such file or directory |
sush | 13 command sub with inherit_errexit and command_sub_errexit [sush stdout] Expected 'zero\n', got 'zero\none two\nparent status=0\n' [sush status] Expected 1, got 0 stdout: zero one two parent status=0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: shopt: inherit_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: shopt: command_sub_errexit: not supported yet |
brush | 13 command sub with inherit_errexit and command_sub_errexit [brush stdout] Expected 'zero\n', got 'zero\none two\nparent status=0\n' [brush status] Expected 1, got 0 stdout: zero one two parent status=0stderr: shopt: command_sub_errexit: invalid shell option name |
mksh | 15 global assignment with command sub: middle command fails stdout: stderr: |
ksh | 15 global assignment with command sub: middle command fails [ksh stdout] Expected 'one\ntwo\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: |
toysh | 16 global assignment with command sub: last command fails and it aborts [toysh stdout] Expected u'', got 'status=0\n' [toysh status] Expected 1, got 0 stdout: status=0stderr: set: bad -o errexit |
sush | 16 global assignment with command sub: last command fails and it aborts [sush stdout] Expected u'', got 'status=1\n' [sush status] Expected 1, got 0 stdout: status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name |
brush | 16 global assignment with command sub: last command fails and it aborts [brush stdout] Expected u'', got 'status=1\n' [brush status] Expected 1, got 0 stdout: status=1stderr: |
mksh | 17 local: middle command fails and keeps going stdout: good status=0 onestderr: |
ksh | 17 local: middle command fails and keeps going [ksh stdout] Expected 'good\nstatus=0\none two\n', got 'good\nstatus=0\none\n' stdout: good status=0 onestderr: |
toysh | 17 local: middle command fails and keeps going [toysh stdout] Expected 'good\nstatus=0\none two\n', got 'good\nstatus=0\none\n' stdout: good status=0 onestderr: set: bad -o errexit |
bash | 19 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: bash: line 3: shopt: command_sub_errexit: invalid shell option name |
mksh | 19 local and inherit_errexit / command_sub_errexit stdout: good status=0 onestderr: mksh: <stdin>[2]: shopt: not found mksh: <stdin>[3]: shopt: not found |
ksh | 19 local and inherit_errexit / command_sub_errexit [ksh stdout] Expected 'good\n', got 'good\nstatus=0\none\n' [ksh status] Expected 1, got 0 stdout: good status=0 onestderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found E: ksh: <stdin>[3]: shopt: inaccessible or not found |
toysh | 19 local and inherit_errexit / command_sub_errexit [toysh stdout] Expected 'good\n', got 'good\nstatus=0\none\n' [toysh status] Expected 1, got 0 stdout: good status=0 onestderr: set: bad -o errexit sh: shopt: No such file or directory sh: shopt: No such file or directory |
sush | 19 local and inherit_errexit / command_sub_errexit [sush stdout] Expected 'good\n', got 'good\nstatus=0\none two\n' [sush status] Expected 1, got 0 stdout: good status=0 one twostderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: inherit_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: shopt: command_sub_errexit: not supported yet |
brush | 19 local and inherit_errexit / command_sub_errexit [brush stdout] Expected 'good\n', got 'good\nstatus=0\none two\n' [brush status] Expected 1, got 0 stdout: good status=0 one twostderr: shopt: command_sub_errexit: invalid shell option name |
sush | 20 global assignment when last status is failure [sush stdout] Expected 'status=0\n', got 'status=1\n' stdout: status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name |
bash | 21 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 | 21 strict_errexit prevents errexit from being disabled in function stdout: fun builtin ok external ok funstderr: mksh: <stdin>[6]: shopt: not found |
ksh | 21 strict_errexit prevents errexit from being disabled in function [ksh stdout] Expected 'fun\nbuiltin ok\nexternal ok\n', got 'fun\nbuiltin ok\nexternal ok\nfun\n' [ksh status] Expected 1, got 0 stdout: fun builtin ok external ok funstderr: E: ksh: <stdin>[6]: shopt: inaccessible or not found |
toysh | 21 strict_errexit prevents errexit from being disabled in function [toysh stdout] Expected 'fun\nbuiltin ok\nexternal ok\n', got 'fun\nbuiltin ok\nexternal ok\nfun\n' [toysh status] Expected 1, got 0 stdout: fun builtin ok external ok funstderr: set: bad -o errexit sh: shopt: No such file or directory |
sush | 21 strict_errexit prevents errexit from being disabled in function [sush stdout] Expected 'fun\nbuiltin ok\nexternal ok\n', got 'fun\nbuiltin ok\nexternal ok\nfun\n' [sush status] Expected 1, got 0 stdout: fun builtin ok external ok funstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: shopt: strict_errexit: not supported yet |
brush | 21 strict_errexit prevents errexit from being disabled in function [brush stdout] Expected 'fun\nbuiltin ok\nexternal ok\n', got 'fun\nbuiltin ok\nexternal ok\nfun\n' [brush status] Expected 1, got 0 stdout: fun builtin ok external ok funstderr: shopt: strict_errexit: invalid shell option name |
bash | 22 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 | 22 strict_errexit prevents errexit from being disabled in brace group stdout: foo bar foo barstderr: mksh: <stdin>[4]: shopt: not found |
ksh | 22 strict_errexit prevents errexit from being disabled in brace group [ksh stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [ksh status] Expected 1, got 0 stdout: foo bar foo barstderr: E: ksh: <stdin>[4]: shopt: inaccessible or not found |
toysh | 22 strict_errexit prevents errexit from being disabled in brace group [toysh stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [toysh status] Expected 1, got 0 stdout: foo bar foo barstderr: set: bad -o errexit sh: shopt: No such file or directory |
sush | 22 strict_errexit prevents errexit from being disabled in brace group [sush stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [sush status] Expected 1, got 0 stdout: foo bar foo barstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: shopt: strict_errexit: not supported yet |
brush | 22 strict_errexit prevents errexit from being disabled in brace group [brush stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [brush status] Expected 1, got 0 stdout: foo bar foo barstderr: shopt: strict_errexit: invalid shell option name |
bash | 23 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 | 23 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 |
ksh | 23 strict_errexit prevents errexit from being disabled in subshell [ksh stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [ksh status] Expected 1, got 0 stdout: foo bar foo barstderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found E: ksh: <stdin>[6]: shopt: inaccessible or not found |
toysh | 23 strict_errexit prevents errexit from being disabled in subshell [toysh stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [toysh status] Expected 1, got 0 stdout: foo bar foo barstderr: set: bad -o errexit sh: shopt: No such file or directory sh: shopt: No such file or directory |
sush | 23 strict_errexit prevents errexit from being disabled in subshell [sush stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [sush status] Expected 1, got 0 stdout: foo bar foo barstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: inherit_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: shopt: strict_errexit: not supported yet |
brush | 23 strict_errexit prevents errexit from being disabled in subshell [brush stdout] Expected 'foo\nbar\n', got 'foo\nbar\nfoo\nbar\n' [brush status] Expected 1, got 0 stdout: foo bar foo barstderr: shopt: strict_errexit: invalid shell option name |
bash | 24 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 2: shopt: strict_errexit: invalid shell option name bash: line 2: shopt: strict_errexit: invalid shell option name bash: line 2: shopt: strict_errexit: invalid shell option name bash: line 2: shopt: strict_errexit: invalid shell option name bash: line 2: shopt: strict_errexit: invalid shell option name bash: line 2: shopt: strict_errexit: invalid shell option name |
mksh | 24 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 |
ksh | 24 strict_errexit and ! && || if while until [ksh stdout] Expected 'bang=1\n--\nor=1\n--\nand=1\n--\nif=1\n--\nwhile=1\n--\nuntil=1\n--\n' Got 'fun\nshould not get here\nbang=0\n--\nfun\nor=0\n--\nfun\nand=0\n--\nfun\nif=0\n--\nfun\nwhile\nwhile=0\n--\nfun\nuntil=0\n--\n' 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: E: ksh: shopt: inaccessible or not found E: ksh: shopt: inaccessible or not found E: ksh: shopt: inaccessible or not found E: ksh: shopt: inaccessible or not found E: ksh: shopt: inaccessible or not found E: ksh: shopt: inaccessible or not found |
toysh | 24 strict_errexit and ! && || if while until [toysh stdout] Expected 'bang=1\n--\nor=1\n--\nand=1\n--\nif=1\n--\nwhile=1\n--\nuntil=1\n--\n' Got 'should not get here\nbang=0\n\nfun\nor=0\n\nfun\nand=0\n\nfun\nif=0\n\nfun\nwhile\nwhile=0\n\nfun\nuntil=0\n\n' stdout: should not get here bang=0 fun or=0 fun and=0 fun if=0 fun while while=0 fun until=0stderr: set: bad -o errexit sh: shopt: No such file or directory sh: fun: No such file or directory set: bad -o errexit sh: shopt: No such file or directory set: bad -o errexit sh: shopt: No such file or directory set: bad -o errexit sh: shopt: No such file or directory set: bad -o errexit sh: shopt: No such file or directory set: bad -o errexit sh: shopt: No such file or directory |
sush | 24 strict_errexit and ! && || if while until [sush stdout] Expected 'bang=1\n--\nor=1\n--\nand=1\n--\nif=1\n--\nwhile=1\n--\nuntil=1\n--\n' Got 'fun\nshould not get here\nbang=0\n--\nfun\nor=0\n--\nfun\nand=0\n--\nfun\nif=0\n--\nfun\nwhile\nwhile=0\n--\nuntil=2\n--\n' stdout: fun should not get here bang=0 -- fun or=0 -- fun and=0 -- fun if=0 -- fun while while=0 -- until=2 --stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: Unexpected token: do |
brush | 24 strict_errexit and ! && || if while until [brush stdout] Expected 'bang=1\n--\nor=1\n--\nand=1\n--\nif=1\n--\nwhile=1\n--\nuntil=1\n--\n' Got 'fun\nshould not get here\nbang=0\n--\nfun\nor=0\n--\nfun\nand=0\n--\nfun\nif=0\n--\nfun\nwhile\nwhile=0\n--\nfun\nuntil=0\n--\n' 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: shopt: strict_errexit: invalid shell option name shopt: strict_errexit: invalid shell option name shopt: strict_errexit: invalid shell option name shopt: strict_errexit: invalid shell option name shopt: strict_errexit: invalid shell option name shopt: strict_errexit: invalid shell option name |
toysh | 26 errexit is silent (verbose_errexit for Oil) [toysh stderr] Expected u'', got 'set: bad -e\n' stdout: stderr: set: bad -e |
bash | 27 command sub errexit preserves exit code stdout: before afterstderr: bash: line 2: shopt: command_sub_errexit: invalid shell option name |
mksh | 27 command sub errexit preserves exit code stdout: before afterstderr: mksh: <stdin>[2]: shopt: not found |
ksh | 27 command sub errexit preserves exit code [ksh stdout] Expected 'before\n', got 'before\n\nafter\n' [ksh status] Expected 42, got 0 stdout: before afterstderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
toysh | 27 command sub errexit preserves exit code [toysh stdout] Expected 'before\n', got 'before\n\nafter\n' [toysh status] Expected 42, got 0 stdout: before afterstderr: set: bad -e sh: shopt: No such file or directory |
brush | 27 command sub errexit preserves exit code [brush stdout] Expected 'before\n', got 'before\n\nafter\n' [brush status] Expected 42, got 0 stdout: before afterstderr: shopt: command_sub_errexit: invalid shell option name |
bash | 28 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 | 28 What's in strict:all? stdout: one two should not get herestderr: mksh: <stdin>[2]: shopt: not found date: invalid date ā%xā |
ksh | 28 What's in strict:all? [ksh stdout] Expected '', got 'one\ntwo\nshould not get here\n' [ksh status] Expected 1, got 0 stdout: one two should not get herestderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found date: invalid date ā%xā |
toysh | 28 What's in strict:all? [toysh stdout] Expected '', got 'failed\nshould not get here\n' [toysh status] Expected 1, got 0 stdout: failed should not get herestderr: set: bad -o errexit sh: shopt: No such file or directory date: invalid date ā%xā sh: deploy_func: No such file or directory |
sush | 28 What's in strict:all? [sush stdout] Expected '', got 'one\ntwo\nshould not get here\n' [sush status] Expected 1, got 0 stdout: one two should not get herestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: strict:all: not supported yet date: invalid date ā%xā |
brush | 28 What's in strict:all? [brush stdout] Expected '', got 'one\ntwo\nshould not get here\n' [brush status] Expected 1, got 0 stdout: one two should not get herestderr: shopt: strict:all: invalid shell option name date: invalid date ā%xā |
bash | 29 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 | 29 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ā |
ksh | 29 command_sub_errexit causes local d=$(date %x) to fail [ksh stdout] Expected '', got 'hi\n' [ksh status] Expected 1, got 0 stdout: histderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found E: ksh: <stdin>[3]: shopt: inaccessible or not found date: invalid date ā%xā |
toysh | 29 command_sub_errexit causes local d=$(date %x) to fail [toysh stdout] Expected '', got 'hi\n' [toysh status] Expected 1, got 0 stdout: histderr: set: bad -o errexit sh: shopt: No such file or directory sh: shopt: No such file or directory date: invalid date ā%xā |
sush | 29 command_sub_errexit causes local d=$(date %x) to fail [sush stdout] Expected '', got 'hi\n' [sush status] Expected 1, got 0 stdout: histderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: shopt: inherit_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: shopt: command_sub_errexit: not supported yet date: invalid date ā%xā |
brush | 29 command_sub_errexit causes local d=$(date %x) to fail [brush stdout] Expected '', got 'hi\n' [brush status] Expected 1, got 0 stdout: histderr: shopt: command_sub_errexit: invalid shell option name date: invalid date ā%xā |
bash | 30 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 | 30 command_sub_errexit and command sub in array stdout: stderr: |
toysh | 30 command_sub_errexit and command sub in array [toysh status] Expected 1, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 30 command_sub_errexit and command sub in array [sush stdout] Expected '', got "['one', '', 'two']\n" [sush status] Expected 1, got 0 stdout: ['one', '', 'two']stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: shopt: inherit_errexit: not supported yet /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: shopt: command_sub_errexit: not supported yet date: invalid date ā%xā |
brush | 30 command_sub_errexit and command sub in array [brush stdout] Expected '', got "['one', '', 'two']\n" [brush status] Expected 1, got 0 stdout: ['one', '', 'two']stderr: shopt: command_sub_errexit: invalid shell option name date: invalid date ā%xā |
mksh | 31 OLD: command sub in conditional, with inherit_errexit stdout: 1 A donestderr: mksh: <stdin>[2]: shopt: not found |
ksh | 31 OLD: command sub in conditional, with inherit_errexit [ksh stdout] Expected '1 2\nA\ndone\n', got '1\nA\ndone\n' stdout: 1 A donestderr: E: ksh: <stdin>[2]: shopt: inaccessible or not found |
bash | 33 Regression stdout: stderr: |
mksh | 33 Regression stdout: stderr: |
ksh | 33 Regression [ksh stdout] Expected 'hi\np\n', got 'hi\n' [ksh status] Expected 0, got 1 stdout: histderr: E: ksh: <stdin>[3]: shopt: inaccessible or not found E: ksh: <stdin>[5]: shopt: inaccessible or not found E: ksh: <stdin>[7]: syntax error: unexpected '}' |
toysh | 33 Regression [toysh stdout] Expected 'hi\np\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 33 Regression [sush status] Expected 0, got 2 stdout: hi pstderr: sush: shopt: --: invalid shell option name shopt: usage: shopt [-su] [optname ...] sush: shopt: --: invalid shell option name shopt: usage: shopt [-su] [optname ...] /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: Unexpected token: } /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: proc: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: Unexpected token: } sush: shopt: --: invalid shell option name shopt: usage: shopt [-su] [optname ...] /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: p: command not found /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: Unexpected token: } |
brush | 33 Regression [brush status] Expected 0, got 2 stdout: hi pstderr: error: unexpected argument '--set' found tip: to pass '--set' as a value, use '-- --set' Usage: shopt [OPTIONS] [OPTIONS]... For more information, try '--help'. error: unexpected argument '--unset' found tip: to pass '--unset' as a value, use '-- --unset' Usage: shopt [OPTIONS] [OPTIONS]... For more information, try '--help'. [31mERROR[0m main: syntax error near token ` ' (line 1 col 2) proc: command not found [31mERROR[0m main: syntax error near token ` ' (line 1 col 2) error: unexpected argument '--unset' found tip: to pass '--unset' as a value, use '-- --unset' Usage: shopt [OPTIONS] [OPTIONS]... For more information, try '--help'. p: command not found [31mERROR[0m main: syntax error near token ` ' (line 1 col 2) |
bash | 34 ShAssignment used as conditional stdout: yes yes yesstderr: bash: line 33: shopt: strict_errexit: invalid shell option name |
mksh | 34 ShAssignment used as conditional stdout: yes yes yesstderr: mksh: <stdin>[33]: shopt: not found |
ksh | 34 ShAssignment used as conditional [ksh stdout] Expected 'yes\nyes\n', got 'yes\nyes\nyes\n' [ksh status] Expected 1, got 0 stdout: yes yes yesstderr: E: ksh: <stdin>[33]: shopt: inaccessible or not found |
sush | 34 ShAssignment used as conditional [sush stdout] Expected 'yes\nyes\n', got 'yes\nyes\nyes\n' [sush status] Expected 1, got 0 stdout: yes yes yesstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: set: errexit: invalid option name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 33: shopt: strict_errexit: not supported yet |
brush | 34 ShAssignment used as conditional [brush stdout] Expected 'yes\nyes\n', got 'yes\nyes\nyes\n' [brush status] Expected 1, got 0 stdout: yes yes yesstderr: shopt: strict_errexit: invalid shell option name |