Skip to content

Commit

Permalink
test: add spec to verify that pipes do not generate new shell
Browse files Browse the repository at this point in the history
  • Loading branch information
PatricioIribarneCatella committed May 20, 2024
1 parent ef5b583 commit b573dd1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shell/tests/specs/pipes_do_not_become_shell.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b573dd1

Please sign in to comment.