source: vendor/bash/3.1-p17/tests/read2.sub

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 199 bytes
Line 
1a=4
2
3read -t 2 a < /dev/tty
4echo $?
5
6echo $a
7
8sleep 5 | read -t 1 a
9echo $?
10
11echo $a
12
13read -t -3 a < /dev/tty
14echo $?
15
16echo $a
17
18# the above should all time out
19echo abcde | {
20 read -t 2 a
21 echo $a
22}
Note: See TracBrowser for help on using the repository browser.