mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
tests(redir): ensure targets are expanded when no words are in the cmd
This commit is contained in:
parent
d4da91b62b
commit
aeb5105d97
1 changed files with 15 additions and 0 deletions
15
test.sh
15
test.sh
|
|
@ -1458,4 +1458,19 @@ minishell: printff: command not found
|
|||
bonjour
|
||||
EOF
|
||||
|
||||
when_run <<"EOF" "redirection expansion when no commands are included"
|
||||
export VAR="bonjour hello"
|
||||
>$VAR>hey
|
||||
ls
|
||||
>hey>$VAR
|
||||
ls
|
||||
>hey>$VAR>hey>hey
|
||||
ls
|
||||
EOF
|
||||
expecting <<"EOF"
|
||||
minishell: $VAR: ambiguous redirect
|
||||
minishell: $VAR: ambiguous redirect
|
||||
minishell: $VAR: ambiguous redirect
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue