summaryrefslogtreecommitdiff
path: root/tests/misc/redir-t2.sh
blob: 44b2624ee8e9d756cb1ddef09668747964ce7a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
read line1

echo read line 1 \"$line1\"

exec 4<&0

exec 0</dev/tty

read line2

echo line read from tty = \"$line2\"

exec 0<&4

read line3

echo read line 3 \"$line3\"