You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2016/01/15 22:59:31 UTC

[Bug 58874] New: Ant fails to launch if ANT_HOME contains double-quote

https://bz.apache.org/bugzilla/show_bug.cgi?id=58874

            Bug ID: 58874
           Summary: Ant fails to launch if ANT_HOME contains double-quote
           Product: Ant
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Wrapper scripts
          Assignee: notifications@ant.apache.org
          Reporter: jwadamson@gmail.com

1) `mv ant ant\"dir`
2) run ant

Expected Result: ant runs
Actual Result:

.../ant"dir$ ./bin/ant 
./bin/ant: 1: eval: Syntax error: Unterminated quoted string

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

[Bug 58874] Ant fails to launch if ANT_HOME contains double-quote

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58874

jwadamson@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwadamson@gmail.com

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

[Bug 58874] Ant fails to launch if ANT_HOME contains double-quote

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58874

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.9.7
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Antoine Levy-Lambert <an...@apache.org> ---
Thanks for the patch. I was intrigued by what is the difference between 

command=\"$foo\" and command=\"\$foo\"

I have seen that your change prevents $foo from being expanded immediately when
command is assigned, so the eval command expands $foo instead.

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