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

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

bash 3.1

File size: 246 bytes
Line 
1# non-interactive
2
3# error
4read -n -1
5
6# from pipe -- should work, but doesn't change tty attributes
7echo abcdefg | {
8 read -n 3 xyz
9 echo $xyz
10}
11
12# fewer chars than specified
13echo ab | {
14 read -n 3 xyz
15 echo $xyz
16}
17
18read -n 1 < $0
19echo "$REPLY"
Note: See TracBrowser for help on using the repository browser.