From: Mike Frysinger Date: Mon, 20 Jun 2016 04:21:38 +0000 (-0400) Subject: configure: use simpler/more portable echo_n X-Git-Tag: v3.5.6~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=df2e141fce690de57cae13562456269cf42926ba;p=pciutils.git 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. --- 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