fix(builtin/exit): prevent leak when calling exit in a subprocess

This commit is contained in:
Khaïs COLIN 2025-04-29 15:50:38 +02:00
parent 93f3ea7c66
commit 5ea55a9f9c
12 changed files with 65 additions and 58 deletions

View file

@ -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