$OpenBSD: patch-scripts_kamdbctl_base,v 1.1 2009/09/12 09:42:04 sthen Exp $ --- scripts/kamdbctl.base.orig Fri Sep 11 23:40:47 2009 +++ scripts/kamdbctl.base Fri Sep 11 23:42:25 2009 @@ -134,7 +134,7 @@ credentials() mdbg() { if [ "0$VERBOSE" -ne 0 ] ; then if [ -t 1 -a -z "$NOHLPRINT" ] ; then - echo -e "\033[1m$1\033[0m" + printf "\033[1m$1\033[0m\n" else echo "$1" fi @@ -143,7 +143,7 @@ mdbg() { mwarn() { if [ -t 1 -a -z "$NOHLPRINT" ] ; then - echo -e '\E[37;32m'"\033[1mWARNING: $1\033[0m" + printf '\e[37;32m'"\033[1mWARNING: $1\033[0m\n" else echo "** WARNING: $1" fi @@ -151,7 +151,7 @@ mwarn() { minfo() { if [ -t 1 -a -z "$NOHLPRINT" ] ; then - echo -e '\E[37;33m'"\033[1mINFO: $1\033[0m" + printf '\e[37;33m'"\033[1mINFO: $1\033[0m\n" else echo "** INFO: $1" fi @@ -159,7 +159,7 @@ minfo() { mecho() { if [ -t 1 -a -z "$NOHLPRINT" ] ; then - echo -e "\033[1m$1\033[0m" + printf "\033[1m$1\033[0m\n" else echo "$1" fi @@ -167,7 +167,7 @@ mecho() { merr() { if [ -t 1 -a -z "$NOHLPRINT" ] ; then - echo -e '\E[37;31m'"\033[1mERROR: $1\033[0m" + printf '\e[37;31m'"\033[1mERROR: $1\033[0m\n" else echo "** ERROR: $1" fi