summaryrefslogtreecommitdiff
path: root/tests/redir3.sub
blob: c486253e6ea2be741b21b1a1d143c9e3c650f424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
read line1

echo read line1 \"$line1\"

exec 4<./redir3.in2

exec 5<&0
exec 0<&4

read line2

echo read line2 \"$line2\"

exec 0<&5

read line3

echo read line3 \"$line3\"

exec 0<&4

read line4

echo read line4 \"$line4\"

exec 4<&-