Lines Matching refs:grep

2 	* src/grep.c: Don't fail if we don't have an stdout fd and -q
4 * src/grep.c: Don't hang forever if fed with an empty string to
5 grep for and --color enabled
6 * src/grep.c: Fix infinite loop on
7 echo "1 one" | grep -E "[0-9]*" -o
8 echo "1 one" | grep -E "[0-9]*" --color
10 * src/grep.c, src/Makefile.am, configure.in: Add patch from
26 egrep and fgrep links to grep and set matcher based on
29 * src/grep.c: (prline) Add fix for -i --color from
35 * Makefile.cvs, grep.spec: Add packaging tools
37 * src/grep.c: Added conditional compilation for DJGPP
45 * doc/grep.texi, doc/grep.1, NEWS: Document --label
47 * po/grep.pot: Sync with source
50 * src/grep.c: Add --label, based on patch from Stepan Koltsov
56 * src/grep.c: Add --only-matching (-o) switch (see NEWS)
57 * doc/grep.texi, doc/grep.1, NEWS: Document changes
64 * src/grep.c: Add --color={always,never,tty} argument (like in ls)
65 * src/grep.c: Turn off blinking in the default colorization
66 * src/grep.c: Add --devices (-D) switch (analogous to --directories)
67 * src/dfa.c: Fix an i18n bug: echo "A" | grep '[A-Z0-9]' wouldn't work
79 * doc/grep.texi, doc/grep.1, NEWS: Document changes
81 * src/dfa.c, src/grep.c: Add vim modelines
89 * doc/grep.1: Warn that grep insert a "--" between groups of matches,
91 * doc/grep.texi: Likewised.
95 * doc/grep.texi: Point out that some Platforms do not support
107 grep-2.5e.de.po grep-2.5e.el.po grep-2.5e.eo.po grep-2.5e.es.po
108 grep-2.5e.et.po grep-2.5e.fr.po grep-2.5e.gl.po grep-2.5e.it.po
109 grep-2.5e.pl.po grep-2.5e.sl.po
113 * src/grep.c: Fix all uses of error to pass a proper format
118 * grep/src/grep.c (usage): Typos corrected.
124 a small bug in the GNU grep 2.4.2, which may have gone unnoticed
132 "grep -r foo dir_name" fails with ENOMEM (from malloc() within
135 * grep/src/grep.c (grepdir): Remove the (unsigned) cast when calling
141 * grep/doc/grep.texi: In Bugs report use {n,m} for consistency.
142 * grep/doc/grep.1: Likewised.
204 * src/grep.c (fillbuf): Fix storage allocation performance
210 * src/grep.c (fillbuf): Avoid unnecessary division by 2.
216 * src/grep.c (context_length_arg): error () passing wrong format.
278 * src/grep.c (fatal): Function removed, using error () from
370 * src/grep.c (main): Took the GNU tar code to handle
425 * doc/grep.texi: Document the new options and the new behaviour
441 # Re: grep -e '\(a\)\1' -e '\(b\)\1'
447 GNU grep currently does not issue
449 grep -e '[' -e ']'
450 grep '[
455 To overcome those problems, grep no longer pass the concatenate
472 # tail -f logfile | grep important | do_something_urgent
473 # tail -f logfile | grep important | do_something_taking_very_long
474 If grep does full buffering in these cases then the urgent operation
477 This is clearly spoken not grep's fault in the first place, but libc's.
482 * src/grep.c (line_buffered): new option variable.
486 and breaks grep -z.
517 # find . -name "*.c" | xargs grep main {}
518 # grep --include=*.c main .
519 # find . -not -name "*.c" | xargs grep main {}
520 # grep --exclude=*.c main .
522 * src/grep.c (short_options): -R equivalent to -r.
528 Removed 'always|never|auto' arguments, not necessary for grep.
532 * doc/grep.texi: Document, new options.
533 * doc/grep.man: Document, new options.
537 * src/grep.c (long_options): Added equivalent to -r with -R.
538 * src/grep.c (usage): added --color and --colour.
545 * src/grep.c: New option --color.
557 * doc/grep.texi: Typo fixes.
561 * doc/grep.texi (Usage): Talk about what "grep -r hello *.c"
600 * src/grep.c (grepdir): Don't look at st_dev when testing for
612 * src/grep.c (grepfile): Use isdir instead of doing it inline.
625 * src/grep.c (main): POSIX.2 says that -q overrides -l, which
626 in turn overrides the other output options. Fix grep to
636 * src/grep.c (ubuffer, bufsalloc, PREFERRED_SAVE_FACTOR, page_alloc):
647 (prtext, grep): Speed up by relying on the newline sentinel before the
649 (grep): When looking backwards for the last newline in a buffer,
660 * src/grep.c (totalcc, totalnl): Use uintmax_t, not off_t.
662 (nlscan, prline, grep): Use it to check line and byte count overflows.
663 (nlscan, grep): Don't keep track of counts when not asked to; this
673 * src/grep.c (main): Fix bug: -x and -w matched even when no
675 * tests/empty.sh: Test for -x and -w bug in grep 2.4.2.
679 POSIX.2 conformance fixes: grep -q now exits with status zero
681 grep -s no longer affects exit status.
683 * src/grep.c (suppress_errors): Move definition earlier so
689 (grep, grepfile, grepdir): Invoke suppressible_error.
692 * doc/grep.1, doc/grep.texi, NEWS:
728 * src/grep.c (undossify_input, fillbuf, dosbuf.c, prline, main):
747 * doc/grep.1, doc/grep.texi, NEWS: -C now requires an operand.
748 * src/grep.c (short_options, long_options, main, usage): Likewise.
765 * src/grep.c (nlscan, prpending, prtext, grepbuf): Do not
775 * src/grep.c (struct stats.parent, long_options, grepdir,
777 prpending, prtext, grepbuf, grep, grepfile, grepdir): Likewise.
778 * src/grep.h (struct matcher.compile, struct matcher.execute):
790 * src/grep.c (execute): Likewise.
791 * src/grep.h (execute): Likewise.
821 * src/grep.h (matchers): Use fixed name size, not pointer (as
827 * src/grep.c (reset): No longer need kludge for dfaexec. Simplify.
840 * src/grep.c (ck_atoi, usage, error, setmatcher,
843 print_offset_sep, nlscan, grep, grepfile): Likewise.
854 * doc/grep.1, doc/grep.texi, NEWS: Improve the explanation of
872 * src/grep.c: Include xstrtol.h.
894 * NEWS, doc/grep.1, doc/grep.texi: Change --pcre to --perl-regexp.
895 * src/grep.c (long_options, usage): Likewise.
897 * doc/grep.1, doc/grep.texi: Remove pgrep program.
901 * src/grep.c (main): Rename matcher from "pgrep" to "perl".
916 by newlines; this is for consistency with grep and egrep.
935 * src/grep.c: new short and long option --pcre and -P.
943 * src/grep.c
950 (grep): Print trailing context after the NUMth match when the -m NUM
952 (grep): Added comment. Should have been commented already.
962 * doc/grep.texi, doc/grep.1: Document the change of the -m option.
969 * doc/grep.texi, doc/grep.1: Document it.
970 * src/grep.c (short_options, long_options, main): Add it.
975 (prtext, grepbuf, grep): Don't output more than outleft lines.
1017 * doc/grep.1: Two small glitches(typos).
1027 * doc/grep.1: corrected typo.
1046 * src/grep.c (main): Update copyright notice.
1050 * src/grep.c (usage): The example "%s -i 'hello.*world' could
1061 * src/grep.c (grep): If the final byte of an input file is not
1062 a newline, grep now silently supplies one.
1063 * doc/grep.texi, NEWS: Likewise.
1067 * NEWS, doc/grep.1, doc/grep.texi: Add -I option.
1068 * src/grep.c (short_options, usage, main): Likewise.
1070 * doc/grep.texi: Fix some incorrect references to ASCII.
1074 * doc/grep.1: Simplify synopsis; sort options; mention
1079 * doc/grep.texi:
1099 echo x | grep '[ -~]'
1134 * src/dfa.c, src/dosbuf.c, src/grep.c, src/kwset.c, src/search.c,
1137 * src/grep.c (main): Use int counter for default context,
1157 * NEWS, doc/grep.1, doc/grep.texi: Document it.
1158 * src/grep.c (BINARY_FILES_OPTION): New constant.
1159 (long_options, grep, usage, main): New --binary-files option.
1183 * doc/grep.texi: Minor markup and spelling corrections. Use
1190 doc/grep.texi: Minor fixes and typos corrected.
1195 * src/grep.c (usage): Fix misspelling.
1203 * src/grep.c (prtext): Use out_quiet, not not_text, to decide
1206 (grep): Likewise.
1208 * doc/grep.texi: Tighten up the text, and fix some minor
1217 * src/grep.c: make not_text global to not display text when
1219 * make grep-2.3g available for testing.
1239 * src/grep.c (fillbuf): Don't report buffer size overflow if
1246 * src/grep.c (usage): Give example. Clarify -F.
1251 * doc/grep.texi: Shorten the commentary about egrep and {.
1252 "BSD grep" -> "traditional grep".
1253 * doc/grep.1: Match recent changes to grep.texi.
1257 * NEWS, doc/grep.1, doc/grep.texi: New option --mmap.
1258 * src/grep.c (mmap_option): New variable.
1262 * doc/grep.1: Document -Z or --null.
1266 * doc/grep.texi: Fix texinfo glitches. POSIX -> POSIX.2 where
1275 * src/grep.c (PREFERRED_SAVE_FACTOR): New macro.
1305 * NEWS: egrep is now equivalent to `grep -E'.
1309 * doc/grep.texi: Likewise.
1310 * doc/grep.1: Likewise.
1316 * src/grep.h (default_matcher): Remove.
1317 (matcher): Now exported from ?grepmat.c, not grep.c.
1326 * src/grep.c (short_options): New constant.
1335 Default matcher is "grep".
1342 * tests/bre.tests: grep '\{' is no longer an error.
1344 * tests/ere.tests: grep -E {1 is no longer an error
1354 * src/grep.c (fillbuf): Fix typo: we sometimes reported
1366 * src/grep.c (bufoffset): Needed even if !defined HAVE_MMAP.
1386 * src/grep.c (page_alloc): Reallocate the old buffer instead
1397 * src/grep.c (grepdir):
1450 grep also processed such file names. Here's a proposed patch to do
1451 this, relative to grep 2.3c. This patch introduces two options, one
1457 * NEWS, doc/grep.texi: New -z or --null-data and -Z or --null options.
1458 * src/grep.c (long_options, usage, main): Likewise.
1465 * src/grep.h (eolbyte): New decl.
1466 * src/grep.c (eolbyte): New var.
1467 (nlscan, prpending, prtext, grepbuf, grep): Use it instead of '\n'.
1470 (grep): Look for '\200' as the hallmark of a binary file, not '\0',
1479 * src/grep.c, doc/grep{1,texi} :
1485 * doc/grep.{1,texi}: add description for --with-filename.
1492 * doc/grep.texi: Document GREP_OPTIONS, and the other
1495 * src/grep.c (prepend_args, prepend_default_options): New functions.
1506 * src/grep.c (usage): Don't report -E, -F, and -G unless we're grep.
1507 (main): Don't match options -E, -F, and -G unless we're grep.
1513 * src/grep.c (main): Print the name of the default matcher instead
1514 of just "grep".
1519 The problem is that grep does not drain its stdin, thus the previous
1530 * src/grep.c : Restrict the use of -E, -F, -G
1531 to only grep driver, Posix behaviour. {f,e}grep
1535 * doc/grep.{1,texi} : -C takes arguments, upgrade manual.
1548 The btowc.c shipped with grep 2.3 is incorrect for Solaris
1556 UTF8 is not supported. Hence there's no point to having grep
1574 silently skipping directories; it was grep 2.1, not grep 2.2.
1619 * src/grep.c [O_BINARY]: Add prototype for undossify_input.
1621 * doc/grep.texi (Introduction): Typo fixed.
1625 * grep-2.2f beta release.
1650 * grep.c: fgrep -NUM not working correctly.
1655 Prevent grep -r from recursing infinitely through directory loops via
1658 * grep.c (struct stats): New type.
1661 (reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg,
1674 intl/localealias.c: When building grep-2.2e using cc on Irix4,
1681 * src/grep.c : Typo in contex -->context
1699 matchers. grep no longer depend on argv[0].
1701 * grep-2.2e beta to test DJGPP port.
1715 * src/grep.c (is_EISDIR): Move defn to system.h.
1749 * src/grep.c : Typo s/infalid/invalid/
1754 * doc/grep.texi: I found and corrected several typos.
1768 * grep/doc/grep.texi : -h is not use for help.
1773 * doc: New directory, grep.1, {e,f}grep.man move here
1774 * doc/grep.texi: New info manual
1782 * grep-2.2d release for beta.
1791 * grep.h (__attribute__): New macro, if not GCC.
1793 * grep.c (usage): Add __attribute__((noreturn)).
1800 * src/grep.c (page_alloc): New function.
1813 * src/grep.c (grepdir): Fix bug: memory freed twice.
1831 * src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the
1846 {e,f,}grepmat.c with link for each grep/fgrep/egrep.
1851 * grep-2.2c on alpha for testing.
1855 * src/grep.1: Fix `Last Change' of output by generating the date
1858 * src/grep.c (is_EISDIR): New macro.
1859 (grep): If -s, suppress errors from trying to read directories.
1863 * src/grep.1: Fix -q -r -s problems; describe BSD grep better.
1865 * src/grep.c (main): Update copyright.
1869 we need to compile grep.c just once.
1877 (EXTRA_DIST): Remove grep.c, regex.c.
1880 * src/grep.h (matcher): Now char const *.
1883 * src/grep.c (matcher): Now char const *.
1890 * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'.
1895 * src/grep.c: The Matcher is not set to argv[0] but
1896 explicitly by a #define MATCHER at compile time default is "grep".
1905 * src/grep.1: update the man pages according to the
1914 * src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B
1926 * src/grep.1 : mention that -s follows POSIX.2 behavior.
1946 * src/grep.1: Describe new options.
1948 * src/grep.c: Include "savedir.h".
1952 (reset, grep): Add file name arg.
1959 (grep): Recurse through directories if the user asks for this.
1974 * src/grep.c (main): Invoke initialize_main first thing.
1978 * NEWS, src/grep.1: Describe new -a and -d options.
1980 * src/grep.c (long_options, usage, main):
1987 (grep): Skip the file if `reset' tells us to.
1993 file is binary as grep.c's grep does.
1998 * grep-2.2 release.
2005 * src/grep.c: ck_atoi () added instead of atoi ().
2021 * src/grep.c: Remove the REGEX part in usage (), it was
2037 * grep-2.1.1c available for testing.
2041 * src/grep.c: (a) The directory check is done too early:
2045 (b) The sh command "grep -l root /etc/passwd /etc/group 0<&-"
2080 * grep-2.1.1b.tar.gz available.
2110 * src/grep.c (usage): Ulrich wrote: "A single printf should
2115 * src/grep.c (usage): Dig out and old patch from
2121 * testing: grep-2.1.1a for testing.
2142 * src/grep.c (usage): change prep.ai.mit.edu for gnu.org.
2146 * src/grep.c (usage): Formating the --help message a bit off.
2149 * src/grep.c (main): When checking conflicting matcher for option -E the
2153 * src/grep.c: Typos and rewording the --help message.
2156 * src/grep.1: The man page wording :
2163 * src/grep.c (main): `-f /dev/null' now specifies no patterns
2170 * Ice storm 98(el nino). Lost grep repository disk,
2173 and start from grep-2.1.
2178 * src/grep.c: For the long options, the problems are:
2191 * src/grep.c: the option "with-filename was not in the arg table.
2196 * src/grep.c: reverse back to greping directories,
2208 * src/grep.1: Fix formatting.
2215 * src/grep.c (fillbuf): Don't warn about mmap failures.
2219 * src/grep.c: added code for -H --with-filename.
2228 * grep-2.1 release.
2232 * grep-2.0f out for testing.
2236 * grep.c : have a nicer format for --version.
2249 * grep.c (long_options) [O_BINARY]: Add DOS-specific options.
2266 mode, so binary files could be grep'ed on MS-DOS and MS-Windows.
2268 HAVE_LC_MESSAGES, to prevent compilation error in grep.c on
2279 * grep.1: Document DOS-specific switches.
2283 * grep-2.0e: available for testing
2285 * grep.c: change LC_MESSAGE to LC_ALL for (LC_CTYPE).
2289 * grep.c: --version: more verbosity (COPYRIGHT).
2290 * grep.c: --help: PATTERN, FILE instead of <pattern>, <file>.
2291 * INSTALL.grep: not necessary removed.
2297 * grep.c: move dcl of struct stat st into "else" where it's used.
2300 * grep.c: totalnl should be %u in printf.
2306 * Makefile.am: corrected an error when installing {f,e}grep.1.
2317 * grep.1: a note to say -l, -L, -q stop on first match.
2320 * grep.c: refuse to scan if the file is a directory.
2330 * grep-20d : available for testing
2334 * grep-2.0c: available for testing
2338 * src/grep.c: Cause grep to fail if `fclose (stdout)' fails.
2341 * grep.c:usage() more consistency in the --help.
2347 For now egrep and fgrep will be copies of grep. A better scheme
2351 * fgrep.man and egrep.man included: They are stubs that call grep.1.
2352 * Makefile.am: modified to install {f,e,}grep[,.1].
2365 * grep-2.0b: make it available for testing.
2369 * src/grep.c usage(): cut the --help in smaller printf()'s
2374 * grep-2.0a: make an alpha available for testing.
2380 * check.sh, scriptgen.awk: fix grep paths.
2382 * change the directory strucure: grep is now in src to comply with
2385 * grep.c version.c [VERSION]: got rid of version.c,
2408 * grep.c: for option -e not counting '\n' for new keys.
2411 * grep.c: for option -f allocating the right count.
2418 * grep.1: various typos.
2424 * grep.c: support for long options.
2437 * grep.c: format incorrect in
2445 * grep.c (S_ISREG): Define if not defined already, for e.g.
2452 * grep.c (memchr): Remove definition.
2456 * grep.c: HAVE_WORKING_MMAP -> HAVE_MMAP.
2459 * dfa.c, kwset.c, grep.c, search.c: Use it instead of duplicating
2462 * grep.c: Include sys/types.h once, instead of three times