]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/vredir5.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / vredir5.sub
CommitLineData
495aee44
CR
1swizzle()
2{
3exec {fd0}<&0
4exec {fd1}>&1
5
6exec {stdin}<&$fd0-
7exec {stdout}>&$fd1-
8}
9
10swizzle
11
12echo $stdin $stdout
13
14read line <&$stdin <<EOF
15a
16EOF
17
18echo $line
19echo $line >&$stdout
20
21type swizzle
22
23exit 0