mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(parsing): report unclosed ( error
This commit is contained in:
parent
527a624765
commit
0c9dcd944e
2 changed files with 21 additions and 3 deletions
18
test.sh
18
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue