title: Capturing the output of "diff" with org-babel
body: <p>I'm trying to capture the output of <code>diff</code> with org-babel, but for some reason it's not working. For the files</p>
  
  <p>1</p>
  
  <pre><code>a b c
  </code></pre>
  
  <p>2</p>
  
  <pre><code>a c b
  </code></pre>
  
  <p><code>diff 1 2</code> called from the command line returns</p>
  
  <pre><code>1c1
  &lt; a b c
  ---
  &gt; a c b
  </code></pre>
  
  <p>But with org-babel, nothing:</p>
  
  <pre><code>#+begin_src sh                                                                                                                                                 
  diff 1 2                                                                                                                                                       
  #+end_src                                                                                                                                                      
  
  #+RESULTS:
  </code></pre>
  
  <p>The minibuffer reads "Code block produced no output". The org-babel error output window is empty. Other commands such as <code>ls</code> show the output as expected. I'm not familiar with org-babel.</p>
  
  <p>I tried using <code>:results output verbatim</code>, no changes. I also tried using <code>:results output replace</code> as suggested <a href="https://stackoverflow.com/questions/12771642/capture-output-from-a-shell-command-with-babel-in-org-mode">here</a>. Didn't help.</p>
  
  <ul>
  <li>Emacs version is 24.4.1 (on Debian jessie)</li>
  <li>Org-mode version is 8.2.10</li>
  </ul>