title: Unix pipe into ls
body: <p>I thought I understood *nix pipes until now... I have an executable called <code>studio</code> which symlinks to my install of <code>Android Studio</code> and I had assumed I could get the linked-to location with </p>
  
  <pre><code>which studio | ls -l
  </code></pre>
  
  <p>But that doesn't work. What it gives me is equivalent to having just run <code>ls -l</code> in the current directory.</p>
  
  <p>If I run <code>which studio</code>, I get <code>/home/me/bin/studio</code>. And if I run <code>ls -l /home/me/bin/studio</code> I get the expected output showing me the symlink location.</p>
  
  <p>So why doesn't the piped version work? What haven't I grokked about pipes?</p>