process-sub () { run-file process-sub "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } process-sub: spec test case results

Results for process-sub.test.sh

statusbash-4zshosh
pass 659
ok 010
N-I 330
total999
casebash-4zshoshdescription
0pass pass pass Process sub input
1pass pass pass Process sub from external process to stdin
2pass pass pass Process sub from shell to stdin
3pass pass pass Non-linear pipeline with >()
4pass ok pass $(<file) idiom with process sub
details
5N-I N-I pass status code is available
detailsdetails
6N-I N-I pass shopt -s process_sub_fail
detailsdetails
7N-I N-I pass process subs and pipelines together
detailsdetails
8pass pass pass process sub in background &
20 passed, 1 OK, 6 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

zsh4 $(<file) idiom with process sub

stdout:
FOO
foo
FOO
hi
stderr:
bash-45 status code is available

stdout:
1
2
1
2
3
stderr:
bash-4.4: line 1: shopt: --: invalid option
shopt: usage: shopt [-pqsu] [-o] [optname ...]
zsh5 status code is available

stdout:
1
2
1
2
3
stderr:
zsh: command not found: shopt
bash-46 shopt -s process_sub_fail

stdout:
stderr: 
zsh6 shopt -s process_sub_fail

stdout:
stderr: 
bash-47 process subs and pipelines together

stdout:
stderr: 
zsh7 process subs and pipelines together

stdout:
stderr: