readarray!

This commit is contained in:
Jack L. Frost 2015-02-20 16:43:53 +03:00
parent b2cb42c371
commit d19dc0fbb1

4
zpac
View File

@ -13,7 +13,7 @@ echo() { printf '%s\n' "$*"; }
err() { echo "$*" >&2; }
usage() {
while read; do usage_block+=( "$REPLY" ); done <<- EOF
readarray usage_block <<- EOF
Usage: $_self [flags] <package>
Flags:
-h Show this message.
@ -25,7 +25,7 @@ usage() {
-w <dir> Set the working directory.
EOF
printf '%s\n' "${usage_block[@]}"
printf '%s' "${usage_block[@]}"
}
aur.search() {