]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/read3.sub
Bash-4.3 patch 46
[thirdparty/bash.git] / tests / read3.sub
CommitLineData
bb70624e
JA
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
ac50fbac
CR
18echo abc | {
19 read -N 4 -d$'\n' foo
20 echo $foo
21}
22
bb70624e
JA
23read -n 1 < $0
24echo "$REPLY"