]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/read3.sub
Bash-4.2 patch 7
[thirdparty/bash.git] / tests / read3.sub
1 # non-interactive
2
3 # error
4 read -n -1
5
6 # from pipe -- should work, but doesn't change tty attributes
7 echo abcdefg | {
8 read -n 3 xyz
9 echo $xyz
10 }
11
12 # fewer chars than specified
13 echo ab | {
14 read -n 3 xyz
15 echo $xyz
16 }
17
18 read -n 1 < $0
19 echo "$REPLY"