summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-06-20 00:21:38 -0400
committerMartin Mares <mj@ucw.cz>2017-11-17 13:55:33 +0100
commitdf2e141fce690de57cae13562456269cf42926ba (patch)
treee52f3c257cbaab402996639d02d376b82d291f43
parentdfd15a80b40edfc85ad71189a6f7e797bc269af3 (diff)
downloadpciutils-df2e141fce690de57cae13562456269cf42926ba.tar.gz
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.
-rwxr-xr-xlib/configure7
1 files changed, 1 insertions, 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