bats_pipe command0 | command1
Paired with run, the bats_pipe help function allows testing command pipelines.
For this function, the pipeline separator is \\| and not |.
Usage
-<N> | Return the exit code from the |
Links
Examples
- Executing a command with
runandbats_pipe 1 2 3@test "executing pipeline with commands a and b with run and bats_pipe" { run bats_pipe a \| b }
BashSupport Pro 是一款shell 脚本集成开发环境,支持 bats-core 的 bats_pipe - 立即试用!