]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/redir5.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / redir5.sub
CommitLineData
7117c2d2
JA
1# tests of ksh93-like dup-and-close redirection operators
2exec 9<$0
3
4f()
5{
6exec 5<$0
7
8exec 0<&5-
9
10while read line; do
11 echo "$line"
12done
13}
14
15f
16
17typeset -f f
18
19# make sure it was closed
20read -u 5 foo
21echo after read
22
23exec 5<&0
24
25exec <&-
26
27read abcde
28
29exec 0<&9-
30read line
31echo $line