ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: non-GNU sed needs an extra newline character
Date Mon, 25 Jul 2016 14:29:01 GMT
Repository: ant
Updated Branches:
  refs/heads/1.9.x fdfebe801 -> ad8630572


non-GNU sed needs an extra newline character

https://bz.apache.org/bugzilla/show_bug.cgi?id=59898


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

Branch: refs/heads/1.9.x
Commit: ad8630572286b10e845e74988b45028af3094266
Parents: fdfebe8
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Mon Jul 25 16:28:29 2016 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Mon Jul 25 16:28:29 2016 +0200

----------------------------------------------------------------------
 WHATSNEW       | 4 ++++
 src/script/ant | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/ad863057/WHATSNEW
----------------------------------------------------------------------
diff --git a/WHATSNEW b/WHATSNEW
index da25374..5b9887b 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -32,6 +32,10 @@ Fixed bugs:
    been introduced with Java 7.
    Bugzilla Report 59556
 
+ * The ant wrapper script used on Unix-like operating systems only
+   worked on OSes where sed is GNU sed.
+   Bugzilla Report 59898
+
 Other changes:
 --------------
 

http://git-wip-us.apache.org/repos/asf/ant/blob/ad863057/src/script/ant
----------------------------------------------------------------------
diff --git a/src/script/ant b/src/script/ant
index 6baf121..043f3fc 100644
--- a/src/script/ant
+++ b/src/script/ant
@@ -36,7 +36,7 @@ for arg in "$@" ; do
       show_help=true
     fi
     # wrap all arguments as "" strings, escape any internal back-slash or double-quote characters
-    ant_exec_args="$ant_exec_args \"$(printf '%s' "$arg" | sed -e 's@"\|\\@\\\0@g' )\""
+    ant_exec_args="$ant_exec_args \"$(printf '%s\n' "$arg" | sed -e 's@"\|\\@\\\0@g' )\""
   fi
 done
 


Mime
View raw message