Add BSD grep to the base system and make it our default grep.
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.
TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing
2010-07-22 19:11:57 +00:00
|
|
|
|
$ $FreeBSD$
|
|
|
|
|
$
|
|
|
|
|
$set 1
|
|
|
|
|
$quote "
|
|
|
|
|
1 "(szabv<62>nyos bemenet)"
|
|
|
|
|
2 "bzip2 t<>m<EFBFBD>r<EFBFBD>tett f<>jl nem olvashat<61>"
|
2010-07-29 18:02:57 +00:00
|
|
|
|
3 "ismeretlen %s opci<63>"
|
Add BSD grep to the base system and make it our default grep.
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.
TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing
2010-07-22 19:11:57 +00:00
|
|
|
|
4 "haszn<7A>lat: %s [-abcDEFGHhIiJLlmnOoPqRSsUVvwxZ] [-A sz<73>m] [-B sz<73>m] [-C[sz<73>m]]\n"
|
|
|
|
|
5 "\t[-e minta] [-f f<>jl] [--binary-files=<3D>rt<72>k] [--color=mikor]\n"
|
|
|
|
|
6 "\t[--context[=sz<73>m]] [--directories=m<>velet] [--label] [--line-buffered]\n"
|
|
|
|
|
7 "\t[--null] [minta] [f<>jl ...]\n"
|
2010-07-29 18:02:57 +00:00
|
|
|
|
8 "%s bin<69>ris f<>jl illeszkedik\n"
|
|
|
|
|
9 "%s (BSD grep) %s\n"
|