title: EXEC args (value) with quotes on linux from Ant script
body: <p>bash shell:</p>
  
  <pre><code>./mimic_cmd "startDaemon()"
  </code></pre>
  
  <p>Corresponding Ant code:</p>
  
  <pre><code> &lt;exec failonerror="true" executable="/bin/mimic_cmd"&gt;
      &lt;arg value='"startDaemon()"' /&gt;
   &lt;/exec&gt;
  </code></pre>
  
  <ol>
  <li>Does the Ant code exactly represent the above command at the bash shell? Based on the debug info, it looks like it:</li>
  </ol>
  
  <blockquote>
  <pre><code> [exec] Executing '/bin/mimic_cmd' with arguments:
   [exec] '"startDaemon()"'
   [exec] 
   [exec] The ' characters around the executable and arguments are
   [exec] not part of the command.
   Execute:Java13CommandLauncher: Executing '/bin/mimic_cmd' with arguments:
   '"startDaemon()"'
   The ' characters around the executable and arguments are not part of the command.
  </code></pre>
  </blockquote>
  
  <p>However, the Ant code returns and exit code of 1 while the Bash shell command returns 0.</p>
  
  <p>Toggling vmlauncher doesn't help, and paths are all correct.</p>
  
  <p>The same Ant code works on windows with the resulting debug output:</p>
  
  <blockquote>
  <pre><code> [exec] Executing 'C:\bin\mimic_cmd' with arguments:
   [exec] '"startDaemon()"'
   [exec] 
   [exec] The ' characters around the executable and arguments are
   [exec] not part of the command.
   Execute:Java13CommandLauncher: Executing 'C:\bin\mimic_cmd' with arguments:
   '"startDaemon()"'
   The ' characters around the executable and arguments are not part of the command.
  </code></pre>
  </blockquote>