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-4.0.tar.gz.
[platform/upstream/bash.git]
/
tests
/
mapfile1.sub
1
: ${TMPDIR:=/tmp}
2
FILE=$TMPDIR/file
3
4
trap 'rm -f $FILE' 0 1 2 3 6 15
5
printf "%d\n" {1..20} > $FILE
6
7
mapfile -n 5 array < $FILE
8
echo ${array[@]}
9
10
mapfile -n 5 -c 1 -C "echo foo" array < $FILE
11
mapfile -n 5 -c 1 -C "echo foo" array < /dev/null