https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198725
Bug ID: 198725
Summary: bsdgrep broken -f option since r268799
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 154549
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154549&action=edit
fix for broken -f option in bsdgrep
In r268799 the read_patterns function of grep.c was changed to use getline(3)
instead of fgetln(3).
The necessary change to the add_pattern call parameters is missing which breaks
the -f option.
The NetBSD grep.c (CVS Rev. 1.6) change that was supposed to be imported in
this commit does not contain the mistake.
The test that is supposed to ensure that -f works is unfortunately only run
with GNU grep (unless WITH_BSD_GREP=true is set).
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"