mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(parsing/simple_cmd): report error the same way as everywhere else, prevent leak
This commit is contained in:
parent
d652f32cff
commit
ced979dd31
2 changed files with 11 additions and 2 deletions
9
test.sh
9
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue