title: In Emacs-lisp, what is the correct way to use call-process on an ls command?
body: <p>I want to execute the following shell command in emacs-lisp:</p>
  
  <pre><code>ls -t ~/org *.txt | head -5
  </code></pre>
  
  <p>My attempt at the following:</p>
  
  <pre><code>(call-process "ls" nil t nil "-t" "~/org" "*.txt" "| head -5")
  </code></pre>
  
  <p>results in</p>
  
  <pre><code>ls: ~/org: No such file or directory
  ls: *.txt: No such file or directory
  ls: |head -5: No such file or directory
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>