Github user jwadamson commented on the issue: https://github.com/apache/ant/pull/24 Solaris is not my expertise either. The attachment https://bz.apache.org/bugzilla/attachment.cgi?id=34221&action=diff looks reasonable. So it is wrapping each $arg with double-quotes and a newline, then inserting backslash before " or \ and then appending that value to the ant_exec_args. I do feel it is more readable to break it into multiple lines like that, but I think the ordering may be off between the escaping and wrapping with quotes. Using the attachment change on ubuntu. $ ./bin/ant --execdebug run "-Dfoo=dollar\$backtick\`single'double\"backslash\\" exec "$JAVACMD" -Xmx512m -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME" -Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp "$CLASSPATH" "run" "-Dfoo=dollar$backtick`single'double"backslash\" ./bin/ant: 1: eval: Syntax error: EOF in backquote substitution I am using the double-quote description for ksh from this as guide to special characters. http://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.osdevice/korn_shell_quote_chars.htm Going to play aroundmore. Maybe find a solarus box to test with as well
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org