title: How to execute /bin/sh with commons-exec?
body: <p>This is what I'm doing:</p>
  
  <pre><code>import org.apache.commons.exec.*;
  String cmd = "/bin/sh -c \"echo test\"";
  new DefaultExecutor().execute(CommandLine.parse(cmd));
  </code></pre>
  
  <p>This is the output:</p>
  
  <pre><code>/bin/sh: echo test: command not found
  </code></pre>
  
  <p>What am I doing wrong?</p>