You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/01/14 17:59:31 UTC
[2/2] ant git commit: trim whitespace
trim whitespace
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/8d03bfd6
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/8d03bfd6
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/8d03bfd6
Branch: refs/heads/1.9.x
Commit: 8d03bfd672247e72a6b8b93dbb27ecbe5c432727
Parents: 022cee1
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Jan 14 18:59:12 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Jan 14 18:59:12 2017 +0100
----------------------------------------------------------------------
src/script/ant | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/8d03bfd6/src/script/ant
----------------------------------------------------------------------
diff --git a/src/script/ant b/src/script/ant
index d98168c..8252d77 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}"