From eb122ed51f7ff128012461a1f44d827bbfb26870 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 21:46:55 +0200 Subject: [PATCH] use echo instead of printf -> problems with % --- log_helpers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log_helpers b/log_helpers index 67a1b33..f1d63d6 100755 --- a/log_helpers +++ b/log_helpers @@ -35,8 +35,8 @@ if [ "${log_helpers_sourced:-1}" = "1" ]; then # include only once sed -e 1d -i $log_file fi local msg="$(date +'%Y-%m-%d_%T'): $*" - printf "log:$msg\n" >&2 - printf "$msg\n" >> $log_file + echo "log:$msg" >&2 + echo "$msg" >> $log_file } log_debug() {