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 "$@" }
spec test index / oilshell.org
| status | bash-4 | zsh | osh | |
| pass | 6 | 5 | 9 | |
| ok | 0 | 1 | 0 | |
| N-I | 3 | 3 | 0 | |
| total | 9 | 9 | 9 | |
| case | bash-4 | zsh | osh | description | 
| 0 | pass | pass | pass | Process sub input | 
| 1 | pass | pass | pass | Process sub from external process to stdin | 
| 2 | pass | pass | pass | Process sub from shell to stdin | 
| 3 | pass | pass | pass | Non-linear pipeline with >() | 
| 4 | pass | ok | pass | $(<file) idiom with process sub | 
| details | ||||
| 5 | N-I | N-I | pass | status code is available | 
| details | details | |||
| 6 | N-I | N-I | pass | shopt -s process_sub_fail | 
| details | details | |||
| 7 | N-I | N-I | pass | process subs and pipelines together | 
| details | details | |||
| 8 | pass | pass | pass | process sub in background & | 
20 passed, 1 OK, 6 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| zsh | 4 $(<file) idiom with process sub stdout: FOO foo FOO histderr:  | 
| bash-4 | 5 status code is available stdout: 1 2 1 2 3stderr: bash-4.4: line 1: shopt: --: invalid option shopt: usage: shopt [-pqsu] [-o] [optname ...]  | 
| zsh | 5 status code is available stdout: 1 2 1 2 3stderr: zsh: command not found: shopt  | 
| bash-4 | 6 shopt -s process_sub_fail stdout: stderr:  | 
| zsh | 6 shopt -s process_sub_fail stdout: stderr:  | 
| bash-4 | 7 process subs and pipelines together stdout: stderr:  | 
| zsh | 7 process subs and pipelines together stdout: stderr:  |