From: Ian Kelling Date: Mon, 16 Jul 2018 15:43:01 +0000 (-0400) Subject: code style X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=41be570a33a5aa5072496e2aeac3fc6f1626654f;p=errhandle.git code style --- diff --git a/err b/err index 5b501ce..f4aca22 100644 --- a/err +++ b/err @@ -87,14 +87,14 @@ err-exit() { exec >&2 code=1 - if [[ $* ]]; then + if [[ "$*" ]]; then if [[ ${1/[^0-9]/} == "$1" ]]; then code=$1 if [[ $2 ]]; then - printf "%s\n" "$2" + printf '%s\n' "$2" fi else - printf "%s\n" "$0: $1" + printf '%s\n' "$0: $1" fi fi echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}"