source:
vendor/bash/3.1-p17/tests/misc/redir-t2.sh
Last change on this file was 3228, checked in by , 18 years ago | |
---|---|
File size: 170 bytes |
Line | |
---|---|
1 | read line1 |
2 | |
3 | echo read line 1 \"$line1\" |
4 | |
5 | exec 4<&0 |
6 | |
7 | exec 0</dev/tty |
8 | |
9 | read line2 |
10 | |
11 | echo line read from tty = \"$line2\" |
12 | |
13 | exec 0<&4 |
14 | |
15 | read line3 |
16 | |
17 | echo read line 3 \"$line3\" |
Note:
See TracBrowser
for help on using the repository browser.