and back into the general case.
checks are not necessary. It may be prudent, at this time, to redevelop the build system based on autoconf.
Signed-off-by: James P. Howard, II <email@example.com>
necessary since grep.h includes it but also replaces that include with an include to <limits.h> for portability, or something approaching it.
… few updates to follow;
using regcomp() instead of fastcomp(). ok millert@
which may be NULL (e.g. -e ''). - let add_pattern() decide how to deal with empty patterns, don't do magic in read_patterns(). This unbreaks stuff like grep -e '', and makes grep -f <file> more POSIX compliant. Semantics for grep -f /dev/null (or any other empty file) may be questionable, but this case isn't specified by POSIX, and matching nothing at all seems to be sane. Thanks to otto@, who mentioned potential problems related to the -x option with the first patch i sent. ok jaredy@ (some time ago), otto@, millert@
before processing each file to avoid printing lines intended from the previous file. Reported and fix by Charles Longeau <firstname.lastname@example.org> via tech@. ok otto millert
spotted by hshoexer@
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
…says. Report by Ralf dot Wildenhues at gmx dot de; testing by jmc@ ok beck@ millert@
Benjamin Pineau in PR 5008; ok weingart@
delayed so options that affect pattern-building (such as -w) can be applied evenly to all such patterns. ok and help otto, ok millert
using the -w option with parentheses, to avoid operators in the expressions binding to the markers. Compare [[:<:]]foo|bar[[:>:]] and [[:<:]](foo|bar)[[:>:]]. Problem spotted by aaron@; ok millert@ aaron@ jaredy@
gzseek(f, 0L, SEEK_CUR) does not work as expected. Instead test the underlying stream and remember that. This repairs echo foo | gzip | zgrep foo. Problem spotted by Han Boetes in PR 4089; ok millert@
people instead to re_format.7: there is now a list of EREs there;