fix(parsing): report unclosed ( error

This commit is contained in:
Khaïs COLIN 2025-04-25 13:17:29 +02:00
parent 527a624765
commit 0c9dcd944e
2 changed files with 21 additions and 3 deletions

18
test.sh
View file

@ -1021,4 +1021,22 @@ minishell: cat: Permission denied
126
EOF
when_run <<EOF "unclosed ("
(echo unclosed paren
EOF
expecting <<"EOF"
minishell: syntax error near unexpected token `newline'
EOF
when_run <<"EOF" "unclosed ( in export"
export VAR=bon(jour
echo $?
echo var=$VAR
EOF
expecting <<"EOF"
minishell: syntax error near unexpected token `('
2
var=
EOF
finalize