title: Emacs: why shell-command "git log" works, but "git shortlog" doesn't?
body: <p>I can't figure this out. Why do these behave differently:</p>
  
  <pre><code>(shell-command "git log")
  (shell-command "git shortlog")
  </code></pre>
  
  <p>First one works as expected: returns 0 and prints stuff to shell output buffer.
  Second one returns 0 but prints nothing. Why is that?</p>
  
  <p>Also</p>
  
  <ol>
  <li>both <code>git log</code> and <code>git shortlog</code> work perfectly in <code>ansi-term</code></li>
  <li>both <code>git log</code> and <code>git shortlog</code> give a warning but still work in <code>shell</code></li>
  </ol>