mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(parsing/pipeline): leak when optional pipeline returns NULL
This commit is contained in:
parent
6cc6e6cfb5
commit
9271b7fa92
3 changed files with 18 additions and 6 deletions
7
test.sh
7
test.sh
|
|
@ -697,4 +697,11 @@ expecting <<EOF
|
|||
hello!
|
||||
EOF
|
||||
|
||||
when_run <<EOF "double pipe after echo"
|
||||
echo | |
|
||||
EOF
|
||||
expecting <<"EOF"
|
||||
minishell: syntax error near unexpected token `|'
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue