On Mon, Nov 14, 2011 at 10:24:14AM +0100, Voelker, Bernhard wrote: > Davidlohr Bueso wrote: > > On Mon, 2011-11-14 at 02:48 +0100, Bernhard Voelker wrote: > > > [PATCH 13/15] prlimit: enhance examples section of the man page > > > > > > Add various examples to the man page, e.g. demonstrating setting > > > limits using short options, showing that the --pid option can be > > > used in random positions, how to use the "-1" notation for the > > > "unlimited" value, and that prlimit takes the values from the arguments > > > last set. > > > Just a few examples are more than enough to illustrate the point; > > manpages have always been this way. I think this is unnecessary and > > clogs the document. > > admitted. > > Somehow I felt that the existing examples where to homogeneous. This is feature ;-) Really, we prefer nice *readable* examples with long options. > Well, prlimit didn't e.g. support passing the PID after other > modifying arguments, so I thought that enhancing the examples > with the new, "wilder" usage would be nice. ;-) > > But in these 2 I missed an error: there's a "=" missing between > "--pid" and the PID: > > > > -.IP "\fBprlimit \-\-pid 13134 \--rss --nofile=1024:4095\fP" > > > +.IP "\fBprlimit \--rss \-\-pid 13134 --nofile=1024:4095\fP" > > > > -.IP "\fBprlimit \-\-pid 13134 --nproc=512:\fP" > > > +.IP "\fBprlimit \-\-pid 13134 -n512:\fP" > > I only spotted the missing "=" here, but failed to mention it > in the commit log: > > > > -.IP "\fBprlimit \-\-pid $$ --nproc=unlimited\fP" > > > +.IP "\fBprlimit \-\-pid=$$ --nproc=unlimited\fP" > > What's your recommendation? The '=' is necessary for optional arguments (for example resource arguments) only. Bernhard, small note: many of your patches are malformed by your e-mail client. Please, reconfigure the mail client (to not modify long lines) or use git-send-email. Thanks, your found many issues! Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html