jeudi 1 janvier 2015

Pipe to `ls` Not Working as Expected


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?



Aucun commentaire:

Enregistrer un commentaire