diff --git a/shell/tests/specs/pipes_do_not_become_shell.yaml b/shell/tests/specs/pipes_do_not_become_shell.yaml new file mode 100644 index 0000000..ba2f2ca --- /dev/null +++ b/shell/tests/specs/pipes_do_not_become_shell.yaml @@ -0,0 +1,9 @@ +name: pipes_do_not_become_shell +description: "pipes do not generate a new shell process" +command: |2 + {shell_binary} 2>/dev/null | grep "^{shell_binary}" | wc -l +stdin: |2 + true | true | true + ps -o cmd +expected_stdout: |2 + 1