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/