From 8d03bfd672247e72a6b8b93dbb27ecbe5c432727 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Sat, 14 Jan 2017 18:59:12 +0100 Subject: [PATCH] trim whitespace --- src/script/ant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/ant b/src/script/ant index d98168c56..8252d779c 100644 --- a/src/script/ant +++ b/src/script/ant @@ -63,7 +63,7 @@ for arg in "$@" ; do # Solaris sed only processes lines with trailing newline, passing in an extra newline # subshell (heirloom and posix) will trim the added trailing newline esc_arg="`printf '%s\n' "$esc_arg" | sed -e 's@\([$\"\`\\]\)@\\\\\\1@g' `" - + if [ "$PROTECT_NL" = "true" ] ; then # remove the padding X added above, this syntax is POSIX compatible but not heirloom-sh esc_arg="${esc_arg%X}"