Repository: ant Updated Branches: refs/heads/master 32f7fdb9b -> 10a563d2c
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/master Commit: ad8630572286b10e845e74988b45028af3094266 Parents: fdfebe8 Author: Stefan Bodewig <[email protected]> Authored: Mon Jul 25 16:28:29 2016 +0200 Committer: Stefan Bodewig <[email protected]> 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
