From: Alexander Barton Date: Fri, 28 Aug 2015 14:51:44 +0000 (+0200) Subject: ax-common.sh: Use \NNN instead of \xNN, which is portable X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-unix.git;a=commitdiff_plain;h=872a56621f667413edf69afdd360e5046917b31f ax-common.sh: Use \NNN instead of \xNN, which is portable --- diff --git a/lib/ax/ax-common.sh b/lib/ax/ax-common.sh index f060e4c..fbeb579 100644 --- a/lib/ax/ax-common.sh +++ b/lib/ax/ax-common.sh @@ -23,9 +23,9 @@ ax_msg1() { *) c="0"; esac # print colored word(s): - printf "\x1b[0;${c}m" + printf "\033[0;${c}m" /bin/echo -n "${1}" - printf "\x1b[0m " + printf "\033[0m " shift # print remaining word(s) and trailing newline: echo "${*}"