mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(parsing/simple_cmd): leak when invalid redirection after word in simple_cmd
This commit is contained in:
parent
49a897b44e
commit
3be2969946
2 changed files with 22 additions and 3 deletions
7
test.sh
7
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue