This question already has an answer here:
When I issue:
[dave@dhost ~]$ which tar | ls -l
I get the output of
ls -l of the pwd.
I expected to get:
-rwxr-xr-x. 1 root root 395472 Feb 21 2013 /bin/tar
Why doesn't the pipe work as I expected in this case?