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 2016/10/29 04:28:26 UTC

[1/2] ant git commit: corrected comments

Repository: ant
Updated Branches:
  refs/heads/master d48317a4b -> 6d5eb30b4


corrected comments


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/2dfcbe34
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/2dfcbe34
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/2dfcbe34

Branch: refs/heads/master
Commit: 2dfcbe3493bb87a6c7d1a2c21744a8618395a9c3
Parents: d48317a
Author: Jeffrey Adamson <jw...@us.ibm.com>
Authored: Fri Oct 28 11:29:32 2016 -0400
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Oct 29 06:27:26 2016 +0200

----------------------------------------------------------------------
 src/script/ant | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/2dfcbe34/src/script/ant
----------------------------------------------------------------------
diff --git a/src/script/ant b/src/script/ant
index 0f83e18..5d1d154 100644
--- a/src/script/ant
+++ b/src/script/ant
@@ -50,13 +50,13 @@ for arg in "$@" ; do
 
     # wrap all arguments as "" strings, escape any internal back-slash, double-quote, $, or back-tick characters
     #  use printf to avoid echo interpretation behaviors such as escapes and line continuation
-    #  pad the value with leading/trailing X to protect whitespace
+    #  pad the value with X to protect leading/trailing whitespace from subshell output trimming
     esc_arg="X${arg}X"
     case "$esc_tool" in
       'sed')
         # Mac bsd_sed does not support group-0, so pattern uses group-1
         # Solaris sed only proceses lines with trailing newline, passing in an extra newline
-        # sed will consume the trailing newline
+        # subshell assignment will trim the added trailing newline
         esc_arg="$(printf '%s\n' "$esc_arg" | sed -e 's@\([$"\\`]\)@\\\1@g')"
         ;;
       'awk')


[2/2] ant git commit: closes #26, thanks Jeff!

Posted by bo...@apache.org.
closes #26, thanks Jeff!


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/6d5eb30b
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/6d5eb30b
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/6d5eb30b

Branch: refs/heads/master
Commit: 6d5eb30b4ae9a376ef1bd2668f8747154728bed4
Parents: 2dfcbe3
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Oct 29 06:27:52 2016 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Oct 29 06:27:52 2016 +0200

----------------------------------------------------------------------

----------------------------------------------------------------------