mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(builtin/exit): prevent leak when calling exit in a subprocess
This commit is contained in:
parent
93f3ea7c66
commit
5ea55a9f9c
12 changed files with 65 additions and 58 deletions
7
test.sh
7
test.sh
|
|
@ -1595,4 +1595,11 @@ minishell: warning: here-document delimited by end-of-file (wanted `'hola'')
|
|||
test
|
||||
EOF
|
||||
|
||||
when_run <<EOF "exit in pipeline"
|
||||
exit 10 | echo hi
|
||||
EOF
|
||||
expecting <<EOF
|
||||
hi
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue