* tests/defs.in: Use printf rather than echo, as the latter may
interpret the backslashes in the sed script. Fixes test
failures with dash as /bin/sh.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2011-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ tests: fix unindent to use printf not echo for script.
+ * tests/defs.in: Use printf rather than echo, as the latter may
+ interpret the backslashes in the sed script. Fixes test
+ failures with dash as /bin/sh.
+
2011-03-01 Peter Rosin <peda@lysator.liu.se>
test defs: unindent without temporary file
unindent ()
{
if test x"$sed_unindent_prog" = x; then
- sed_unindent_prog=`echo "$commented_sed_unindent_prog" | sed -e "s/ *# .*//"`
+ sed_unindent_prog=`printf '%s\n' "$commented_sed_unindent_prog" | sed -e "s/ *# .*//"`
fi
sed "$sed_unindent_prog" ${1+"$@"}
}