Package: grep
Version: 2.5.1.ds2-4
Severity: normal
The result of this command is undocumented:
echo foo |grep -e foo -e bar -e baz
In fact the manpage and help output both suggest that this will be
rejected, because -e is only allowed once:
grep [options] [-e PATTERN | -f FILE] [FILE...]
(actually, the help output doesn't say that, which is an
inconsistency)
The behaviour seems to be that any of the matches is allowed, similar
to grep -E 'foo|bar|baz'..
On that note, does grep allow matching multiple things, in any order?
As in, the 1-process equivalent of |grep foo|grep bar|grep baz, or
grep -E '(foo.*bar)|(bar.*foo)'.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]