]>
git.ipfire.org Git - thirdparty/bash.git/blame - tests/vredir5.sub
Commit | Line | Data |
495aee44 CR |
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 |