summaryrefslogtreecommitdiffstats
path: root/tests/vredir8.sub
blob: e87b45b3c26b3ad6d0a3e27e6ae108f09adaf74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test varredir_close

: {fd}<>/dev/null

echo redir 1 >&$fd
exec {fd}>&-

shopt -s varredir_close

: {fd}<>/dev/tty

echo redir 2 >&$fd
exec {fd}>&-