mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
redir_parsing: fix memory leak when parsing a redirection with an operator as specifier
if the specifier was not WORD_TOKEN, the operator was not being freed
This commit is contained in:
parent
84a246f6f6
commit
9a32220945
2 changed files with 13 additions and 6 deletions
9
test.sh
9
test.sh
|
|
@ -613,4 +613,13 @@ parsed command
|
|||
╰─ redirections = (empty redir list)
|
||||
EOF
|
||||
|
||||
when_run <<EOF "multiple >"
|
||||
> > > >
|
||||
echo \$?
|
||||
EOF
|
||||
expecting <<"EOF"
|
||||
minishell: syntax error near unexpected token `>'
|
||||
2
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue