ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53789] New: bin/ant mishandles quotes
Date Tue, 28 Aug 2012 14:16:50 GMT

          Priority: P2
            Bug ID: 53789
           Summary: bin/ant mishandles quotes
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Hardware: PC
            Status: NEW
           Version: 1.8.3
         Component: Wrapper scripts
           Product: Ant

To reproduce:

$ echo '<project><echo>${message}</echo></project>' > build.xml
&& echo
message='Please "don'"'"'t kill" me' && ant -Dmessage='Please "don'"'"'t kill"
message=Please "don't kill" me
/usr/local/bin/ant: 1: eval: Syntax error: Unterminated quoted string

The following line is bogus:

  ant_exec_args="$ant_exec_args \"$arg\""

[1] suggests that printf %q might work to solve this class of problem, but it
is Bash-specific (so it will not work e.g. on Ubuntu's /bin/sh).


You are receiving this mail because:
You are the assignee for the bug.

View raw message