svn commit: r227164 - head/usr.bin/du

Alexander Best arundel at freebsd.org
Sun Nov 6 22:48:50 UTC 2011


On Sun Nov  6 11, Ed Schouten wrote:
> Hi Alexander,
> 
> * Alexander Best <arundel at freebsd.org>, 20111106 23:30:
> > +The
> > +.Fl a, d
> > +and
> > +.Fl s
> > +options are mutually exclusive.
> > +.Pp
> > +The
> > +.Fl H, L
> > +and
> > +.Fl P
> > +options are mutually exclusive.
> 
> This can already be derived from the SYNOPSIS, right?

partially:


"    du [-A] [-H | -L | -P] [-a | -s | -d depth | -t threshold] [-c] [-l]
        [-h | -k | -m | -B blocksize] [-n] [-x] [-I mask] [file ...]"

1) [-H | -L | -P] is correct
2) [-a | -s | -d depth | -t threshold] is not correct. the -t option can be
   used together with the -a, -s and -d options.
3) [-h | -k | -m | -B blocksize] is not correct. the -B option can be used
   together with the -h, -k and -m options.
   also style(9) describes "|" as "either-or" operator. for the -h, -k and -m
   options this isn't true. they can very well be used in a single command, but
   the last option backs out all the previous ones.

i think the following would be better:

"    du [-Achklmnx] [-H | -L | -P] [-a | -s | -d depth] [-B blocksize]
        [-I mask] [-t threshold] [file ...]"

and the paragraph

"    The -h, -k and -m options all override each other; the last one specified
     determines the block count used."

cheers.
alex

> 
> -- 
>  Ed Schouten <ed at 80386.nl>
>  WWW: http://80386.nl/




More information about the svn-src-head mailing list