[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] Adding examples to the man pages
From: |
Paul Eggert |
Subject: |
Re: [Patch] Adding examples to the man pages |
Date: |
Tue, 15 Mar 2005 14:09:18 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
James Youngman <address@hidden> writes:
> Jim, Paul, it might be useful at this point to give Dave some
> feedback, to let him know if he should continue to work on examples or
> whether he's been wasting his time.
Jim has the final say, of course; we should let him weigh in.
My kneejerk reaction is that I like the idea of adding examples, but
I'd rather see them added to the output of "--help". That way, they'd
be put into the man pages automatically. We should also add them to
doc/coreutils.texi. That's maintaining two copies, but we already
have to do that.
As far as the examples themselves (independent of mechanics), my reaction to
<http://lists.gnu.org/archive/html/bug-coreutils/2005-03/txt8jnsvtOTux.txt>
is that they're a bit wordy and generic, and should be more concise and
specific. For example, for basename I'd prefer something like this:
EXAMPLES
"basename /usr/bin/sort" outputs "sort".
"basename /usr/include/stdio.h .h" outputs "stdio".
and for cat I'd prefer the following (as we shouldn't be encouraging
the use of any of cat's options):
EXAMPLE
"cat a.h - b.c" outputs the contents of a.h, then standard input, then b.c.
- [Patch] Adding examples to the man pages, Dr. David Alan Gilbert, 2005/03/14
- Re: [Patch] Adding examples to the man pages, Alfred M. Szmidt, 2005/03/14
- Re: [Patch] Adding examples to the man pages, James Youngman, 2005/03/14
- Re: [Patch] Adding examples to the man pages, Alfred M. Szmidt, 2005/03/14
- Re: [Patch] Adding examples to the man pages, Dave Gilbert (Home), 2005/03/15
- Re: [Patch] Adding examples to the man pages, Alfred M. Szmidt, 2005/03/14
- Re: [Patch] Adding examples to the man pages, James Youngman, 2005/03/15
- Re: [Patch] Adding examples to the man pages,
Paul Eggert <=
- Re: [Patch] Adding examples to the man pages, Jim Meyering, 2005/03/15
- Re: [Patch] Adding examples to the man pages, Bob Proulx, 2005/03/15
- Re: [Patch] Adding examples to the man pages, Dave Gilbert (Home), 2005/03/16
- Re: [Patch] Adding examples to the man pages, Paul Eggert, 2005/03/17
- Re: [Patch] Adding examples to the man pages, Dr. David Alan Gilbert, 2005/03/19
- Re: [Patch] Adding examples to the man pages, Paul Eggert, 2005/03/18
- Re: [Patch] Adding examples to the man pages, James Youngman, 2005/03/19
- Re: [Patch] Adding examples to the man pages, Dr. David Alan Gilbert, 2005/03/19
- Re: [Patch] Adding examples to the man pages, Paul Eggert, 2005/03/20
- Re: [Patch] Adding examples to the man pages, Dr. David Alan Gilbert, 2005/03/28