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