ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwadamson <...@git.apache.org>
Subject [GitHub] ant issue #24: fix 60150 values containing backtick or $ character cause she...
Date Fri, 07 Oct 2016 19:33:53 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message