freebsd-skq/bin/ls
David Schultz 70bad4f75b If we are asked to print the total number of blocks, do so even if we
have no entries to print (either due to an empty directory or an
error).  This makes the -l and -s options more consistent, like
Solaris and (Debian) Linux.  To make this happen, tweak two
optimizations on the second call to display():

- Don't skip display() altogether, even if list == NULL.
- Don't skip the call to the printfn in display() if we
  need to print the total.

PR:	45723
2004-06-08 09:30:10 +00:00
..
cmp.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
extern.h Treat filenames as multibyte character strings (according to the current 2004-05-02 11:25:37 +00:00
ls.1 Punctuation. 2004-05-16 21:34:49 +00:00
ls.c If we are asked to print the total number of blocks, do so even if we 2004-06-08 09:30:10 +00:00
ls.h Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
Makefile Use humanize_number(3). 2004-05-25 14:53:47 +00:00
print.c Remove from the printfns the assumption that dp->list != NULL. Even 2004-06-08 09:27:42 +00:00
util.c Only add the widths together for printable characters in prn_normal(); 2004-05-03 11:48:55 +00:00