]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/vredir7.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / vredir7.sub
1 swizzle()
2 {
3 exec {fd[0]}<&0
4 exec {fd[1]}>&1
5
6 exec {stdin}<&${fd[0]}-
7 exec {stdout}>&${fd[1]}-
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