Results for command-sub.test.sh

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

Details on runs that didn't PASS

mksh7 Making keyword out of command sub should NOT work

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: 'do' unexpected
osh25 Quoting double quotes within backticks

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

stdout:
BUG
stderr:
bash26 More levels of double quotes in backticks

stdout:
BUG
stderr:
mksh26 More levels of double quotes in backticks

stdout:
BUG
stderr:
osh26 More levels of double quotes in backticks

stdout:
BUG
stderr:
bash27 Syntax errors with double quotes within backticks

stdout:
status=0

status=0
stderr:
bash: command substitution: line 0: unexpected EOF while looking for matching `"'
bash: command substitution: line 1: syntax error: unexpected end of file
bash: command substitution: line 0: unexpected EOF while looking for matching `"'
bash: command substitution: line 1: syntax error: unexpected end of file
mksh27 Syntax errors with double quotes within backticks

stdout:
status=1
status=1
stderr:
mksh: no closing quote
mksh: no closing quote