Results for command-sub.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 29272713281530
ok 1200000
BUG 0100000
FAIL 003172150
total30303030303030
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass FAIL pass pass pass case
details
1pass pass pass FAIL pass FAIL pass case in subshell
detailsdetails
2pass pass pass pass pass pass pass Command sub word part
3pass pass pass pass pass pass pass Backtick
4pass pass pass pass pass pass pass Backtick 2
5pass pass pass FAIL pass pass pass Nested backticks
details
6pass pass pass pass pass pass pass Making command out of command sub should work
7pass ok FAIL pass FAIL FAIL pass Making keyword out of command sub should NOT work
detailsdetailsdetailsdetails
8pass pass pass pass pass pass pass Command sub with here doc
9pass pass pass pass pass pass pass Here doc with pipeline
10pass pass pass pass pass pass pass Command Sub word split
11pass pass pass pass pass pass pass Command Sub trailing newline removed
12pass pass pass pass pass pass pass Command Sub trailing whitespace not removed
13pass pass pass FAIL pass pass pass Command Sub and exit code
details
14pass pass pass pass pass pass pass Command Sub in local sets exit code
15pass pass pass FAIL FAIL FAIL pass Double Quotes in Command Sub in Double Quotes
detailsdetailsdetails
16pass pass pass FAIL pass FAIL pass Escaped quote in [[ ]]
detailsdetails
17pass pass pass pass pass pass pass Quoting " within ``
18pass pass pass FAIL pass FAIL pass Quoting $ within ``
detailsdetails
19pass pass pass FAIL pass FAIL pass Quoting $ within `` within double quotes
detailsdetails
20pass pass pass FAIL pass FAIL pass Quoting \ within ``
detailsdetails
21pass pass pass FAIL pass FAIL pass Quoting \ within `` within double quotes
detailsdetails
22pass pass pass FAIL pass FAIL pass Quoting ( within ``
detailsdetails
23pass pass pass FAIL pass FAIL pass Quoting ( within `` within double quotes
detailsdetails
24pass pass pass FAIL pass FAIL pass Quoting non-special characters within ``
detailsdetails
25pass pass pass FAIL pass FAIL pass Quoting non-special characters within `` within double quotes
detailsdetails
26pass pass pass FAIL pass FAIL pass Quoting double quotes within backticks
detailsdetails
27pass BUG FAIL FAIL pass FAIL pass More levels of double quotes in backticks
detailsdetailsdetailsdetails
28ok ok FAIL pass pass FAIL pass Syntax errors with double quotes within backticks
detailsdetailsdetailsdetails
29pass pass pass FAIL pass pass pass Empty command sub $() (command::NoOp)
details
169 passed, 3 OK, 0 not implemented, 1 BUG, 37 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

toysh0 case

[toysh stdout] Expected 'letter\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
free(): invalid pointer
toysh1 case in subshell

[toysh stdout] Expected 'letter\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: ;;
brush1 case in subshell

[brush stdout] Expected 'letter\n', got ''
[brush status] Expected 0, got 2

stdout:
stderr: 
ERROR main: syntax error near token `;;' (line 1 col 46)
toysh5 Nested backticks

[toysh stdout] Expected '000000-first\n', got '\n'

stdout:
stderr: 
sh: `echo: No such file or directory
mksh7 Making keyword out of command sub should NOT work

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: 'do' unexpected
ksh7 Making keyword out of command sub should NOT work

[ksh status] Expected 2, got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: syntax error: unexpected 'do'
sush7 Making keyword out of command sub should NOT work

[sush stdout] Expected u'', got 'status=2\n'
[sush status] Expected 2, got 0

stdout:
status=2
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: Unexpected token: do
brush7 Making keyword out of command sub should NOT work

[brush stdout] Expected u'', got 'status=2\n'
[brush status] Expected 2, got 0

stdout:
status=2
stderr:
ERROR main: syntax error near token `echo' (line 1 col 36)
toysh13 Command Sub and exit code

[toysh stdout] Expected 'x\n0\n33\n', got 'x\n0\n0\n'

stdout:
x
0
0
stderr:
toysh15 Double Quotes in Command Sub in Double Quotes

[toysh stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx "hi"\n'

stdout:
x hi
x hi
x "hi"
x hi
x hi
x "hi"
stderr:
sush15 Double Quotes in Command Sub in Double Quotes

[sush stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx "hi"\n'

stdout:
x hi
x hi
x "hi"
x hi
x hi
x "hi"
stderr:
brush15 Double Quotes in Command Sub in Double Quotes

[brush stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx "hi"\n'

stdout:
x hi
x hi
x "hi"
x hi
x hi
x "hi"
stderr:
toysh16 Escaped quote in [[ ]]

[toysh stdout] Expected '123 456\n"\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 2: sh: syntax error: unexpected end of file
brush16 Escaped quote in [[ ]]

[brush stdout] Expected '123 456\n"\n', got '123 456\n'
[brush status] Expected 0, got 1

stdout:
123  456
stderr:
ERROR main: unterminated double quote at line 1 col 13 (detected near line 1 column 26)
cat: /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/command-sub.test.sh.3685805/16-brush/command-sub-dbracket: No such file or directory
toysh18 Quoting $ within ``

[toysh stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 $\n2 $\n3 \\$\n4 \\$\n5 \\\\$\n'

stdout:
1 $
2 $
3 \$
4 \$
5 \\$
stderr:
brush18 Quoting $ within ``

[brush stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 $\n2 $\n3 \\$\n4 \\$\n5 \\\\$\n'

stdout:
1 $
2 $
3 \$
4 \$
5 \\$
stderr:
toysh19 Quoting $ within `` within double quotes

[toysh stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 $\n2 $\n3 \\$\n4 \\$\n5 \\\\$\n'

stdout:
1 $
2 $
3 \$
4 \$
5 \\$
stderr:
brush19 Quoting $ within `` within double quotes

[brush stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 $\n2 $\n3 \\$\n4 \\$\n5 \\\\$\n'

stdout:
1 $
2 $
3 \$
4 \$
5 \\$
stderr:
toysh20 Quoting \ within ``

[toysh stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 \\]\n[3 \\\\]\n'

stdout:
[1  ]
[2 \]
[3 \\]
stderr:
brush20 Quoting \ within ``

[brush stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 \\]\n[3 \\\\]\n'

stdout:
[1 ]
[2 \]
[3 \\]
stderr:
toysh21 Quoting \ within `` within double quotes

[toysh stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 \\]\n[3 \\\\]\n'

stdout:
[1  ]
[2 \]
[3 \\]
stderr:
brush21 Quoting \ within `` within double quotes

[brush stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 \\]\n[3 \\\\]\n'

stdout:
[1  ]
[2 \]
[3 \\]
stderr:
toysh22 Quoting ( within ``

[toysh stdout] Expected '1 (\n2 (\n3 (\n', got '1 (\n2 \\ (\n3 \\ \\ (\n'

stdout:
1 (
2 \ (
3 \ \ (
stderr:
brush22 Quoting ( within ``

[brush stdout] Expected '1 (\n2 (\n3 (\n', got '1 (\n2\n3\n'

stdout:
1 (
2
3
stderr:
ERROR main: syntax error at end of input
ERROR main: syntax error at end of input
toysh23 Quoting ( within `` within double quotes

[toysh stdout] Expected '1 (\n2 (\n3 (\n', got '1 (\n2 \\ (\n3 \\ \\ (\n'

stdout:
1 (
2 \ (
3 \ \ (
stderr:
brush23 Quoting ( within `` within double quotes

[brush stdout] Expected '1 (\n2 (\n3 (\n', got '1 (\n2 \n3 \n'

stdout:
1 (
2 
3 
stderr:
ERROR main: syntax error at end of input
ERROR main: syntax error at end of input
toysh24 Quoting non-special characters within ``

[toysh stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 z]\n[2 \\z]\n[3 \\z]\n[4 \\\\z]\n'

stdout:
[1 z]
[2 \z]
[3 \z]
[4 \\z]
stderr:
brush24 Quoting non-special characters within ``

[brush stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 z]\n[2 \\z]\n[3 \\z]\n[4 \\\\z]\n'

stdout:
[1 z]
[2 \z]
[3 \z]
[4 \\z]
stderr:
toysh25 Quoting non-special characters within `` within double quotes

[toysh stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 z]\n[2 \\z]\n[3 \\z]\n[4 \\\\z]\n'

stdout:
[1 z]
[2 \z]
[3 \z]
[4 \\z]
stderr:
brush25 Quoting non-special characters within `` within double quotes

[brush stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 z]\n[2 \\z]\n[3 \\z]\n[4 \\\\z]\n'

stdout:
[1 z]
[2 \z]
[3 \z]
[4 \\z]
stderr:
toysh26 Quoting double quotes within backticks

[toysh stdout] Expected '"foo"\n"foo"\n"foo"\n', got '"foo"\n"foo"\n\\foo\\\n'

stdout:
"foo"
"foo"
\foo\
stderr:
brush26 Quoting double quotes within backticks

[brush stdout] Expected '"foo"\n"foo"\n"foo"\n', got '"foo"\n"foo"\n\\foo\\\n'

stdout:
"foo"
"foo"
\foo\
stderr:
mksh27 More levels of double quotes in backticks

stdout:
oo\ -
oo\ -
\"foo\" -
stderr:
ksh27 More levels of double quotes in backticks

[ksh stdout] Expected '\\foo\\ -\n\\foo\\ -\n\\"foo\\" -\n', got '\x0coo\\ -\n\x0coo\\ -\n\\"foo\\" -\n'

stdout:
oo\ -
oo\ -
\"foo\" -
stderr:
toysh27 More levels of double quotes in backticks

[toysh stdout] Expected '\\foo\\ -\n\\foo\\ -\n\\"foo\\" -\n', got '\\"foo\\" -\n\\\\foo\\\\ -\n\\\\"foo\\\\" -\n'

stdout:
\"foo\" -
\\foo\\ -
\\"foo\\" -
stderr:
brush27 More levels of double quotes in backticks

[brush stdout] Expected '\\foo\\ -\n\\foo\\ -\n\\"foo\\" -\n', got '\\"foo\\" -\n\\\\foo\\\\ -\n\\\\"foo\\\\" -\n'

stdout:
\"foo\" -
\\foo\\ -
\\"foo\\" -
stderr:
bash28 Syntax errors with double quotes within backticks

stdout:
status=0

status=0
stderr:
bash: command substitution: line 1: unexpected EOF while looking for matching `"'
bash: command substitution: line 1: unexpected EOF while looking for matching `"'
mksh28 Syntax errors with double quotes within backticks

stdout:
status=1
status=1
stderr:
mksh: no closing quote
mksh: no closing quote
ksh28 Syntax errors with double quotes within backticks

[ksh stdout] Expected 'status=2\nstatus=2\n', got 'status=1\nstatus=1\n'

stdout:
status=1
status=1
stderr:
E: ksh: no closing quote
E: ksh: no closing quote
brush28 Syntax errors with double quotes within backticks

[brush stdout] Expected 'status=2\nstatus=2\n', got '\nstatus=0\n\nstatus=0\n'

stdout:
status=0

status=0
stderr:
ERROR main: unterminated double quote at line 1 col 6 (detected near line 1 column 7)
ERROR main: unterminated double quote at line 1 col 10 (detected near line 1 column 11)
toysh29 Empty command sub $() (command::NoOp)

[toysh stdout] Expected '-- ..\n', got '..\n'

stdout:
..
stderr:
sh: shopt: No such file or directory