mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
feat(redir): expand wildcards in targets and handle ambiguous redirects
This commit is contained in:
parent
920ad586e1
commit
38ffac7fc3
2 changed files with 81 additions and 5 deletions
19
test.sh
19
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue