run-file () { local spec_name=$1; shift; local spec_file=spec/$spec_name.test.sh; local suite; suite=$(test/sh_spec.py --print-spec-suite $spec_file); local spec_subdir; case $suite in osh) spec_subdir='osh-cpp' ;; ysh) spec_subdir='ysh-cpp' ;; *) die "Invalid suite $suite" ;; esac; local base_dir=_tmp/spec/$spec_subdir; mkdir -v -p $base_dir; sh-spec $spec_file --timeout 10 --oils-bin-dir $PWD/bin --oils-cpp-bin-dir $REPO_ROOT/_bin/cxx-asan --tsv-output $base_dir/${spec_name}.tsv "$@" } command-sub: spec test case results

Results for command-sub.test.sh

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

Details on runs that didn't PASS

osh27 More levels of double quotes in backticks

stdout:
BUG
stderr:
osh-cpp27 More levels of double quotes in backticks

stdout:
BUG
stderr: