readarray!

This commit is contained in:
Jack L. Frost 2015-02-20 16:43:53 +03:00
parent b2cb42c371
commit d19dc0fbb1
1 changed files with 2 additions and 2 deletions

4
zpac
View File

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