title: echo ignores flag in child_process.exec()
body: <p>When I type <code>echo -n foo</code> directly in bash, it works as expected and prints <code>foo</code> without any trailing new lines.</p>
  
  <p>But, I've written the following code to print some text using child_process.exec() method;</p>
  
  <pre><code>var exec = require('child_process').exec;
  exec("echo -n foo",
      function(error, stdout, stderr) {
          console.log(stdout);
      }
  );
  </code></pre>
  
  <p>However, the <code>-n</code> flag doesn't work as expected and it prints <code>-n foo</code> followed by a blank line.</p>
  
  <p><strong>UPDATE:</strong> I figured out that problem occurs only on OS X, I've tried the same script on Ubuntu and it works as expected.</p>