mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
feat(redirect): do variable expansion on redirect targets
This commit is contained in:
parent
2ae001e00b
commit
c00cc21ae4
4 changed files with 64 additions and 3 deletions
12
test.sh
12
test.sh
|
|
@ -808,4 +808,16 @@ the nuclear option
|
|||
the nuclear option
|
||||
EOF
|
||||
|
||||
when_run <<"EOF" "redirect with expansion in target"
|
||||
export target=outfile
|
||||
echo -n "hello " > $target
|
||||
echo there >> $target
|
||||
ls
|
||||
cat < $target
|
||||
EOF
|
||||
expecting <<EOF
|
||||
outfile
|
||||
hello there
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue