projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.3 distribution sources and documentation
[platform/upstream/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
echo abc | {
19
read -N 4 -d$'\n' foo
20
echo $foo
21
}
22
23
read -n 1 < $0
24
echo "$REPLY"