fix(parsing/simple_cmd): report error the same way as everywhere else, prevent leak

This commit is contained in:
Khaïs COLIN 2025-04-16 15:24:42 +02:00
parent d652f32cff
commit ced979dd31
2 changed files with 11 additions and 2 deletions

View file

@ -626,4 +626,13 @@ minishell: syntax error near unexpected token `>'
2
EOF
when_run <<EOF "single pipe char"
|
echo \$?
EOF
expecting <<"EOF"
minishell: syntax error near unexpected token `|'
2
EOF
finalize