From aeb5105d9797253f76ab51acf07f76d4b743a887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 28 Apr 2025 16:15:27 +0200 Subject: [PATCH] tests(redir): ensure targets are expanded when no words are in the cmd --- test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test.sh b/test.sh index 280d9e7..70bf468 100755 --- a/test.sh +++ b/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