ls -l total bug?

Feodor Trubetskoy fedya at ispol.com
Mon Feb 16 10:00:35 PST 2004


Good day,

ls man reads:

  -l      <skip>  *If the output is to a terminal, a total sum for all 
the file sizes is output on a line before the long listing.*

But I have found that ls consistently put "total" in a first line even 
if output is piped or redirected. As an example:

ls -l | cat

Is it bug or I missed something?

FreeBSD 5.1 Release

Thank you,
--fedya


More information about the freebsd-questions mailing list