Results for command-sub.test.sh

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 FAIL Backtick 2
details
5pass pass pass FAIL Nested backticks
details
6pass pass pass pass Making command out of command sub should work
7BUG pass ok FAIL Making keyword out of command sub should NOT work
detailsdetailsdetails
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

47 passed, 1 ok, 0 known unimplemented, 1 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

osh4 Backtick 2

[osh stdout] Expected 'ls\n', got '-n l -n s\n'

stdout:
-n l -n s
stderr:
osh5 Nested backticks

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

stdout:
-n s` /home/andy/git/oil/test/../_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:
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