48 passed, 3 OK, 11 not implemented, 1 BUG, 167 failed, 0 timeouts, 0 cases skipped 2 failed under osh
dash | 0 trap -l [dash status] Expected 0, got 1 stdout: stderr: dash: 1: trap: Illegal option -l |
ash | 0 trap -l [ash status] Expected 0, got 1 stdout: stderr: ash: trap: line 1: illegal option -l |
zsh | 0 trap -l [zsh status] Expected 0, got 1 stdout: stderr: |
mksh | 0 trap -l [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: trap: -l: unknown option |
ksh | 0 trap -l [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: trap: -l: unknown option |
toysh | 0 trap -l [toysh status] Expected 0, got 1 stdout: stderr: sh: trap: No such file or directory |
sush | 0 trap -l [sush status] Expected 0, got 1 stdout: stderr: trap: usage: trap arg signal_spec ... |
dash | 1 trap -p [dash stdout] Expected 'shown\nexit\n', got 'exit\n' [dash status] Expected 0, got 2 stdout: exitstderr: dash: 3: trap: Illegal option -p |
ash | 1 trap -p [ash stdout] Expected 'shown\nexit\n', got 'exit\n' [ash status] Expected 0, got 2 stdout: exitstderr: ash: trap: line 3: illegal option -p |
zsh | 1 trap -p [zsh stdout] Expected 'shown\nexit\n', got 'not shown\nexit\n' stdout: not shown exitstderr: |
mksh | 1 trap -p [mksh stdout] Expected 'shown\nexit\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[3]: trap: -p: unknown option |
ksh | 1 trap -p [ksh stdout] Expected 'shown\nexit\n', got '' [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[3]: trap: -p: unknown option |
toysh | 1 trap -p [toysh stdout] Expected 'shown\nexit\n', got 'not shown\n' stdout: not shownstderr: sh: trap: No such file or directory sh: trap: No such file or directory |
sush | 1 trap -p [sush stdout] Expected 'shown\nexit\n', got 'not shown\nexit\n' stdout: not shown exitstderr: trap: usage: trap arg signal_spec ... |
brush | 1 trap -p [brush stdout] Expected 'shown\nexit\n', got 'shown\n' stdout: shownstderr: |
bash | 2 trap -p in child is BUGGY in bash stdout: shown exitstderr: |
toysh | 2 trap -p in child is BUGGY in bash [toysh stdout] Expected 'not shown\nexit\n', got 'not shown\n' stdout: not shownstderr: sh: trap: No such file or directory sh: trap: No such file or directory |
brush | 2 trap -p in child is BUGGY in bash [brush stdout] Expected 'not shown\nexit\n', got 'shown\n' stdout: shownstderr: |
dash | 3 trap DEBUG ignores $? [dash stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: trap: DEBUG: bad trap |
ash | 3 trap DEBUG ignores $? [ash stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: ash: trap: line 6: DEBUG: invalid signal specification |
mksh | 3 trap DEBUG ignores $? [mksh stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: mksh: <stdin>[6]: trap: bad signal 'DEBUG' |
ksh | 3 trap DEBUG ignores $? [ksh stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: W: ksh: <stdin>[6]: trap: bad signal: DEBUG |
toysh | 3 trap DEBUG ignores $? [toysh stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=127\nA\nstatus=0\nB\nstatus=0\n' stdout: status=127 A status=0 B status=0stderr: sh: trap: No such file or directory |
sush | 3 trap DEBUG ignores $? [sush stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: trap: DEBUG: invalid signal specification |
brush | 3 trap DEBUG ignores $? [brush stdout] Expected ' [8]\nstatus=0\n [9]\nA\n [10]\nstatus=0\n [11]\nB\n [12]\nstatus=0\n' Got ' [6]\nstatus=0\n [8]\nA\n [10]\nstatus=0\n [12]\nB\n [14]\nstatus=0\n' stdout: [6] status=0 [8] A [10] status=0 [12] B [14] status=0stderr: |
dash | 4 but trap DEBUG respects errexit [dash stdout] Expected ' [10]\n', got '' [dash status] Expected 42, got 1 stdout: stderr: trap: DEBUG: bad trap |
ash | 4 but trap DEBUG respects errexit [ash stdout] Expected ' [10]\n', got '' [ash status] Expected 42, got 1 stdout: stderr: ash: trap: line 8: DEBUG: invalid signal specification |
zsh | 4 but trap DEBUG respects errexit [zsh stdout] Expected ' [10]\n', got ' [10]\nstatus=0\n [11]\nA\n [12]\nstatus=0\n [13]\nB\n [14]\nstatus=0\n' [zsh status] Expected 42, got 0 stdout: [10] status=0 [11] A [12] status=0 [13] B [14] status=0stderr: |
mksh | 4 but trap DEBUG respects errexit [mksh stdout] Expected ' [10]\n', got '' [mksh status] Expected 42, got 1 stdout: stderr: mksh: <stdin>[8]: trap: bad signal 'DEBUG' |
ksh | 4 but trap DEBUG respects errexit [ksh stdout] Expected ' [10]\n', got '' [ksh status] Expected 42, got 1 stdout: stderr: W: ksh: <stdin>[8]: trap: bad signal: DEBUG |
toysh | 4 but trap DEBUG respects errexit [toysh stdout] Expected ' [10]\n', got 'status=127\nA\nstatus=0\nB\nstatus=0\n' [toysh status] Expected 42, got 0 stdout: status=127 A status=0 B status=0stderr: set: bad -o errexit sh: trap: No such file or directory |
sush | 4 but trap DEBUG respects errexit [sush stdout] Expected ' [10]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [sush status] Expected 42, got 0 stdout: status=1 A status=0 B 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 8: trap: DEBUG: invalid signal specification |
brush | 4 but trap DEBUG respects errexit [brush stdout] Expected ' [10]\n', got ' [8]\nstatus=0\n [10]\nA\n [12]\nstatus=0\n [14]\nB\n [16]\nstatus=0\n' [brush status] Expected 42, got 0 stdout: [8] status=0 [10] A [12] status=0 [14] B [16] status=0stderr: |
dash | 5 trap DEBUG with 'return' [dash stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: trap: DEBUG: bad trap |
ash | 5 trap DEBUG with 'return' [ash stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: ash: trap: line 5: DEBUG: invalid signal specification |
zsh | 5 trap DEBUG with 'return' [zsh stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got ' [7]\n' [zsh status] Expected 0, got 42 stdout: [7]stderr: |
mksh | 5 trap DEBUG with 'return' [mksh stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: mksh: <stdin>[5]: trap: bad signal 'DEBUG' |
ksh | 5 trap DEBUG with 'return' [ksh stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: W: ksh: <stdin>[5]: trap: bad signal: DEBUG |
toysh | 5 trap DEBUG with 'return' [toysh stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=127\nA\nstatus=0\nB\nstatus=0\n' stdout: status=127 A status=0 B status=0stderr: sh: trap: No such file or directory |
sush | 5 trap DEBUG with 'return' [sush stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got 'status=1\nA\nstatus=0\nB\nstatus=0\n' stdout: status=1 A status=0 B status=0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: trap: DEBUG: invalid signal specification |
brush | 5 trap DEBUG with 'return' [brush stdout] Expected ' [7]\nstatus=0\n [8]\nA\n [9]\nstatus=0\n [10]\nB\n [11]\nstatus=0\n' Got ' [6]\nstatus=0\n [8]\nA\n [10]\nstatus=0\n [12]\nB\n [14]\nstatus=0\n' stdout: [6] status=0 [8] A [10] status=0 [12] B [14] status=0stderr: return: can only be used in a function or sourced script return: can only be used in a function or sourced script return: can only be used in a function or sourced script return: can only be used in a function or sourced script return: can only be used in a function or sourced script |
osh | 5 trap DEBUG with 'return' stdout: [7]stderr: |
dash | 6 trap DEBUG with 'exit' [dash stdout] Expected ' [7]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [dash status] Expected 42, got 0 stdout: status=1 A status=0 B status=0stderr: trap: DEBUG: bad trap |
ash | 6 trap DEBUG with 'exit' [ash stdout] Expected ' [7]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [ash status] Expected 42, got 0 stdout: status=1 A status=0 B status=0stderr: ash: trap: line 5: DEBUG: invalid signal specification |
mksh | 6 trap DEBUG with 'exit' [mksh stdout] Expected ' [7]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [mksh status] Expected 42, got 0 stdout: status=1 A status=0 B status=0stderr: mksh: <stdin>[5]: trap: bad signal 'DEBUG' |
ksh | 6 trap DEBUG with 'exit' [ksh stdout] Expected ' [7]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [ksh status] Expected 42, got 0 stdout: status=1 A status=0 B status=0stderr: W: ksh: <stdin>[5]: trap: bad signal: DEBUG |
toysh | 6 trap DEBUG with 'exit' [toysh stdout] Expected ' [7]\n', got 'status=127\nA\nstatus=0\nB\nstatus=0\n' [toysh status] Expected 42, got 0 stdout: status=127 A status=0 B status=0stderr: sh: trap: No such file or directory |
sush | 6 trap DEBUG with 'exit' [sush stdout] Expected ' [7]\n', got 'status=1\nA\nstatus=0\nB\nstatus=0\n' [sush status] Expected 42, got 0 stdout: status=1 A status=0 B status=0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: trap: DEBUG: invalid signal specification |
brush | 6 trap DEBUG with 'exit' [brush stdout] Expected ' [7]\n', got ' [6]\nstatus=0\n [8]\nA\n [10]\nstatus=0\n [12]\nB\n [14]\nstatus=0\n' [brush status] Expected 42, got 0 stdout: [6] status=0 [8] A [10] status=0 [12] B [14] status=0stderr: |
dash | 7 trap DEBUG with non-compound commands [dash stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got '' stdout: stderr: |
ash | 7 trap DEBUG with non-compound commands [ash stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got 'a\nb\nc\nd\ne\nf\n' stdout: a b c d e fstderr: ash: trap: line 6: DEBUG: invalid signal specification ash: h: not found |
zsh | 7 trap DEBUG with non-compound commands [zsh stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' stdout: [8] a [9] b [9] c [11] d e [12] f [14] [15] [17] [19]stderr: |
mksh | 7 trap DEBUG with non-compound commands [mksh stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got '' stdout: stderr: |
ksh | 7 trap DEBUG with non-compound commands [ksh stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got 'a\nb\nc\nd\ne\nf\n' stdout: a b c d e fstderr: W: ksh: <stdin>[6]: trap: bad signal: DEBUG |
toysh | 7 trap DEBUG with non-compound commands [toysh stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 7 trap DEBUG with non-compound commands [sush stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got 'a\nb\nc\nd\ne\nf\n' stdout: a b c d e fstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: trap: DEBUG: invalid signal specification |
brush | 7 trap DEBUG with non-compound commands [brush stdout] Expected ' [8]\na\n [9]\nb\n [9]\nc\n [11]\nd\n [11]\ne\n [12]\nf\n [14]\n [15]\n [17]\n [19]\n' Got ' [7]\na\n [9]\nb\n [10]\nc\n [13]\nd\n [14]\ne\n [16]\nf\n [24]\n' stdout: [7] a [9] b [10] c [13] d [14] e [16] f [24]stderr: |
dash | 8 trap DEBUG and control flow [dash stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: trap: DEBUG: bad trap |
ash | 8 trap DEBUG and control flow [ash stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 8 trap DEBUG and control flow [zsh stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got ' [6]\n [6]\n [7]\nhello\n [8]\n' stdout: [6] [6] [7] hello [8]stderr: |
mksh | 8 trap DEBUG and control flow [mksh stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 8 trap DEBUG and control flow [ksh stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 8 trap DEBUG and control flow [toysh stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: sh: trap: No such file or directory |
sush | 8 trap DEBUG and control flow [sush stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got 'hello\n' stdout: hellostderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 8 trap DEBUG and control flow [brush stdout] Expected ' [6]\n [7]\nhello\n [8]\n', got ' [5]\n [6]\nhello\n [7]\n' stdout: [5] [6] hello [7]stderr: |
dash | 9 trap DEBUG and command sub / subshell [dash stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got '' stdout: stderr: |
ash | 9 trap DEBUG and command sub / subshell [ash stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got 'result = command sub\ntwo\nsubshell\ntwo\ndone\n' stdout: result = command sub two subshell two donestderr: ash: trap: line 6: DEBUG: invalid signal specification |
zsh | 9 trap DEBUG and command sub / subshell [zsh stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got ' [8]\nresult = [8]\ncommand sub\n [8]\ntwo\n [9]\n [9]\nsubshell\n [10]\ntwo\n [12]\ndone\n' stdout: [8] result = [8] command sub [8] two [9] [9] subshell [10] two [12] donestderr: |
mksh | 9 trap DEBUG and command sub / subshell [mksh stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got '' stdout: stderr: |
ksh | 9 trap DEBUG and command sub / subshell [ksh stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got 'result = command sub\ntwo\nsubshell\ntwo\ndone\n' stdout: result = command sub two subshell two donestderr: W: ksh: <stdin>[6]: trap: bad signal: DEBUG |
toysh | 9 trap DEBUG and command sub / subshell [toysh stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 9 trap DEBUG and command sub / subshell [sush stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got 'result = command sub\ntwo\nsubshell\ntwo\ndone\n' stdout: result = command sub two subshell two donestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: trap: DEBUG: invalid signal specification |
brush | 9 trap DEBUG and command sub / subshell [brush stdout] Expected ' [8]\nresult = command sub\ntwo\nsubshell\ntwo\n [12]\ndone\n' Got ' [7]\nresult = [8]\ncommand sub\n [9]\ntwo\n [9]\nsubshell\n [10]\ntwo\n [10]\ndone\n' stdout: [7] result = [8] command sub [9] two [9] subshell [10] two [10] donestderr: |
dash | 10 trap DEBUG not run in forked interpreter for first pipeline part [dash stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: trap: DEBUG: bad trap |
ash | 10 trap DEBUG not run in forked interpreter for first pipeline part [ash stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 10 trap DEBUG not run in forked interpreter for first pipeline part [zsh stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got ' LINENO=6\n LINENO=6\npipe1\n LINENO=7\npipe2\n LINENO=9\nok\n' stdout: LINENO=6 LINENO=6 pipe1 LINENO=7 pipe2 LINENO=9 okstderr: |
mksh | 10 trap DEBUG not run in forked interpreter for first pipeline part [mksh stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 10 trap DEBUG not run in forked interpreter for first pipeline part [ksh stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 10 trap DEBUG not run in forked interpreter for first pipeline part [toysh stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: sh: trap: No such file or directory |
sush | 10 trap DEBUG not run in forked interpreter for first pipeline part [sush stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got 'pipe1\npipe2\nok\n' stdout: pipe1 pipe2 okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 10 trap DEBUG not run in forked interpreter for first pipeline part [brush stdout] Expected ' LINENO=8\npipe1\npipe2\n LINENO=9\nok\n', got ' LINENO=5\npipe1\n LINENO=6\npipe2\n LINENO=9\nok\n' stdout: LINENO=5 pipe1 LINENO=6 pipe2 LINENO=9 okstderr: [31mERROR[0m main: syntax error near token `|' (line 1 col 3) |
dash | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [dash stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: trap: DEBUG: bad trap |
ash | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [ash stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [zsh stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got ' LINENO=6\npipeline\n LINENO=8\nok\n' stdout: LINENO=6 pipeline LINENO=8 okstderr: |
mksh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [mksh stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [ksh stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [toysh stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: sh: trap: No such file or directory |
sush | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [sush stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got 'pipeline\nok\n' stdout: pipeline okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? [brush stdout] Expected ' LINENO=6\n LINENO=7\npipeline\n LINENO=8\nok\n' Got ' LINENO=5\npipeline\n LINENO=8\nok\n' stdout: LINENO=5 pipeline LINENO=8 okstderr: [31mERROR[0m main: syntax error near token `|' (line 1 col 3) |
osh | 11 One 'echo' in first pipeline part - why does bash behave differently from case above? stdout: LINENO=7 pipeline LINENO=8 okstderr: |
dash | 12 trap DEBUG and pipeline (lastpipe difference) [dash stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: trap: DEBUG: bad trap |
ash | 12 trap DEBUG and pipeline (lastpipe difference) [ash stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 12 trap DEBUG and pipeline (lastpipe difference) [zsh stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got ' [6]\n [6]\na\n [6]\nb\n [8]\n4\n [10]\n1\n [12]\n1\n' stdout: [6] [6] a [6] b [8] 4 [10] 1 [12] 1stderr: |
mksh | 12 trap DEBUG and pipeline (lastpipe difference) [mksh stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 12 trap DEBUG and pipeline (lastpipe difference) [ksh stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 12 trap DEBUG and pipeline (lastpipe difference) [toysh stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: sh: trap: No such file or directory |
sush | 12 trap DEBUG and pipeline (lastpipe difference) [sush stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got 'a\nb\n2\n1\n1\n' stdout: a b 2 1 1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 12 trap DEBUG and pipeline (lastpipe difference) [brush stdout] Expected ' [6]\na\n [6]\nb\n [8]\n2\n [10]\n [10]\n [10]\n1\n [12]\n [13]\n [14]\n1\n' Got ' [5]\na\n [6]\nb\n [9]\n4\n [11]\n3\n [13]\n3\n' stdout: [5] a [6] b [9] 4 [11] 3 [13] 3stderr: |
osh | 12 trap DEBUG and pipeline (lastpipe difference) stdout: [6] a [6] b [8] 2 [10] 1 [14] 1stderr: |
dash | 13 trap DEBUG function call [dash stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: trap: DEBUG: bad trap |
ash | 13 trap DEBUG function call [ash stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 13 trap DEBUG function call [zsh stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got ' [6]\n [13]\n [1]\n [2]\n [3]\ni=A\n [3]\ni=B\n [15]\nnext\n [17]\n [1]\n [2]\n [3]\ni=X\n [3]\ni=Y\n [19]\nok\n' stdout: [6] [13] [1] [2] [3] i=A [3] i=B [15] next [17] [1] [2] [3] i=X [3] i=Y [19] okstderr: |
mksh | 13 trap DEBUG function call [mksh stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 13 trap DEBUG function call [ksh stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 13 trap DEBUG function call [toysh stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: sh: trap: No such file or directory |
sush | 13 trap DEBUG function call [sush stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got 'i=A\ni=B\nnext\ni=X\ni=Y\nok\n' stdout: i=A i=B next i=X i=Y okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 13 trap DEBUG function call [brush stdout] Expected ' [13]\ni=A\ni=B\n [15]\nnext\n [17]\ni=X\ni=Y\n [19]\nok\n' Got ' [7]\n [8]\n [9]\ni=A\n [10]\ni=B\n [13]\nnext\n [16]\n [17]\n [18]\ni=X\n [19]\ni=Y\n [22]\nok\n' stdout: [7] [8] [9] i=A [10] i=B [13] next [16] [17] [18] i=X [19] i=Y [22] okstderr: |
dash | 14 trap DEBUG case [dash stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\nok\n' stdout: python okstderr: trap: DEBUG: bad trap |
ash | 14 trap DEBUG case [ash stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\nok\n' stdout: python okstderr: ash: trap: line 4: DEBUG: invalid signal specification |
mksh | 14 trap DEBUG case [mksh stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\nok\n' stdout: python okstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 14 trap DEBUG case [ksh stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\nok\n' stdout: python okstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 14 trap DEBUG case [toysh stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\n' [toysh status] Expected 0, got -6 stdout: pythonstderr: sh: trap: No such file or directory free(): invalid pointer |
sush | 14 trap DEBUG case [sush stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got 'python\nok\n' stdout: python okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 14 trap DEBUG case [brush stdout] Expected ' [6]\n [8]\n [10]\npython\n [16]\nok\n', got ' [7]\npython\n [9]\nok\n' stdout: [7] python [9] okstderr: |
dash | 15 trap DEBUG for each [dash stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: trap: DEBUG: bad trap |
ash | 15 trap DEBUG for each [ash stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 15 trap DEBUG for each [zsh stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got ' [6]\n [7]\nx=1\n [7]\nx=2\n [10]\nok\n' stdout: [6] [7] x=1 [7] x=2 [10] okstderr: |
mksh | 15 trap DEBUG for each [mksh stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 15 trap DEBUG for each [ksh stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 15 trap DEBUG for each [toysh stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: sh: trap: No such file or directory |
sush | 15 trap DEBUG for each [sush stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got 'x=1\nx=2\nok\n' stdout: x=1 x=2 okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 15 trap DEBUG for each [brush stdout] Expected ' [6]\n [7]\nx=1\n [6]\n [7]\nx=2\n [10]\nok\n' Got ' [5]\nx=1\n [6]\nx=2\n [9]\nok\n' stdout: [5] x=1 [6] x=2 [9] okstderr: |
osh | 15 trap DEBUG for each stdout: [7] x=1 [7] x=2 [10] okstderr: |
dash | 16 trap DEBUG for expr [dash stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got '' [dash status] Expected 0, got 2 stdout: stderr: trap: DEBUG: bad trap dash: 6: Syntax error: Bad for loop variable |
ash | 16 trap DEBUG for expr [ash stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got '' [ash status] Expected 0, got 2 stdout: stderr: ash: trap: line 4: DEBUG: invalid signal specification ash: syntax error: bad for loop variable |
zsh | 16 trap DEBUG for expr [zsh stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got ' [6]\n [7]\ni=3\n [7]\ni=4\n [10]\nok\n' stdout: [6] [7] i=3 [7] i=4 [10] okstderr: |
mksh | 16 trap DEBUG for expr [mksh stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' mksh: <stdin>[6]: syntax error: '((' unexpected |
ksh | 16 trap DEBUG for expr [ksh stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got '' [ksh status] Expected 0, got 1 stdout: stderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG E: ksh: <stdin>[6]: syntax error: unexpected '((' |
toysh | 16 trap DEBUG for expr [toysh stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got '' [toysh status] Expected 0, got 2 stdout: stderr: sh: trap: No such file or directory main: line 6: sh: syntax error: ; |
sush | 16 trap DEBUG for expr [sush stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got 'i=3\ni=4\nok\n' stdout: i=3 i=4 okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 16 trap DEBUG for expr [brush stdout] Expected ' [6]\n [6]\n [7]\ni=3\n [6]\n [6]\n [7]\ni=4\n [6]\n [6]\n [10]\nok\n' Got ' [5]\ni=3\n [6]\ni=4\n [9]\nok\n' stdout: [5] i=3 [6] i=4 [9] okstderr: |
osh | 16 trap DEBUG for expr stdout: [7] i=3 [7] i=4 [10] okstderr: |
dash | 17 trap DEBUG if while [dash stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: trap: DEBUG: bad trap |
ash | 17 trap DEBUG if while [ash stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: ash: trap: line 4: DEBUG: invalid signal specification |
zsh | 17 trap DEBUG if while [zsh stdout] Expected ' [6]\n [7]\nif\n [10]\n', got ' [6]\n [6]\n [7]\nif\n [10]\n [10]\n' stdout: [6] [6] [7] if [10] [10]stderr: |
mksh | 17 trap DEBUG if while [mksh stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: mksh: <stdin>[4]: trap: bad signal 'DEBUG' |
ksh | 17 trap DEBUG if while [ksh stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 17 trap DEBUG if while [toysh stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: sh: trap: No such file or directory |
sush | 17 trap DEBUG if while [sush stdout] Expected ' [6]\n [7]\nif\n [10]\n', got 'if\n' stdout: ifstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 17 trap DEBUG if while [brush stdout] Expected ' [6]\n [7]\nif\n [10]\n', got ' [5]\n [6]\nif\n [9]\n' stdout: [5] [6] if [9]stderr: |
dash | 18 trap RETURN [dash stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: trap: RETURN: bad trap |
ash | 18 trap RETURN [ash stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: ash: trap: line 16: RETURN: invalid signal specification |
zsh | 18 trap RETURN [zsh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: trap: undefined signal: RETURN |
mksh | 18 trap RETURN [mksh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: mksh: <stdin>[16]: trap: bad signal 'RETURN' |
ksh | 18 trap RETURN [ksh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: W: ksh: <stdin>[16]: trap: bad signal: RETURN |
toysh | 18 trap RETURN [toysh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '\nf\n\n\ng\n\nreturn-helper.sh\nshould not see\n' [toysh status] Expected 42, got 0 stdout: f g return-helper.sh should not seestderr: sh: trap: No such file or directory |
sush | 18 trap RETURN [sush stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 16: trap: RETURN: invalid signal specification |
brush | 18 trap RETURN [brush stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: |
osh | 18 trap RETURN [osh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n' stdout: -- f -- -- g -- return-helper.shstderr: osh warning: The 'RETURN' hook isn't implemented |
dash | 19 Compare trap DEBUG vs. trap ERR [dash stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'ok\n' stdout: okstderr: trap: DEBUG: bad trap trap: DEBUG: bad trap trap: ERR: bad trap |
ash | 19 Compare trap DEBUG vs. trap ERR [ash stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'err 12\nerr 16\nok\n' stdout: err 12 err 16 okstderr: ash: trap: line 1: DEBUG: invalid signal specification ash: trap: line 9: DEBUG: invalid signal specification |
zsh | 19 Compare trap DEBUG vs. trap ERR [zsh stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'dbg 3\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nerr 18\nok\n' stdout: dbg 3 dbg 5 dbg 7 dbg 9 err 14 err 16 err 18 okstderr: |
mksh | 19 Compare trap DEBUG vs. trap ERR [mksh stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'err 12\nerr 16\nok\n' stdout: err 12 err 16 okstderr: mksh: <stdin>[1]: trap: bad signal 'DEBUG' mksh: <stdin>[9]: trap: bad signal 'DEBUG' |
ksh | 19 Compare trap DEBUG vs. trap ERR [ksh stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'err 12\nerr 16\nok\n' stdout: err 12 err 16 okstderr: W: ksh: <stdin>[1]: trap: bad signal: DEBUG W: ksh: <stdin>[9]: trap: bad signal: DEBUG |
toysh | 19 Compare trap DEBUG vs. trap ERR [toysh stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'ok\n' stdout: okstderr: sh: trap: No such file or directory sh: trap: No such file or directory sh: trap: No such file or directory |
sush | 19 Compare trap DEBUG vs. trap ERR [sush stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'ok\n' stdout: okstderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: trap: DEBUG: invalid signal specification /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: trap: DEBUG: invalid signal specification /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: trap: ERR: invalid signal specification |
brush | 19 Compare trap DEBUG vs. trap ERR [brush stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'dbg 4\ndbg 6\ndbg 7\ndbg 8\ndbg 11\ndbg 14\nok\n' stdout: dbg 4 dbg 6 dbg 7 dbg 8 dbg 11 dbg 14 okstderr: |
osh | 19 Compare trap DEBUG vs. trap ERR [osh stdout] Expected 'dbg 3\ndbg 3\ndbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' Got 'dbg 3\ndbg 5\ndbg 5\ndbg 5\ndbg 7\ndbg 9\nerr 14\nerr 16\nok\n' stdout: dbg 3 dbg 5 dbg 5 dbg 5 dbg 7 dbg 9 err 14 err 16 okstderr: |
dash | 20 Combine DEBUG trap and USR1 trap stdout: stderr: |
ash | 20 Combine DEBUG trap and USR1 trap stdout: stderr: |
zsh | 20 Combine DEBUG trap and USR1 trap [zsh stdout] Expected '6 dbg\n1 dbg\n1 dbg\n1 usr1\n7 dbg\nafter=0\n', got '6 dbg\n6 usr1\n7 dbg\nafter=0\n' stdout: 6 dbg 6 usr1 7 dbg after=0stderr: |
mksh | 20 Combine DEBUG trap and USR1 trap stdout: stderr: |
ksh | 20 Combine DEBUG trap and USR1 trap [ksh stdout] Expected '6 dbg\n1 dbg\n1 dbg\n1 usr1\n7 dbg\nafter=0\n', got '6 usr1\nafter=0\n' stdout: 6 usr1 after=0stderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 20 Combine DEBUG trap and USR1 trap [toysh stdout] Expected '6 dbg\n1 dbg\n1 dbg\n1 usr1\n7 dbg\nafter=0\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 20 Combine DEBUG trap and USR1 trap [sush stdout] Expected '6 dbg\n1 dbg\n1 dbg\n1 usr1\n7 dbg\nafter=0\n', got 'after=0\n1 usr1\n' stdout: after=0 1 usr1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 20 Combine DEBUG trap and USR1 trap [brush stdout] Expected '6 dbg\n1 dbg\n1 dbg\n1 usr1\n7 dbg\nafter=0\n', got '7 dbg\n' [brush status] Expected 0, got -10 stdout: 7 dbgstderr: |
dash | 21 Combine ERR trap and USR1 trap stdout: stderr: |
ash | 21 Combine ERR trap and USR1 trap stdout: stderr: |
zsh | 21 Combine ERR trap and USR1 trap [zsh stdout] Expected '1 err\n1 usr1\nafter=0\n', got '6 usr1\nafter=0\n' stdout: 6 usr1 after=0stderr: |
mksh | 21 Combine ERR trap and USR1 trap stdout: stderr: |
ksh | 21 Combine ERR trap and USR1 trap [ksh stdout] Expected '1 err\n1 usr1\nafter=0\n', got '6 err\n6 usr1\nafter=0\n' stdout: 6 err 6 usr1 after=0stderr: |
toysh | 21 Combine ERR trap and USR1 trap [toysh stdout] Expected '1 err\n1 usr1\nafter=0\n', got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 21 Combine ERR trap and USR1 trap [sush stdout] Expected '1 err\n1 usr1\nafter=0\n', got 'after=0\n1 usr1\n' stdout: after=0 1 usr1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: ERR: invalid signal specification |
brush | 21 Combine ERR trap and USR1 trap [brush stdout] Expected '1 err\n1 usr1\nafter=0\n', got '' [brush status] Expected 0, got -10 stdout: stderr: |
dash | 22 Combine DEBUG trap and ERR trap stdout: stderr: |
ash | 22 Combine DEBUG trap and ERR trap stdout: stderr: |
zsh | 22 Combine DEBUG trap and ERR trap [zsh stdout] Expected '6 err\n6 debug\n6 debug\n6 debug\n6 err\n7 err\n7 debug\nafter=1\n' Got '6 debug\n6 err\n7 debug\nafter=1\n' stdout: 6 debug 6 err 7 debug after=1stderr: |
mksh | 22 Combine DEBUG trap and ERR trap stdout: stderr: |
ksh | 22 Combine DEBUG trap and ERR trap [ksh stdout] Expected '6 err\n6 debug\n6 debug\n6 debug\n6 err\n7 err\n7 debug\nafter=1\n' Got '4 err\n6 err\nafter=1\n' stdout: 4 err 6 err after=1stderr: W: ksh: <stdin>[4]: trap: bad signal: DEBUG |
toysh | 22 Combine DEBUG trap and ERR trap [toysh stdout] Expected '6 err\n6 debug\n6 debug\n6 debug\n6 err\n7 err\n7 debug\nafter=1\n' Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 22 Combine DEBUG trap and ERR trap [sush stdout] Expected '6 err\n6 debug\n6 debug\n6 debug\n6 err\n7 err\n7 debug\nafter=1\n' Got 'after=1\n' stdout: after=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: trap: ERR: invalid signal specification /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: trap: DEBUG: invalid signal specification |
brush | 22 Combine DEBUG trap and ERR trap [brush stdout] Expected '6 err\n6 debug\n6 debug\n6 debug\n6 err\n7 err\n7 debug\nafter=1\n' Got '7 debug\n9 debug\nafter=1\n' stdout: 7 debug 9 debug after=1stderr: |