feat(redir): expand wildcards in targets and handle ambiguous redirects

This commit is contained in:
Khaïs COLIN 2025-04-21 13:07:02 +02:00
parent 920ad586e1
commit 38ffac7fc3
2 changed files with 81 additions and 5 deletions

19
test.sh
View file

@ -841,4 +841,23 @@ minishell: $target: ambiguous redirect
0
EOF
when_run <<"EOF" "wildcard expansion in redirect"
touch "microsoft windows"
echo hello > *m*cros*ft*
echo $?
echo goodbye >> *w*nd*ws*
echo $?
ls
cat < *soft*
echo $?
EOF
expecting <<EOF
0
0
microsoft windows
hello
goodbye
0
EOF
finalize