projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported from ../bash-2.04.tar.gz.
[platform/upstream/bash.git]
/
tests
/
read1.sub
1
a=7
2
echo 'abcdefg|xyz' | {
3
read -d '|' a
4
echo a = "${a-unset}"
5
}
6
7
echo xyz 123 | {
8
read -d ' ' a
9
echo a = "${a-unset}"
10
}
11
12
echo xyz 123 | {
13
read -d $'\n' a
14
echo a = -"${a-unset}"-
15
}
16
17
a=44
18
echo abcd | {
19
read -d d a
20
echo a = $a
21
}
22
23
exit 0