feat(redirection/group_cmd): handle redirections for group cmds

This commit is contained in:
Khaïs COLIN 2025-04-25 18:12:58 +02:00
parent bd06d9f19c
commit a9055b4c66
2 changed files with 38 additions and 2 deletions

27
test.sh
View file

@ -1377,4 +1377,31 @@ expecting <<EOF
out*
EOF
when_run <<EOF "subshell combination with and"
((echo hello)&&echo hi)
EOF
expecting <<EOF
hello
hi
EOF
when_run <<EOF "nested subshell combination with and"
(echo hello&&((echo hi)))
EOF
expecting <<EOF
hello
hi
EOF
when_run <<EOF "subshell redirection with and"
(echo hello && echo hi) > outfile
ls
cat outfile
EOF
expecting <<EOF
outfile
hello
hi
EOF
finalize