fix(parsing/simple_cmd): leak when invalid redirection after word in simple_cmd

This commit is contained in:
Khaïs COLIN 2025-04-16 18:19:03 +02:00
parent 49a897b44e
commit 3be2969946
2 changed files with 22 additions and 3 deletions

View file

@ -681,4 +681,11 @@ expecting <<EOF
\$9HOME
EOF
when_run <<EOF "invalid redirection in echo"
echo < >
EOF
expecting <<"EOF"
minishell: syntax error near unexpected token `>'
EOF
finalize