Browse Source

non-GNU sed needs an extra newline character

https://bz.apache.org/bugzilla/show_bug.cgi?id=59898
master
Stefan Bodewig 9 years ago
parent
commit
ad86305722
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      WHATSNEW
  2. +1
    -1
      src/script/ant

+ 4
- 0
WHATSNEW View File

@@ -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:
--------------



+ 1
- 1
src/script/ant View File

@@ -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



Loading…
Cancel
Save