[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: Gecko/20060426 Firefox/

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] -e PATTERN [FILE...]
  grep [OPTIONS] -f FILE [FILE...]


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]