Results for command-sub.test.sh

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 FAIL FAIL Nested backticks
detailsdetails
6pass pass pass pass pass Making command out of command sub should work
7BUG pass ok FAIL FAIL Making keyword out of command sub should NOT work
detailsdetailsdetailsdetails
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

59 passed, 1 ok, 0 known unimplemented, 1 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

osh5 Nested backticks

[osh stdout] Expected '000000-first\n', got 's` /home/andy/git/oilshell/oil/_tmp/spec-tmp\n'

stdout:
s` /home/andy/git/oilshell/oil/_tmp/spec-tmp
stderr:
Unexpected error in execvpe('`echo', ['`echo', '-n', 'l'], ...): [Errno 2] No such file or directory
osh_ALT5 Nested backticks

[osh_ALT stdout] Expected '000000-first\n', got 's` /home/andy/git/oilshell/oil/_tmp/spec-tmp\n'

stdout:
s` /home/andy/git/oilshell/oil/_tmp/spec-tmp
stderr:
Unexpected error in execvpe('`echo', ['`echo', '-n', 'l'], ...): [Errno 2] No such file or directory
dash7 Making keyword out of command sub should NOT work

stdout:
status=0
stderr:
/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
osh7 Making keyword out of command sub should NOT work

[osh status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b', 'c'], ...): [Errno 2] No such file or directory
osh_ALT7 Making keyword out of command sub should NOT work

[osh_ALT status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b', 'c'], ...): [Errno 2] No such file or directory