errexit () { run-file errexit "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
163 passed, 2 OK, 3 not implemented, 7 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 16 errexit with (( )) stdout: stderr: dash: 3: i++: not found |
ash | 16 errexit with (( )) stdout: stderr: ash: i++: not found |
dash | 27 simple command / assign - redir failure DOES respect errexit stdout: status=2 status=2 status=2stderr: dash: 3: cannot create /: Is a directory dash: 3: cannot create /: Is a directory dash: 3: cannot create /: Is a directory |
dash | 28 simple command that's an alias - redir failure checked stdout: alias status=2 status=0stderr: dash: 2: shopt: not found dash: 6: cannot create /: Is a directory |
ash | 28 simple command that's an alias - redir failure checked stdout: alias status=1 status=0stderr: ash: shopt: not found ash: can't create /: Is a directory |
dash | 29 bash atoms [[ (( - redir failure checked stdout: stderr: |
ash | 29 bash atoms [[ (( - redir failure checked stdout: status=1 status=2stderr: ash: can't create /: Is a directory ash: can't create /: Is a directory |
dash | 30 brace group - redir failure checked stdout: status=2 should not get herestderr: dash: 3: cannot open not_exist.txt: No such file |
ash | 30 brace group - redir failure checked stdout: status=1 should not get herestderr: ash: can't open not_exist.txt: no such file |
dash | 31 while loop - redirect failure checked stdout: status=2 should not get herestderr: dash: 3: cannot open not_exist.txt: No such file |
ash | 31 while loop - redirect failure checked stdout: status=1 should not get herestderr: ash: can't open not_exist.txt: no such file |
bash | 33 set -e in function #2 stdout: stderr: |