[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #16635] synopsis on man page shows pattern as optional
From: |
Paul Eggert |
Subject: |
[bug #16635] synopsis on man page shows pattern as optional |
Date: |
Sat, 20 May 2006 17:34:12 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 |
Follow-up Comment #1, bug #16635 (project grep):
> grep [OPTIONS] [-e] PATTERN [FILE...]
> grep [OPTIONS] -f FILE [FILE...]
That would imply that -e is an option without an argument, which
isn't right either.
> But in fact GNU grep allows -e and -f together, and even mutiple -e's and
> -f's
That's OK. They're all instances of OPTIONS.
> grep [OPTIONS] [-e] PATRN [-e PATRN]... [-f FILE]... FILE...]
That's confusing, and won't work if POSIXLY_CORRECT.
How about this synopsis instead?
grep [OPTIONS] PATTERN [FILE...]
grep [OPTIONS] -e PATTERN [FILE...]
grep [OPTIONS] -f FILE [FILE...]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16635>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/