From df2e141fce690de57cae13562456269cf42926ba Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Jun 2016 00:21:38 -0400 Subject: configure: use simpler/more portable echo_n The `echo -n` behavior is not in POSIX and not all shells support it. Use the portable `printf` func as defined by POSIX. --- lib/configure | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/configure b/lib/configure index 7d4cec8..363f5b4 100755 --- a/lib/configure +++ b/lib/configure @@ -6,12 +6,7 @@ LC_ALL=C export LC_ALL echo_n() { - if [ -n "$BASH" ] - then - echo -n "$*" - else - echo "$*\c" - fi + printf '%s' "$*" } if [ -z "$VERSION" -o -z "$IDSDIR" ] ; then -- cgit v1.2.1