From f2c46bc1d1c17fb26f1258fef1c7a9aa12e74590 Mon Sep 17 00:00:00 2001 From: shdown Date: Tue, 16 Sep 2014 21:01:35 +0400 Subject: TOOLS: eliminate echoes with variable substitutions echo behaviour with backslash escapes seems to be non-portable: dash does expand such an escapes and bash does not, so use cat/printf instead. --- TOOLS/idet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'TOOLS/idet.sh') diff --git a/TOOLS/idet.sh b/TOOLS/idet.sh index 9a2e698ea9..c3b30080a6 100755 --- a/TOOLS/idet.sh +++ b/TOOLS/idet.sh @@ -39,7 +39,7 @@ judge() case "$tff$bff$progressive$undetermined" in *[!0-9]*) - echo >&2 "ERROR: Unrecognized idet output: $out" + printf >&2 'ERROR: Unrecognized idet output: %s\n' "$out" exit 16 ;; esac @@ -75,7 +75,7 @@ judge() verdict="progressive" fi - echo "$verdict" + printf '%s\n' "$verdict" } judge "$@" --vf-clr -- cgit v1.2.3