title: shell_exec syntax error. running in terminal directly is ok
body: <p>Having this command:</p>
  
  <pre><code>    $command = "diff -bBdH --ignore-all-space &lt;(echo 'hi') &lt;(echo 'hi1')";
      echo $command;
      $result = shell_exec($command);
  </code></pre>
  
  <p>On the screen I see:</p>
  
  <pre><code>    sh: 1: Syntax error: "(" unexpected
      diff -bBdH --ignore-all-space &lt;(echo 'hi') &lt;(echo 'hi1')
  </code></pre>
  
  <p>If I copy-paste the second line from the console output into the terminal, the result would be correct. (Reproduced on another machine too).</p>
  
  <p>I'm missing something dead simple here and can't see what it is.  </p>
  
  <hr>
  
  <p>besides, why is my output reversed?<br>
  I'm clearly echoing the command before executing it,
  thus the syntax error of the shell should appear after the <code>shell_exec</code></p>