GitHub user jwadamson opened a pull request:
https://github.com/apache/ant/pull/25
fix problems with argument handling of trailing space and sed/echo quirks
So this is where I have landed through trial and error on improving the
argument handling code.
Tested with:
mac bsd_sed+bash
ubuntu gnu_sed+dash
ubuntu gnu_sed+ksh93
ubuntu gnu_sed+zsh
We should ask mailing list to test on default Solaris, AIX, and HPUX
platforms.
If they experience problems due to sed versions, they can test out awk as
an esc_tool alternative value. If neither works consistently we can add some
bash/zsh/ksh93 detection to use a bashism when available to avoid sed and awk
when possible..
Attached is a manual test.sh and test.xml which echos some passed in
properties to demonstrate correct handling of special characters and
whitespace/newline scenarios.
[test.zip](https://github.com/apache/ant/files/536763/test.zip)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jwadamson/ant-1 fix-60150_1.9.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ant/pull/25.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #25
----
commit b5443219ceabe6773eb9f3f47bca7d6c111a0dd2
Author: Jeffrey Adamson <[email protected]>
Date: 2016-10-10T21:16:27Z
fix problems with argument handling of trailing space and sed/echo quirks
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]