i-bash/tests/misc/redir-t2.sh
2009-09-12 16:46:51 +00:00

17 lines
170 B
Bash

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\"