tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: `ls -1s` doesn't print "total"



Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:

> I'd say -1 is the option for "the output is meant to read
> programmatically" and it's antonym is -C for "the output for human
> consumption".  If ls outputs to a pipe it infers -1 automatically
> unless -C is specified (cf. "command ls | more").  The total is "for
> human consumption" (phrased as "the output is to a terminal"), so when
> you specify -1 you turn that off.

Yeah, that's certainly a possible interpretation.  In
that case, though, the manual page should say so.

-Jan


Home | Main Index | Thread Index | Old Index