[Bug 12721] New: grep does not implement -e pattern_lists currently
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 29 21:54:18 UTC 2020
https://bugs.busybox.net/show_bug.cgi?id=12721
Bug ID: 12721
Summary: grep does not implement -e pattern_lists currently
Product: Busybox
Version: 1.31.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: bhcopnmeha at big6w.anonbox.net
CC: busybox-cvs at busybox.net
Target Milestone: ---
>From `grep(1p)`:
The pattern_list's value shall consist of one or more patterns separated by
<newline> characters;
Consider the following invocation:
printf "foo\nbar\nbaz\n" | grep -Fv -e "$(printf "foo\nbar\n")"
In accordance with the POSIX man page this should output the following:
baz
This is what GNU grep (for instance) outputs. The busybox implementation
outputs:
foo
bar
baz
Instead. Looking at the implementation this is due to the fact that busybox
does not check for newline in patterns when the -e option is given.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list