[PATCH] mpers: fix shell code to conform better to POSIX

Mike Frysinger vapier at gentoo.org
Tue Sep 29 19:02:35 UTC 2015


The `echo -n` behavior is non-portable, so use printf instead.

* generate_mpers_am.sh: Change `echo -n` to `printf`.
---
 generate_mpers_am.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generate_mpers_am.sh b/generate_mpers_am.sh
index 382ef53..5469c94 100755
--- a/generate_mpers_am.sh
+++ b/generate_mpers_am.sh
@@ -3,7 +3,7 @@
 exec > mpers.am
 
 echo "# Generated by $0; do not edit."
-echo -n 'mpers_source_files = '
+printf 'mpers_source_files = '
 
 sed -n '/^strace_SOURCES[[:space:]]*=/,/^[[:space:]]*# end of strace_SOURCES/ s/^[[:space:]]*\([[:alnum:]][^.]*\.c\)[[:space:]]*\\$/\1/p' Makefile.am |
 	xargs -r grep -lx '#[[:space:]]*include[[:space:]]\+MPERS_DEFS' |
-- 
2.5.2





More information about the Strace-devel mailing list