From: Alexander Barton Date: Thu, 19 Apr 2018 10:17:34 +0000 (+0200) Subject: ax-common.sh: Correctly quote printf statement X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-unix.git;a=commitdiff_plain;h=249652d002f737fb61cf630bb21fc107ab508ce6 ax-common.sh: Correctly quote printf statement This fixes the following shellcheck(1) warning SC1117: Backslash is literal in "\0". Prefer explicit escaping: "\\0". --- diff --git a/lib/ax/ax-common.sh b/lib/ax/ax-common.sh index c0362ff..f43e475 100644 --- a/lib/ax/ax-common.sh +++ b/lib/ax/ax-common.sh @@ -29,7 +29,7 @@ ax_msg1() { *) c="0"; esac # print colored word(s): - printf "\033[0;%sm%s\033[0m " "${c}" "${1}" + printf "\\033[0;%sm%s\\033[0m " "${c}" "${1}" else # print plain text: printf "%s " "${1}"