summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep
Commit message (Collapse)AuthorAgeFilesLines
* - Adjust a comment to actual behaviourgabor2011-04-078-4/+19
| | | | | | | | | - Makefile nit - Add more CVS/SVN keywords to make it easier to track changes from NetBSD in case they add further improvements Approved by: delphij (mentor) Obtained from: The NetBSD Project
* - Simplify the fixed string pattern preprocessing codegabor2011-04-073-11/+12
| | | | | | | - Improve readability Approved by: delphij (mentor) Obtained from: The NetBSD Project
* - Replace some strcpy()-family functions with memcpy() ones. It has beengabor2011-04-071-5/+6
| | | | | | | | | discussed earlier that the extra safeness is not required in these cases and we can avoid the overhead by using the more general memory copy functions. Approved by: delphij (mentor) Obtained from: The NetBSD Project
* Add Simplified Chinese messages for BSD grep.delphij2010-09-202-0/+14
|
* Revert a minor part of revision 211364:delphij2010-08-191-4/+1
| | | | | | | | | | - Imply -h if single file is grepped, this is the GNU behaviour This is already done by code above the change and have caused a regression since this instance of code does not check Hflag. Reported by: davidxu Pointy hat to: delphij
* UTFize my name.des2010-08-196-6/+6
|
* - Refactor file reading code to use pure syscalls and an internal buffergabor2010-08-184-178/+157
| | | | | | | | instead of stdio. This gives BSD grep a very big performance boost, its speed is now almost comparable to GNU grep. Submitted by: Dimitry Andric <dimitry@andric.com> Approved by: delphij (mentor)
* - Revert strlcpy() changes to memcpy() because it's more efficient andgabor2010-08-156-66/+66
| | | | | | | | | | | | | | | | | | | | | | | former may be safer but in this case it doesn't add extra safety [1] - Fix -w option [2] - Fix handling of GREP_OPTIONS [3] - Fix --line-buffered - Make stdin input imply --line-buffered so that tail -f can be piped to grep [4] - Imply -h if single file is grepped, this is the GNU behaviour - Reduce locking overhead to gain some more performance [5] - Inline some functions to help the compiler better optimize the code - Use shortcut for empty files [6] PR: bin/149425 [6] Prodded by: jilles [1] Reported by: Alex Kozlov <spam@rm-rf.kiev.ua> [2] [3], swell.k@gmail.com [2], poyopoyo@puripuri.plala.or.jp [4] Submitted by: scf [5], Shuichi KITAGUCHI <ki@hh.iij4u.or.jp> [6] Approved by: delphij (mentor)
* - Some fixes to Ukranian cataloggabor2010-08-061-2/+2
| | | | Submitted by: avg, Alex Kozlov <spam@rm-rf.kiev.ua>
* Fix spelling.joel2010-07-301-1/+1
|
* - Add Ukranian cataloggabor2010-07-302-0/+13
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
* - Some minor changes to the messages to increase usefulness of error msgsgabor2010-07-2911-52/+38
| | | | | | Reviewed by: hrs (Japanese catalogs), pluknet <pluknet at gmail dot com> (Russian catalog) Approved by: delphij (mentor)
* - Add Japanese NLS catalogsgabor2010-07-294-0/+45
| | | | | Submitted by: hrs Approved by: delphij (mentor)
* - Use the traditional behaviour for filename and directory name inclusiongabor2010-07-296-68/+148
| | | | | | | | | and exclusion patterns [1] - Some improvements on the exiting code, like replacing memcpy with strlcpy/strcpy Approved by: delphij (mentor) Pointed out by: bf [1], des [1]
* - Fix -l and -L by really surpressing output and just showing filenamesgabor2010-07-251-1/+1
| | | | | Submitted by: swell.k@gmail.com Approved by: delphij (mentor)
* - Fix --color behaviour to only output color sequences if stdout is a ttygabor2010-07-253-32/+60
| | | | | | | | | | | | or if forced mode is specified [1] - While here, add some alternative names for the options and make then case-insensitive - Fix -q and -l behaviour [2] - Some small changes to make the code easier to review Submitted by: swell.k@gmail.com [1], dougb [2] Approved by: delphij (mentor)
* Fix crashes when using grep -R:delphij2010-07-232-11/+16
| | | | | | | | - Explicitly pre-zero memory for fts_open parameters. - Don't test against directory patterns when we are testing direct leaf of current directory. While I'm there plug a few of memory leaks.
* - Add Russian catalog [1]gabor2010-07-233-4/+19
| | | | | | | | | - Fix two minor nits in manpage [2] - style.Makefile(5) Submitted by: pluknet <pluknet at gmail.com> [1], Alex Kozlov <spam@rm-rf.kiev.ua> [2] Reviewed by: delphij
* Add BSD grep to the base system and make it our default grep.gabor2010-07-2214-0/+2563
| | | | | | | | | | | | | | | | | | | | | | | | 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
* This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-303-1214/+0
| | | | which included commits to RCS files with non-trunk default branches.
* recording cvs-1.6 file deathpeter1995-12-301-18/+0
|
* Add dependencies on libraries to DPADD. Someday this should be donebde1994-08-281-0/+1
| | | | | | automagically. -lfoo has to be right to work, but ${LIBFO0} is too easy to forget or misspell; nothing checks it and it should be different for shared libraries.
* More merry makefile munging for man page compatability.wollman1994-08-051-1/+1
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-274-0/+1231
OpenPOWER on IntegriCloud