mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
feat(redirection/group_cmd): handle redirections for group cmds
This commit is contained in:
parent
bd06d9f19c
commit
a9055b4c66
2 changed files with 38 additions and 2 deletions
27
test.sh
27
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue