Results for command-sub.test.sh

statusoshosh_.pyosh_.cc
pass 2622
ok 100
BUG 111
FAIL 02525
total282828
caseoshosh_.pyosh_.ccdescription
0pass pass pass case
1pass FAIL FAIL case in subshell
detailsdetails
2pass FAIL FAIL Command sub word part
detailsdetails
3pass FAIL FAIL Backtick
detailsdetails
4pass FAIL FAIL Backtick 2
detailsdetails
5pass FAIL FAIL Nested backticks
detailsdetails
6pass FAIL FAIL Making command out of command sub should work
detailsdetails
7pass pass pass Making keyword out of command sub should NOT work
8pass FAIL FAIL Command sub with here doc
detailsdetails
9pass FAIL FAIL Here doc with pipeline
detailsdetails
10pass FAIL FAIL Command Sub word split
detailsdetails
11pass FAIL FAIL Command Sub trailing newline removed
detailsdetails
12pass FAIL FAIL Command Sub trailing whitespace not removed
detailsdetails
13pass FAIL FAIL Command Sub and exit code
detailsdetails
14pass FAIL FAIL Command Sub in local sets exit code
detailsdetails
15pass FAIL FAIL Double Quotes in Command Sub in Double Quotes
detailsdetails
16pass FAIL FAIL Escaped quote in [[ ]]
detailsdetails
17pass FAIL FAIL Quoting $ within ``
detailsdetails
18pass FAIL FAIL Quoting $ within `` within double quotes
detailsdetails
19pass FAIL FAIL Quoting \ within ``
detailsdetails
20pass FAIL FAIL Quoting \ within `` within double quotes
detailsdetails
21pass FAIL FAIL Quoting ( within ``
detailsdetails
22pass FAIL FAIL Quoting ( within `` within double quotes
detailsdetails
23pass FAIL FAIL Quoting non-special characters within ``
detailsdetails
24pass FAIL FAIL Quoting non-special characters within `` within double quotes
detailsdetails
25ok FAIL FAIL Quoting double quotes within backticks
detailsdetailsdetails
26BUG BUG BUG More levels of double quotes in backticks
detailsdetailsdetails
27pass FAIL FAIL Syntax errors with double quotes within backticks
detailsdetails
30 passed, 1 OK, 0 not implemented, 3 BUG, 50 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py1 case in subshell

[osh_.py stdout] Expected 'letter\n', got '\n'

stdout:
stderr: 
osh_.cc1 case in subshell

[osh_.cc stdout] Expected 'letter\n', got '\n'

stdout:
stderr: 
osh_.py2 Command sub word part

[osh_.py stdout] Expected 'FOObarFOO\n', got 'bar\n'

stdout:
bar
stderr:
osh_.cc2 Command sub word part

[osh_.cc stdout] Expected 'FOObarFOO\n', got 'bar\n'

stdout:
bar
stderr:
osh_.py3 Backtick

[osh_.py stdout] Expected 'FOObarFOO\n', got 'bar\n'

stdout:
bar
stderr:
osh_.cc3 Backtick

[osh_.cc stdout] Expected 'FOObarFOO\n', got 'bar\n'

stdout:
bar
stderr:
osh_.py4 Backtick 2

[osh_.py stdout] Expected 'ls\n', got '\n'

stdout:
stderr: 
osh_.cc4 Backtick 2

[osh_.cc stdout] Expected 'ls\n', got '\n'

stdout:
stderr: 
osh_.py5 Nested backticks

[osh_.py stdout] Expected '000000-first\n', got 'X\n\n'

stdout:
X

stderr:
osh_.cc5 Nested backticks

[osh_.cc stdout] Expected '000000-first\n', got 'X\n\n'

stdout:
X

stderr:
osh_.py6 Making command out of command sub should work

[osh_.py stdout] Expected 'split builtin\n', got '(cmd_value.Argv argv:[split builtin] arg_spids:[11 13])\n'

stdout:
(cmd_value.Argv argv:[split builtin] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.cc6 Making command out of command sub should work

[osh_.cc stdout] Expected 'split builtin\n', got '(cmd_value.Argv argv:[split builtin] arg_spids:[11 13])\n'

stdout:
(cmd_value.Argv argv:[split builtin] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.py8 Command sub with here doc

[osh_.py stdout] Expected 'two one\n', got '\n'

stdout:
stderr: 
osh_.cc8 Command sub with here doc

[osh_.cc stdout] Expected 'two one\n', got '\n'

stdout:
stderr: 
osh_.py9 Here doc with pipeline

[osh_.py stdout] Expected u'twoXoneX', got ''

stdout:
stderr: 
osh_.cc9 Here doc with pipeline

[osh_.cc stdout] Expected u'twoXoneX', got ''

stdout:
stderr: 
osh_.py10 Command Sub word split

[osh_.py stdout] Expected "['hi', 'there', 'hi there']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[0 10])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[0 10])
stderr:
Unhandled SimpleCommand
osh_.cc10 Command Sub word split

[osh_.cc stdout] Expected "['hi', 'there', 'hi there']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[0 10])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[0 10])
stderr:
Unhandled SimpleCommand
osh_.py11 Command Sub trailing newline removed

[osh_.py stdout] Expected "['ab\\ncd']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.cc11 Command Sub trailing newline removed

[osh_.cc stdout] Expected "['ab\\ncd']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.py12 Command Sub trailing whitespace not removed

[osh_.py stdout] Expected "['ab\\ncd\\n ']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.cc12 Command Sub trailing whitespace not removed

[osh_.cc stdout] Expected "['ab\\ncd\\n ']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])\n"

stdout:
(cmd_value.Argv argv:[argv.py ''] arg_spids:[11 13])
stderr:
Unhandled SimpleCommand
osh_.py13 Command Sub and exit code

[osh_.py stdout] Expected 'x\n0\n33\n', got '\n0\n0\n'

stdout:
0
0
stderr:
osh_.cc13 Command Sub and exit code

[osh_.cc stdout] Expected 'x\n0\n33\n', got '\n0\n0\n'

stdout:
0
0
stderr:
osh_.py14 Command Sub in local sets exit code

[osh_.py stdout] Expected 'x\n0\n0\n', got '\n0\n0\n'

stdout:
0
0
stderr:
osh_.cc14 Command Sub in local sets exit code

[osh_.cc stdout] Expected 'x\n0\n0\n', got '\n0\n0\n'

stdout:
0
0
stderr:
osh_.py15 Double Quotes in Command Sub in Double Quotes

[osh_.py stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got 'x \nx \nx \nx \nx \nx \n'

stdout:
x 
x 
x 
x 
x 
x 
stderr:
osh_.cc15 Double Quotes in Command Sub in Double Quotes

[osh_.cc stdout] Expected 'x hi\nx hi\nx "hi"\nx hi\nx hi\nx hi\n', got 'x \nx \nx \nx \nx \nx \n'

stdout:
x 
x 
x 
x 
x 
x 
stderr:
osh_.py16 Escaped quote in [[ ]]

[osh_.py stdout] Expected '123 456\n"\n', got "123 456\n(cmd_value.Argv argv:[cat '/command-sub-dbracket'] arg_spids:[31 33])\n"

stdout:
123  456
(cmd_value.Argv argv:[cat '/command-sub-dbracket'] arg_spids:[31 33])
stderr:
Unhandled SimpleCommand
osh_.cc16 Escaped quote in [[ ]]

[osh_.cc stdout] Expected '123 456\n"\n', got "123 456\n(cmd_value.Argv argv:[cat '/command-sub-dbracket'] arg_spids:[31 33])\n"

stdout:
123  456
(cmd_value.Argv argv:[cat '/command-sub-dbracket'] arg_spids:[31 33])
stderr:
Unhandled SimpleCommand
osh_.py17 Quoting $ within ``

[osh_.py stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1\n2\n3\n4\n5\n'

stdout:
1
2
3
4
5
stderr:
osh_.cc17 Quoting $ within ``

[osh_.cc stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1\n2\n3\n4\n5\n'

stdout:
1
2
3
4
5
stderr:
osh_.py18 Quoting $ within `` within double quotes

[osh_.py stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 \n2 \n3 \n4 \n5 \n'

stdout:
1 
2 
3 
4 
5 
stderr:
osh_.cc18 Quoting $ within `` within double quotes

[osh_.cc stdout] Expected '1 $\n2 $\n3 $\n4 $\n5 \\$\n', got '1 \n2 \n3 \n4 \n5 \n'

stdout:
1 
2 
3 
4 
5 
stderr:
osh_.py19 Quoting \ within ``

[osh_.py stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 ]\n[3 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
stderr:
osh_.cc19 Quoting \ within ``

[osh_.cc stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 ]\n[3 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
stderr:
osh_.py20 Quoting \ within `` within double quotes

[osh_.py stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 ]\n[3 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
stderr:
osh_.cc20 Quoting \ within `` within double quotes

[osh_.cc stdout] Expected '[1 ]\n[2 ]\n[3 \\]\n', got '[1 ]\n[2 ]\n[3 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
stderr:
osh_.py21 Quoting ( within ``

[osh_.py stdout] Expected '1 (\n2 (\n3 (\n', got '1\n2\n3\n'

stdout:
1
2
3
stderr:
osh_.cc21 Quoting ( within ``

[osh_.cc stdout] Expected '1 (\n2 (\n3 (\n', got '1\n2\n3\n'

stdout:
1
2
3
stderr:
osh_.py22 Quoting ( within `` within double quotes

[osh_.py stdout] Expected '1 (\n2 (\n3 (\n', got '1 \n2 \n3 \n'

stdout:
1 
2 
3 
stderr:
osh_.cc22 Quoting ( within `` within double quotes

[osh_.cc stdout] Expected '1 (\n2 (\n3 (\n', got '1 \n2 \n3 \n'

stdout:
1 
2 
3 
stderr:
osh_.py23 Quoting non-special characters within ``

[osh_.py stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1\n[2\n[3\n[4\n'

stdout:
[1
[2
[3
[4
stderr:
osh_.cc23 Quoting non-special characters within ``

[osh_.cc stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1\n[2\n[3\n[4\n'

stdout:
[1
[2
[3
[4
stderr:
osh_.py24 Quoting non-special characters within `` within double quotes

[osh_.py stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 ]\n[2 ]\n[3 ]\n[4 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
[4 ]
stderr:
osh_.cc24 Quoting non-special characters within `` within double quotes

[osh_.cc stdout] Expected '[1 z]\n[2 z]\n[3 \\z]\n[4 \\z]\n', got '[1 ]\n[2 ]\n[3 ]\n[4 ]\n'

stdout:
[1 ]
[2 ]
[3 ]
[4 ]
stderr:
osh25 Quoting double quotes within backticks

stdout:
"foo"
foo
"foo"
stderr:
osh_.py25 Quoting double quotes within backticks

[osh_.py stdout] Expected '"foo"\nfoo\n"foo"\n', got '"foo"\n\n\n'

stdout:
"foo"


stderr:
osh_.cc25 Quoting double quotes within backticks

[osh_.cc stdout] Expected '"foo"\nfoo\n"foo"\n', got '"foo"\n\n\n'

stdout:
"foo"


stderr:
osh26 More levels of double quotes in backticks

stdout:
BUG
stderr:
osh_.py26 More levels of double quotes in backticks

stdout:
BUG
stderr:
osh_.cc26 More levels of double quotes in backticks

stdout:
BUG
stderr:
osh_.py27 Syntax errors with double quotes within backticks

[osh_.py stdout] Expected 'status=2\nstatus=2\n', got '(cmd_value.Argv argv:[-c \'echo `echo "`\'] arg_spids:[2 4])\nstatus=0\n(cmd_value.Argv argv:[-c \'echo `echo \\\\\\\\\\\\\\\\"`\'] arg_spids:[15 17])\nstatus=0\n'

stdout:
(cmd_value.Argv argv:[-c 'echo `echo "`'] arg_spids:[2 4])
status=0
(cmd_value.Argv argv:[-c 'echo `echo \\\\\\\\"`'] arg_spids:[15 17])
status=0
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc27 Syntax errors with double quotes within backticks

[osh_.cc stdout] Expected 'status=2\nstatus=2\n', got '(cmd_value.Argv argv:[-c \'echo `echo "`\'] arg_spids:[2 4])\nstatus=0\n(cmd_value.Argv argv:[-c \'echo `echo \\\\\\\\\\\\\\\\"`\'] arg_spids:[15 17])\nstatus=0\n'

stdout:
(cmd_value.Argv argv:[-c 'echo `echo "`'] arg_spids:[2 4])
status=0
(cmd_value.Argv argv:[-c 'echo `echo \\\\\\\\"`'] arg_spids:[15 17])
status=0
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand