Results for command-sub.test.sh

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

Details on runs that didn't PASS

dash7 Making keyword out of command sub should NOT work

stdout:
status=0
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: for: not found
mksh7 Making keyword out of command sub should NOT work

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

stdout:
"foo"
foo
"foo"
stderr:
osh_ALT25 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:
osh_ALT26 More levels of double quotes in backticks

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

stdout:
status=0

status=0
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: command substitution: line 0: unexpected EOF while looking for matching `"'
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: command substitution: line 1: syntax error: unexpected end of file
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: command substitution: line 0: unexpected EOF while looking for matching `"'
/home/andy/git/oilshell/oil/_tmp/spec-bin/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:
/bin/mksh: no closing quote
/bin/mksh: no closing quote