On Wed, 17 Mar 2010 10:10:08 -0700 Glenn Skinner wrote: > It's typical for man pages for grep variants to have a subsection > called "REGULAR EXPRESSIONS" whose contents lay out the rules for the > syntax of the REs the utility accepts and of how matching works. I'm > looking for something similar here. (Some questions I'd hope the > section would answer: What are the precedences of the '&' and '!" > operators? When the '&' operator is used, if there's more than one > common substring matched by its left and right hand operands, which > one wins? Can precedences be overridden by using parentheses to group > sub-expressions?)
I'll put something together it's basically extended regular expressions with some additions can the description be a pointer to the extended description plus details on the additions? > Just to make sure I understand, if neither of -h nor -H is given, > xgrep will only include file names when there's more than one file > named on the command line. If one of -h or -H is given, it > unconditionally (respectively) doesn't or does include them. Do I > have that right? (If so, it would be good if the man page were to > state this behavior explicitly.) correct I'll add the default behavior to DESCRIPTION > >> If conflicting options are given on the command line, which one > >> wins? The > >> first, the last, is it an error? > > > > Should be an error unless POSIX defines it else for this option. > Your answer is ambiguous. I'd like a definite answer. (I'm pushing > on this one because "last one wins" is useful for defining aliases; > the alias definition includes one of a pair of conflicting options, > but an invocation of the alias can still override by explicitly > mentioning the other option of the pair.) last one, left to right, wins -- "alias friendly" is the ast default -- Glenn Fowler -- at&t Research, Florham Park NJ --