ChangeLog revision 56915
156915Sru2000-01-28 Alain Magloire 256915Sru 356915Sru * src/grep.c (usage): The example "%s -i 'hello.*world' could 456915Sru lead to confusion when progname is 'fgrep. 556915Sru Noted by Akim Demaille. 656915Sru 756915Sru * configure.in: Reenable, jm_INCLUDE_REGEX() since we now 856915Sru track GNU lib C. 956915Sru * src/Makefile.am: EXTRA_DIST new macros with regex.c regex.h. 1056915Sru Requested By Ulrich Drepper. 1156915Sru 1256915Sru2000-01-25 Paul Eggert 1356915Sru 1456915Sru * src/grep.c (grep): If the final byte of an input file is not 1556915Sru a newline, grep now silently supplies one. 1656915Sru * doc/grep.texi, NEWS: Likewise. 1756915Sru 1856915Sru2000-01-25 Paul Eggert 1956915Sru 2056915Sru * NEWS, doc/grep.1, doc/grep.texi: Add -I option. 2156915Sru * src/grep.c (short_options, usage, main): Likewise. 2256915Sru 2356915Sru * doc/grep.texi: Fix some incorrect references to ASCII. 2456915Sru 2556915Sru2000-01-25 Paul Eggert 2656915Sru 2756915Sru * doc/grep.1: Simplify synopsis; sort options; mention 2856915Sru environment variables; clean up some minor gaffes. 2956915Sru 3056915Sru2000-01-25 Paul Eggert 3156915Sru 3256915Sru * doc/grep.texi: 3356915Sru Fix some errors in description of [:print:] and the like. 3456915Sru 3556915Sru2000-01-23 Paul Eggert 3656915Sru 3756915Sru * src/dfa.c (FETCH, lex): Put brackets around if-body to avoid 3856915Sru GCC warning about ambiguous if-then-else. 3956915Sru 4056915Sru2000-01-23 Paul Eggert 4156915Sru 4256915Sru * src/regex.c (GET_UNSIGNED_NUMBER): Allow only ASCII digits. 4356915Sru * src/dfa.c (ISASCIIDIGIT): New macro. 4456915Sru (lex): Use it instead of ISDIGIT. 4556915Sru 4656915Sru2000-01-23 Paul Eggert 4756915Sru 4856915Sru The bug is that regular expression ranges like [a-z] compare raw 4956915Sru byte codes to the range boundaries, whereas POSIX says that they 5056915Sru should use the current collating sequence instead. For example, 5156915Sru in Solaris 7 with LC_ALL=en_US, the command 5256915Sru echo x | grep '[ -~]' 5356915Sru outputs 'x', but it shouldn't output anything since ' ' and '~' 5456915Sru sort before all letters in that locale. 5556915Sru 5656915Sru * src/regex.c (compile_range): When matching a character 5756915Sru range, use the current collating sequence, as POSIX requires. 5856915Sru * src/dfa.c (lex): Likewise. 5956915Sru 6056915Sru2000-01-20 Alain Magloire 6156915Sru 6256915Sru * tests/Makefile.am (dist-hook): Added new rule to make sure 6356915Sru that the shell scripts have the right permissions. 6456915Sru * src/posix/Makefile.am (EXTRA_DIST): added regex.h in the 6556915Sru distribution. 6656915Sru * THANKS: updated. 6756915Sru 6856915Sru2000-01-18 Alain Magloire 6956915Sru 7056915Sru * Rectification the initial patch to add --binary-file option 7156915Sru was done by Ruslan Ermilov. 7256915Sru 7356915Sru2000-01-17 Paul Eggert 7456915Sru 7556915Sru Sync with sources of fileutils 4.0n, tar 1.13.17, glibc 2.1.3a1. 7656915Sru Convert to ANSI C prototypes (using ansi2knr for backwards 7756915Sru compatibility), as this makes it easier to sync. 7856915Sru 7956915Sru * configure.in (AC_OBJEXT): Spell in a funny way, to work around 8056915Sru a bug in automake 1.4 with ansi2knr. 8156915Sru (LIBOBJS): Add assignment so that .o files in LIBOBJS are also built 8256915Sru via the ANSI2KNR-filtering rules. 8356915Sru (AC_OUTPUT): Add src/posix/Makefile. 8456915Sru * src/Makefile.am (AUTOMAKE_OPTIONS): Add ansi2knr. 8556915Sru (SUBDIRS): New macro. 8656915Sru * src/ansi2knr.1, src/ansi2knr.c, src/posix/Makefile.am: New files. 8756915Sru * src/dfa.c, src/dosbuf.c, src/grep.c, src/kwset.c, src/search.c, 8856915Sru src/vms_fab.c: 8956915Sru Use prototypes for function definitions. 9056915Sru * src/grep.c (main): Use int counter for default context, 9156915Sru fixing an ANSI portability bug uncovered by the above changes. 9256915Sru 9356915Sru * config.guess, config.sub, install-sh, missing, src/alloca.c, 9456915Sru src/getpagesize.h, src/memchr.c, src/savedir.c, src/savedir.h, 9556915Sru src/stpcpy.c: 9656915Sru Upgrade to latest version from fileutils 4.0n. 9756915Sru 9856915Sru * src/getopt.c, src/getopt.h, src/getopt1.c: Upgrade to latest 9956915Sru version from tar 1.13.17. 10056915Sru 10156915Sru * src/obstack.c, src/obstack.h, src/regex.c, src/regex.h: 10256915Sru Upgrade to glibc 2.1.3 alpha 1, with K&R C portability fix. 10356915Sru * src/posix/regex.h: New file, from glibc 2.1.3 alpha 1. 10456915Sru 10556230Sru2000-01-04 Paul Eggert 10656230Sru 10756230Sru Inititial patch from David O'Brien. 10856230Sru 10956230Sru Add --binary-files option. 11056230Sru * NEWS, doc/grep.1, doc/grep.texi: Document it. 11156230Sru * src/grep.c (BINARY_FILES_OPTION): New constant. 11256230Sru (long_options, grep, usage, main): New --binary-files option. 11356230Sru (binary_files): New var. 11456230Sru * src/system.h (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, CHAR_MAX): 11556230Sru New macros. 11656230Sru (INT_MAX, UCHAR_MAX): Define in terms of TYPE_MAXIMUM. 11756230Sru 11856230Sru2000-01-04 Paul Eggert 11956230Sru 12056230Sru * savedir.c (savedir): Don't store past the end of an array if 12156230Sru name_size is zero and the directory is empty. 12256230Sru Reported by Dima Barsky <dima@pwd.hp.com>. 12356230Sru 12455360Sobrien1999-11-18 Paul Eggert 12555360Sobrien 12655360Sobrien * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a 12755360Sobrien problem with the QNX 4.25 shell, which doesn't propagate exit 12855360Sobrien status of failed commands inside shell assignments. 12955360Sobrien 13055360Sobrien1999-11-13 Eli Zaretskii 13155360Sobrien 13255360Sobrien * doc/grep.texi: Minor markup and spelling corrections. Use 13355360Sobrien @noindent where appropriate. 13455360Sobrien 13555360Sobrien * PATCHES-{AM,AC}: rename to PATCHES.{AM,AC} 13655360Sobrien 13755360Sobrien1999-11-12 Eli Zaretskii 13855360Sobrien 13955360Sobrien doc/grep.texi: Minor fixes and typos corrected. 14055360Sobrien djgpp/README: Updated version. 14155360Sobrien 14255360Sobrien1999-11-07 Paul Eggert 14355360Sobrien 14455360Sobrien * src/grep.c (usage): Fix misspelling. 14555360Sobrien 14655360Sobrien1999-11-07 Paul Eggert 14755360Sobrien 14855360Sobrien Don't assume that the C library has re_set_syntax and friends. 14955360Sobrien * src/Makefile.am (base_sources): Add regex.c, regex.h. 15055360Sobrien (EXTRA_DIST): Remove regex.c, regex.h. 15155360Sobrien 15255360Sobrien * src/grep.c (prtext): Use out_quiet, not not_text, to decide 15355360Sobrien whether to set pending to zero at the end. 15455360Sobrien (not_text): Remove static variable, undoing latest change. 15555360Sobrien (grep): Likewise. 15655360Sobrien 15755360Sobrien * doc/grep.texi: Tighten up the text, and fix some minor 15855360Sobrien spelling and usage errors. Use @enumerate rather than @table 15955360Sobrien @samp, since it's better for Q&A format. Add cross 16055360Sobrien references. 16155360Sobrien 16255360Sobrien1999-11-01 Alain Magloire 16355360Sobrien 16455360Sobrien * src/search.c: Use the more portable [[:alnum:]] 16555360Sobrien to define a word instead of Ascii dependent [0-9A-Za-z] 16655360Sobrien * src/grep.c: make not_text global to not display text when 16755360Sobrien the context switches -A/-B/-C are use on binary files. 16855360Sobrien * make grep-2.3g available for testing. 16955360Sobrien * configure.in: drop support for --without-included-regex. 17055360Sobrien This was generating bogus bug reports, since many GNU/Linux 17155360Sobrien users have different version of glibc. And glibc maintainers 17256230Sru decided to drop k&r support. 17356230Sru 17455360Sobrien1999-11-01 Arnold D. Robbins 17555360Sobrien 17655360Sobrien * regex.c (init_syntax_once): move below definition of 17755360Sobrien ISALNUM etc., then use ISALNUM to init the table, so that 17855360Sobrien the word ops will work if i18n'ed. 17955360Sobrien (SYNTAX): And subscript with 0xFF for Latin-1 characters. 18055360Sobrien 18155360Sobrien1999-10-26 Alain Magloire 18255360Sobrien 18355360Sobrien * src/regex.c: Merge changes from GNU lib C. 18455360Sobrien * Updated the *.po files 18555360Sobrien 18655360Sobrien1999-10-26 Paul Eggert 18755360Sobrien 18855360Sobrien * src/grep.c (fillbuf): Don't report buffer size overflow if 18955360Sobrien newalloc == save and maxalloc == save. This can happen 19055360Sobrien e.g. when reading a large page-aligned file that contains 19155360Sobrien no newlines. 19255360Sobrien 19355360Sobrien1999-10-21 Paul Eggert 19455360Sobrien 19555360Sobrien * src/grep.c (usage): Give example. Clarify -F. 19655360Sobrien Explain exit status more clearly. 19755360Sobrien 19855360Sobrien1999-10-12 Paul Eggert 19955360Sobrien 20055360Sobrien * doc/grep.texi: Shorten the commentary about egrep and {. 20155360Sobrien "BSD grep" -> "traditional grep". 20255360Sobrien * doc/grep.1: Match recent changes to grep.texi. 20355360Sobrien 20455360Sobrien1999-10-11 Paul Eggert 20555360Sobrien 20655360Sobrien * NEWS, doc/grep.1, doc/grep.texi: New option --mmap. 20755360Sobrien * src/grep.c (mmap_option): New variable. 20855360Sobrien (long_options, reset, usage): Add --mmap. 20955360Sobrien Default is now read, not mmap. 21055360Sobrien 21155360Sobrien * doc/grep.1: Document -Z or --null. 21255360Sobrien 21355360Sobrien1999-10-11 Paul Eggert 21455360Sobrien 21555360Sobrien * doc/grep.texi: Fix texinfo glitches. POSIX -> POSIX.2 where 21655360Sobrien appropriate. 21755360Sobrien 21855360Sobrien1999-10-11 Paul Eggert 21955360Sobrien 22055360Sobrien * acconfig.h (ssize_t): New #undef. 22155360Sobrien 22255360Sobrien * configure.in (AC_CHECK_TYPE): Add ssize_t. 22355360Sobrien 22455360Sobrien * src/grep.c (PREFERRED_SAVE_FACTOR): New macro. 22555360Sobrien (reset): If the buffer has already been allocated, set bufsalloc to 22655360Sobrien be bufalloc / PREFERRED_SAVE_FACTOR. This avoids problems when 22755360Sobrien bufsalloc == bufalloc (possible after reading a large binary file). 22855360Sobrien (reset): Use PREFERRED_SAVE_FACTOR instead of magic constant. 22955360Sobrien Do not set bufbeg; nobody uses it. 23055360Sobrien Always set buflim. 23155360Sobrien Check for lseek error. 23255360Sobrien Use SEEK_CUR, not a magic constant. 23355360Sobrien (fillbuf): Return an error indication, not a count. 23455360Sobrien All callers changed. 23555360Sobrien Do not assume ssize_t fits in int. 23655360Sobrien Use PREFERRED_SAVE_FACTOR instead of magic constant. 23755360Sobrien Clean up mmap code. 23855360Sobrien Do not attempt to mmap zero bytes. 23955360Sobrien Check for lseek error. 24055360Sobrien Use SEEK_SET, not a magic constant. 24155360Sobrien Work correctly if read is interrupted. 24255360Sobrien (grepfile): Work correctly if open or close is interrupted. 24355360Sobrien 24455360Sobrien * src/system.h (SEEK_SET, SEEK_CUR): New macros. 24555360Sobrien 24655360Sobrien1999-10-02 Alain Magloire 24755360Sobrien 24855360Sobrien * src/regex.[ch]: upgrade from GNU lib C source tree. 24955360Sobrien 25055360Sobrien * make beta 2.3f available. 25155360Sobrien 25255360Sobrien1999-10-02 Paul Eggert 25355360Sobrien 25455360Sobrien * NEWS: egrep is now equivalent to `grep -E'. 25555360Sobrien The lower bound of an interval is not optional. 25655360Sobrien You can specify a matcher multiple types without error. 25755360Sobrien -u and -U are now allowed on non-DOS hosts, and have no effect. 25855360Sobrien * doc/grep.texi: Likewise. 25955360Sobrien * doc/grep.1: Likewise. 26055360Sobrien Fix some troff bugs that prevented `groff' from rendering the page. 26155360Sobrien 26255360Sobrien * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c (default_matcher): 26355360Sobrien Remove. 26455360Sobrien (matcher): Add. 26555360Sobrien * src/grep.h (default_matcher): Remove. 26655360Sobrien (matcher): Now exported from ?grepmat.c, not grep.c. 26755360Sobrien 26855360Sobrien * src/dfa.c (lex): If { would start an invalid interval specification, 26955360Sobrien treat it as a normal character. 27055360Sobrien Remove (broken) support for {,M} meaning {0,M}. 27155360Sobrien Diagnose bogus intervals like {1,0}. 27255360Sobrien (closure): maxrep is now -1 to indicate no limit, not zero; 27355360Sobrien zero is a valid value for maxrep, meaning an upper bound of zero. 27455360Sobrien 27555360Sobrien * src/grep.c (short_options): New constant. 27655360Sobrien (long_options, main): -u and -U are now supported on Unix, 27755360Sobrien with no effect. 27855360Sobrien (matcher): Removed; now defined by ?grepmat.c. 27955360Sobrien (install_matcher): Renamed from setmatcher. 28055360Sobrien (setmatcher): New function. 28155360Sobrien (usage): Report new, more uniform option scheme. 28255360Sobrien (main): Do not initialize matcher; ?grepmat.c now does this. 28355360Sobrien Rely on setmatcher to catch matcher conflicts. 28455360Sobrien Default matcher is "grep". 28555360Sobrien 28655360Sobrien * src/search.c (matchers): 28755360Sobrien Remove "posix-egrep" matcher; no longer needed. 28855360Sobrien (Ecompile): Likewise. 28955360Sobrien The egrep matcher now has POSIX behavior. 29055360Sobrien 29155360Sobrien * tests/bre.tests: grep '\{' is no longer an error. 29255360Sobrien Fix test for interval too large, and enable it. 29355360Sobrien * tests/ere.tests: grep -E {1 is no longer an error 29455360Sobrien Likewise for a{1, a{1a, a{1a}, a{1,x}. 29555360Sobrien 29655360Sobrien1999-09-22 Paul Eggert 29755360Sobrien 29855360Sobrien * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC 29955360Sobrien 2.95.1 bug with HP-UX 10.20. 30055360Sobrien 30155360Sobrien1999-09-12 Paul Eggert 30255360Sobrien 30355360Sobrien * src/grep.c (fillbuf): Fix typo: we sometimes reported 30455360Sobrien arithmetic overflow even when there wasn't any. 30555360Sobrien 30655360Sobrien1999-09-12 Paul Eggert 30755360Sobrien 30855360Sobrien * configure.in (AC_CHECK_FUNCS): Add memmove. 30955360Sobrien 31055360Sobrien * src/system.h (S_ISREG): New macro. 31155360Sobrien (memmove): Define if ! defined HAVE_MEMMOVE && ! defined memmove, 31255360Sobrien not if !defined STDC_HEADERS. This is needed for SunOS 4.1.4, 31355360Sobrien which defines STDC_HEADERS but lacks memmove. 31455360Sobrien 31555360Sobrien * src/grep.c (bufoffset): Needed even if !defined HAVE_MMAP. 31655360Sobrien (reset): Always fstat the file, since we always need its size if it is 31755360Sobrien regular. 31855360Sobrien Similarly, get the buffer offset of every regular file. 31955360Sobrien Set bufmapped to 0 if the file's initial offset is not a multiple 32055360Sobrien of the page size. 32155360Sobrien (fillbuf): Calculate an upper bound on how much memory we should 32255360Sobrien allocate only for regular files, since we don't know the sizes of 32355360Sobrien other files. 32455360Sobrien Don't bother to check whether the file offset is a multiple of the page 32555360Sobrien size, since we now do that just once in `reset'. 32655360Sobrien When an mmapped area would fall past the end of the file, trim it to 32755360Sobrien just before instead of giving up immediately and doing a `read'; 32855360Sobrien that avoids a worst-case behavior that could read half an mmapped file. 32955360Sobrien Fix bug when computing offsets on hosts that don't have mmap. 33055360Sobrien 33155360Sobrien1999-08-27 Paul Eggert 33255360Sobrien 33355360Sobrien * src/system.h (memmove): New macro. 33455360Sobrien 33555360Sobrien * src/grep.c (page_alloc): Reallocate the old buffer instead 33655360Sobrien of having both old and new buffers active simultaneously. 33755360Sobrien Remove valloc debugging variant, which no longer applies. 33855360Sobrien 33955360Sobrien (fillbuf): Rejigger the buffer allocation mechanism. The old 34055360Sobrien mechanism could allocate more than 10*N bytes for an N-byte 34155360Sobrien file, which was excessive. Check for arithmetic overflow a 34255360Sobrien bit more carefully. 34355360Sobrien 34455360Sobrien1999-08-25 Paul Eggert 34555360Sobrien 34655360Sobrien * src/grep.c (grepdir): 34755360Sobrien Don't assume that st_ino and st_dev must be integers; 34855360Sobrien POSIX.1 allows them to be floating-point (!). 34955360Sobrien 35055360Sobrien * src/vms_fab.h (arr_ptr): `:' -> `;' to fix typo. 35155360Sobrien 35255360Sobrien1999-08-18 Alain Magloire 35355360Sobrien 35455360Sobrien * 2.3e snapshot. 35555360Sobrien 35655360Sobrien1999-08-18 Alain Magloire 35755360Sobrien 35855360Sobrien * src/search.c: On a CRAY J90 system running UNICOS 8.0. 35955360Sobrien Compilation of ./src/search.c failed because the declaration of 36055360Sobrien the variable "regex": 36155360Sobrien static struct re_pattern_buffer regex; 36255360Sobrien conflicted with a previous declaration search.c #includes "system.h", 36355360Sobrien which #includes <stdlib.h>, which declares : 36455360Sobrien extern char *regex __((char *_Re, char *_Subject, ...)); 36555360Sobrien The declaration in search.c is local to that one source file. 36655360Sobrien I just changed its name to something less likely to conflict. 36755360Sobrien (I called it "regexbuf", but you could pick any name you want.) 36855360Sobrien Excerpt email from Dean Kopesky. 36955360Sobrien 37055360Sobrien1999-08-16 Paul Eggert 37155360Sobrien 37255360Sobrien Upgrade large-file support to the version used in tar and 37355360Sobrien textutils. 37455360Sobrien 37555360Sobrien * Makefile.am (ACLOCAL_AMFLAGS): Define to be empty. 37655360Sobrien (M4DIR, ACINCLUDE_INPUTS): New macros. 37755360Sobrien ($(srcdir)/acinclude.m4): New rule. 37855360Sobrien 37955360Sobrien * configure.in (AC_CANONICAL_HOST, AM_C_PROTOTYPES): Add. 38055360Sobrien (AC_SYS_LARGEFILE): Renamed from AC_LFS, for compatibility 38155360Sobrien with what should appear in the next autoconf release. 38255360Sobrien 38355360Sobrien * m4/largefile.m4: Renamed from m4/lfs.m4. 38455360Sobrien 38555360Sobrien * src/ansi2knr.1, src/ansi2knr.c, config.guess, config.sub: 38655360Sobrien New files. config.guess and config.sub ar needed by the new 38755360Sobrien AC_SYS_LARGEFILE. ansi2knr is needed by AM_C_PROTOTYPES, 38855360Sobrien which in turn is needed by the new AC_SYS_LARGEFILE. 38955360Sobrien 39055360Sobrien1999-08-16 Alain Magloire 39155360Sobrien 39255360Sobrien * 2.3d snapshot on ftp server. 39355360Sobrien 39455360Sobrien1999-07-26 Paul Eggert 39555360Sobrien 39655360SobrienSeveral GNU tools have options to process arbitrary file names, even 39755360Sobrienfile names that contain newline characters. These include `find 39855360Sobrien-print0', `perl -0', `sort -z', and `xargs -0'. It'd be handy if GNU 39955360Sobriengrep also processed such file names. Here's a proposed patch to do 40055360Sobrienthis, relative to grep 2.3c. This patch introduces two options, one 40155360Sobrienfor the data, and one for the file names. (Sometimes one wants 40255360Sobriennull-terminated file names in the output, and sometimes one wants to 40355360Sobrienprocess lists of null-terminated strings, and these are orthogonal 40455360Sobrienaxes.) 40555360Sobrien 40655360Sobrien * NEWS, doc/grep.texi: New -z or --null-data and -Z or --null options. 40755360Sobrien * src/grep.c (long_options, usage, main): Likewise. 40855360Sobrien 40955360Sobrien * src/dfa.h (dfasyntax): New eol parameter. 41055360Sobrien * src/dfa.c (eolbyte): New var. 41155360Sobrien (dfasyntax): Set it from new parameter. 41255360Sobrien (lex, dfastat, build_state, dfaexec): Use it instead of '\n'. 41355360Sobrien 41455360Sobrien * src/grep.h (eolbyte): New decl. 41555360Sobrien * src/grep.c (eolbyte): New var. 41655360Sobrien (nlscan, prpending, prtext, grepbuf, grep): Use it instead of '\n'. 41755360Sobrien (filename_mask): New var. 41855360Sobrien (prline, grepfile): Output NUL separator if filename_mask is zero. 41955360Sobrien (grep): Look for '\200' as the hallmark of a binary file, not '\0', 42055360Sobrien if -z or --null-data is specified, since it implies that '\0' is 42155360Sobrien expected as text. 42255360Sobrien 42355360Sobrien * src/search.c (Gcompile, Ecompile): Pass eolbyte to dfasyntax. 42455360Sobrien (EGexecute, Fexecute): Use eolbyte instead of '\n'. 42555360Sobrien 42655360Sobrien1999-06-15 Alain Magloire 42755360Sobrien 42856230Sru * src/grep.c, doc/grep{1,texi} : 42955360Sobrien --revert-match should be --invert-match. 43055360Sobrien Correction proposed by Karl Berry. 43155360Sobrien 43255360Sobrien1999-06-12 Alain Magloire 43355360Sobrien 43455360Sobrien * doc/grep.{1,texi}: add description for --with-filename. 43555360Sobrien Noted missing by UEBAYASHI Masao. 43655360Sobrien 43755360Sobrien1999-03-17 Paul Eggert 43855360Sobrien 43955360Sobrien * NEWS: Add GREP_OPTIONS. 44055360Sobrien 44155360Sobrien * doc/grep.texi: Document GREP_OPTIONS, and the other 44255360Sobrien environment variables. Fix doc for [:blank:], [:cntrl:], [:punct:]. 44355360Sobrien 44455360Sobrien * src/grep.c (prepend_args, prepend_default_options): New functions. 44555360Sobrien (main): Use them to implement GREP_OPTIONS. 44655360Sobrien * src/system.h (getenv): New decl. 44755360Sobrien 44855360Sobrien1999-03-16 Volker Borchert 44955360Sobrien 45055360Sobrien * configure.in: Use case case ... esac for checking Visual C++. 45155360Sobrien When ${CC} contains options it was not recognize. 45255360Sobrien 45355360Sobrien1999-03-07 Paul Eggert 45455360Sobrien 45555360Sobrien * src/grep.c (usage): Don't report -E, -F, and -G unless we're grep. 45655360Sobrien (main): Don't match options -E, -F, and -G unless we're grep. 45755360Sobrien Remove after-the-fact check for options -E, -F, and -G, since 45855360Sobrien they're no longer needed. 45955360Sobrien 46055360Sobrien1999-03-05 Eli Zaretskii 46155360Sobrien 46255360Sobrien * src/grep.c (main): Print the name of the default matcher instead 46356230Sru of just "grep". 46455360Sobrien 46555360Sobrien1999-02-06 Alain Magloire 46655360Sobrien 46755360Sobrien * tests/*.awk : Linux users are seeing "Broken Pipe" on make check. 46855360Sobrien The problem is that grep does not drain its stdin, thus the previous 46955360Sobrien process in the pipeline receives a SIGPIPE. Other shells are silent 47055360Sobrien about this. There is actually no failure, since the broken pipe is 47155360Sobrien expected. You can work around it by changing the pipeline, so that 47255360Sobrien the input is drained, like this: 47355360Sobrien status=`echo 'check' | { ${GREP} -E -e pattern >/dev/null 2>&1; 47455360Sobrien echo $?; cat >/dev/null; }`; if test $status -ne $errnu then ... fi 47556230Sru Excerpt email from Andreas Schwab. 47655360Sobrien 47755360Sobrien1999-02-23 Alain Magloire 47855360Sobrien 47955360Sobrien * src/grep.c : Restrict the use of -E, -F, -G 48055360Sobrien to only grep driver, Posix behaviour. {f,e}grep 48155360Sobrien the matcher is already set. This change may brake 48255360Sobrien scripts, warn in NEWS. 48355360Sobrien 48455360Sobrien * doc/grep.{1,texi} : -C takes arguments, upgrade manual. 48555360Sobrien 48655360Sobrien * beta 2.3a 48755360Sobrien 48855360Sobrien1999-02-23 Alain Magloire 48955360Sobrien 49055360Sobrien * configure.in : Change the configure VC test from 49155360Sobrien 'test x$ac_cv_prog_CC = xcl;' to 'test x"$ac_cv_prog_CC" = xcl;' 49255360Sobrien Email from Joshua R. Poulson. 49355360Sobrien 49455360Sobrien1999-02-23 Paul Eggert 49555360Sobrien 49655360Sobrien Fix porting bug reported by Amakawa Shuhei for SunOS 4.1.4-JL. 49755360Sobrien The btowc.c shipped with grep 2.3 is incorrect for Solaris 49855360Sobrien 2.5.1 and earlier, as it assumes UTF8, which these OSes do not 49955360Sobrien support. Solaris 7 supports btowc, so there's no need to ship 50055360Sobrien a substitute for it. The only questionable case is Solaris 50155360Sobrien 2.6, which lacks btowc but does support UTF8. However, 2.6 50255360Sobrien supports UTF8 but only as a demonstration (for an English 50355360Sobrien locale!); Japanese Solaris 2.6 users typically use EUC, or 50455360Sobrien sometimes shift-JIS, but they cannot use UTF8 since Japanese 50555360Sobrien UTF8 is not supported. Hence there's no point to having grep 50655360Sobrien substitute a btowc that uses UTF8, as it is either redundant, 50755360Sobrien or it will almost invariably have incorrect behavior. 50855360Sobrien 50955360Sobrien * configure.in (AC_CHECK_HEADERS): Don't set USE_WCHAR. 51055360Sobrien (AC_CHECK_FUNCS): Add btowc, wctype. 51155360Sobrien (AC_REPLACE_FUNCS): Don't replace btowc; our replacement is 51255360Sobrien invariably doing the wrong thing anyway, at least on SunOS/Solaris. 51355360Sobrien Don't bother to check for wctype in -lw, as we don't support 51455360Sobrien wide characters on Solaris 2.5.1 or earlier anyway. 51555360Sobrien 51655360Sobrien * bootstrap/Makefile.try (OBJS): Remove btowc.$(OBJEXT). 51755360Sobrien 51855360Sobrien * src/btowc.c: Removed; no longer needed. 51955360Sobrien 52055360Sobrien1999-02-19 Paul Eggert 52155360Sobrien 52255360Sobrien * NEWS: Fix typo when talking about the old behavior of 52355360Sobrien silently skipping directories; it was grep 2.1, not grep 2.2. 52455360Sobrien 52555360Sobrien1999-02-15 Alain Magloire 52655360Sobrien 52755360Sobrien * bootstrap/Makefile.try : add DJGPP DEFS. 52855360Sobrien Done by Elie Zaretsckii. 52955360Sobrien 53055357Sobrien1999-02-14 Alain Magloire 53155357Sobrien 53255357Sobrien * m4/gettext.m4 : Guard [] with changequote. 53355357Sobrien From Elie Zaretskii. 53455357Sobrien 53555357Sobrien * djgpp/config.bat : Makefile.in.in --> Makefile.in-in 53655357Sobrien From Elie Zaretskii. 53755357Sobrien 53855357Sobrien * src/dosbuf: k&r function parameter. 53955357Sobrien 54055357Sobrien * release of 2.3. 54155357Sobrien 54255357Sobrien1999-02-10 Alain Magloire 54355357Sobrien 54455357Sobrien * bootstrap/{Makefile{try,am},REAMDE} : skeleton 54555357Sobrien provided for system lacking the tools to autoconfigure. 54655357Sobrien 54755357Sobrien * src/{e,f,}grepmat.c: added guard [HAVE_CONFIG_H] 54855357Sobrien 54955357Sobrien1999-02-10 Alain Magloire 55055357Sobrien 55155357Sobrien * PATCHES-AC, PATCHES-AM: updated. 55255357Sobrien 55355357Sobrien * m4/regex.m4 : updated. 55455357Sobrien 55555357Sobrien1999-02-05 Eli Zaretskii 55655357Sobrien 55755357Sobrien * m4/gettext.m4 : Support DOS-style D:/foo/bar absolute file 55855357Sobrien names. 55955357Sobrien 56055357Sobrien * aclocal.m4 (DJGPP) : Use $DJ_GPP instead, since changing the 56155357Sobrien latter prevents GCC from finding headers and libraries. 56255357Sobrien 56355357Sobrien * djgpp/config.bat: Make building from another directory work 56455357Sobrien 56555357Sobrien * djgpp/config.sed: Remove redundant command wich edited path 56655357Sobrien separator: now done by configure. 56755357Sobrien 56855357Sobrien * src/grep.c [O_BINARY]: Add prototype for undossify_input. 56955357Sobrien 57055357Sobrien * doc/grep.texi (Introduction): Typo fixed. 57155357Sobrien 57255357Sobrien1999-02-03 Alain Magloire 57355357Sobrien 57455357Sobrien * grep-2.2f beta release. 57555357Sobrien 57655357Sobrien1999-02-02 Alain Magloire 57755357Sobrien 57855357Sobrien * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : 57955357Sobrien New files to aid configuration and unload configure.in. 58055357Sobrien * m4/Makefile.am : updated. 58155357Sobrien * src/btowc.c : protect for wchar.h 58255357Sobrien 58355357Sobrien1999-01-28 Alain Magloire 58455357Sobrien 58555357Sobrien * intl/Makefile.in: Replace .o with .${ac_objext} where necessary. 58655357Sobrien Work around a limitation of Visual C++ on Cygwin32. 58755357Sobrien * acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl. 58855357Sobrien This little hack was suggested by Ian Roxborough <irox@cygnus.com>. 58955357Sobrien Patch forwarded by Ben Elliston. 59055357Sobrien 59155357Sobrien1999-01-28 Alain Magloire 59255357Sobrien 59355357Sobrien * PATCHES-AM: New file. A small patch for automake-1.4, use $(sep) 59455357Sobrien as the path separator base on @SEP@. 59555357Sobrien * PATCHES-AC configure.in : updated for autoconf-13. 59656230Sru 59755357Sobrien1999-01-27 Volker Borchert 59855357Sobrien 59955357Sobrien * grep.c: fgrep -NUM not working correctly. 60055357Sobrien add the argument number to digit_args_val. 60155357Sobrien 60255357Sobrien1999-01-22 Paul Eggert 60355357Sobrien 60455357Sobrien Prevent grep -r from recursing infinitely through directory loops via 60555357Sobrien symbolic links. 60655357Sobrien 60755357Sobrien * grep.c (struct stats): New type. 60855357Sobrien (stats_base): New var. 60955357Sobrien (bufstat): Remove; subsumed by stats->stat. 61055357Sobrien (reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg, 61155357Sobrien for directory loop checking; use this instead of the bufstat global. 61255357Sobrien All callers changed. 61355357Sobrien (grepfile): Stat the file before invoking grepdir. 61455357Sobrien (grepdir): Assume that the argument has already been statted. 61555357Sobrien No longer a need for a directory size argument, since it 61655357Sobrien can be gotten from the struct stats * argument. 61755357Sobrien Check for directory loops. 61855357Sobrien Create linked list of directories currently being visited, 61955357Sobrien to detect loops. 62055357Sobrien 62155357Sobrien1998-12-29 Kaveh R. Ghazi 62255357Sobrien 62355357Sobrien intl/localealias.c: When building grep-2.2e using cc on Irix4, 62455357Sobrien I needed the following patch to intl/localealias.c. 62555357Sobrien (Its the same patch used by fileutils-4.0.) The patch resolves 62655357Sobrien conflicts between char* and unsigned char* in the i18n code. 62755357Sobrien 62855357Sobrien1998-12-10 Alain Magloire 62955357Sobrien 63055357Sobrien * src/grep.c : Typo in contex -->context 63155357Sobrien Noted by Vladimir Michl. 63255357Sobrien 63355357Sobrien1998-12-01 Alain Magloire 63455357Sobrien 63555357Sobrien * doc/Makefile.am djgpp/Makefile.am m4/Makefile.am vms/Makefile.am: 63655357Sobrien New files. 63755357Sobrien 63855357Sobrien * m4/progtest.m4: proctect '[]' from m4. 63955357Sobrien Noted by Eli Z. 64055357Sobrien 64155357Sobrien * PATCHES-AC: New file, add the patch for autoconf in the dist. 64255357Sobrien 64355357Sobrien * acconfig.h: (HAVE_DOS_FILENAME) 64455357Sobrien 64555357Sobrien * TODO: updated. 64655357Sobrien 64755357Sobrien * src/search.c: remove obsolete 'gegrep,ggrep,gnugrep' 64855357Sobrien matchers. grep no longer depend on argv[0]. 64955357Sobrien 65055357Sobrien * grep-2.2e beta to test DJGPP port. 65155357Sobrien 65255357Sobrien1998-11-28 Paul Eggert 65355357Sobrien 65455357Sobrien Various portability enhancements: 65555357Sobrien - Don't assume that O_BINARY implies DOS. Use separate 65655357Sobrien macros D_OK (for DOS-like directory access) and 65755357Sobrien HAVE_DOS_FILE_NAMES (for DOS-like file names). 65855357Sobrien - Don't assume that off_t fits into long; it doesn't on Solaris 2.6. 65955357Sobrien - Have is_EISDIR set errno properly on hosts with screwed-up EISDIR. 66055357Sobrien - Treat ':' specially in DOS file names only if it's the end of a 66155357Sobrien drive specifier. 66255357Sobrien - Protect against errno < 0. 66355357Sobrien 66455357Sobrien * src/grep.c (is_EISDIR): Move defn to system.h. 66555357Sobrien (print_offset_sep): New function. 66655357Sobrien (fillbuf): Remove redundant test of O_BINARY. 66755357Sobrien (totalcc, totalnl): Now of type off_t. 66855357Sobrien (prline): Use print_offset_sep to print file offsets. 66955357Sobrien (grepfile): Don't set e to EISDIR; that's is_EISDIR's responsibility 67055357Sobrien on machines that don't work properly with EISDIR. 67155357Sobrien (grepdir): Don't assume ':' means slash on all DOS filenames; 67255357Sobrien it means it only in the file prefix. 67355357Sobrien 67455357Sobrien * src/system.h (strerror): Check for negative error numbers. 67555357Sobrien (is_EISDIR): Depend on D_OK, not O_BINARY. 67655357Sobrien (SET_BINARY): Depend on HAVE_SETMODE, not __DJGPP__. 67755357Sobrien (IS_SLASH, FILESYSTEM_PREFIX_LEN): Depend on HAVE_DOS_FILE_NAMES, 67855357Sobrien not O_BINARY. 67955357Sobrien (CHAR_BIT): New macro. 68055357Sobrien 68155357Sobrien * src/dosbuf.c (struct dos_map): 68255357Sobrien pos and add members are now of type off_t. 68355357Sobrien (dos_stripped_crs): Now of type off_t. 68455357Sobrien (dossified_pos): Now accepts arg and returns value of type off_t. 68555357Sobrien 68655357Sobrien * configure.in (AC_CHECK_FUNCS): Add setmode. 68755357Sobrien (HAVE_DOS_FILENAMES): New macro 68855357Sobrien 68955357Sobrien1998-11-27 Eli Zaretskii 69055357Sobrien 69155357Sobrien * djgpp/config.sed: New file, a Sed script to edit configure 69255357Sobrien script before running it on DOS/Windows. 69355357Sobrien * djgpp/config.bat: Updated to handle po2tbl.sed.in and 69455357Sobrien po/Makefile.in.in on DOS filesystems, and to run config.sed. 69555357Sobrien 69655357Sobrien1998-11-24 Jim Meyering 69755357Sobrien 69855357Sobrien * src/grep.c : Typo s/infalid/invalid/ 69955357Sobrien Also noted by Stanislav Brabec. 70055357Sobrien 70155357Sobrien1998-11-24 Eli Zaretskii 70255357Sobrien 70355357Sobrien * doc/grep.texi: I found and corrected several typos. 70455357Sobrien I believe the GNU standards require the section that describes the 70555357Sobrien options to the programs to be called ``Invoking'' or ``Invoking 70655357Sobrien <program-name>''. This is so users and programs can easily find 70755357Sobrien that node in any Info file. So I changed the name of the 70855357Sobrien `Options' chapter to `Invoking', and corrected the 70955357Sobrien cross-references accordingly. 71055357Sobrien I added some markup to things like file names and options. 71155357Sobrien I added some additional index entries where that seemed useful. 71255357Sobrien I also corrected some index entries, such as "@cindex [:alnum:]", 71355357Sobrien which used a colon in them (the colons confuse Info readers). 71455357Sobrien 71555357Sobrien1998-11-24 Alain Magloire 71655357Sobrien 71755357Sobrien * grep/doc/grep.texi : -h is not use for help. 71855357Sobrien Nit spotted by Jim Meyering. 71955357Sobrien 72055357Sobrien1998-11-23 Alain Magloire 72155357Sobrien 72255357Sobrien * doc: New directory, grep.1, {e,f}grep.man move here 72355357Sobrien * doc/grep.texi: New info manual 72455357Sobrien * doc/version.texi: New 72555357Sobrien * doc/Makefile.am: New 72655357Sobrien * tests/{ere,bre}.*: New files. The spencer2 test is split 72755357Sobrien in two ere/bre. 72855357Sobrien * config.hin: New, config.h.in rename to config.hin for OS 72955357Sobrien with limited file system aka DOS. 73055357Sobrien 73155357Sobrien * grep-2.2d release for beta. 73255357Sobrien 73355357Sobrien1998-11-18 Alain Magloire 73455357Sobrien 73555357Sobrien * src/regex.[ch] : Updated from GLibc, previous patches were 73655357Sobrien integrate by Ulrich Drepper and some added ones. 73755357Sobrien 73855357Sobrien1998-11-16 Paul Eggert 73955357Sobrien 74055357Sobrien * grep.h (__attribute__): New macro, if not GCC. 74155357Sobrien (fatal): Add __attribute__((noreturn)). 74255357Sobrien * grep.c (usage): Add __attribute__((noreturn)). 74355357Sobrien 74455357Sobrien1998-11-16 Paul Eggert 74555357Sobrien 74655357Sobrien Remove memory leak with valloced buffers, by invoking malloc instead. 74755357Sobrien 74855357Sobrien * configure.in (AC_CHECK_FUNCS), src/system.h (valloc): Remove. 74955357Sobrien * src/grep.c (page_alloc): New function. 75055357Sobrien (ubuffer, pagesize): New vars. 75155357Sobrien (ALIGN_TO): New macro. 75255357Sobrien (reset): Initialize new vars. Check for overflow in buffer size calc. 75355357Sobrien Use page_alloc instead of valloc. 75455357Sobrien (fillbuf): Likewise. Use memcpy to copy saved area. 75555357Sobrien 75655357Sobrien1998-11-15 Paul Eggert 75755357Sobrien 75855357Sobrien * dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned. 75955357Sobrien 76055357Sobrien1998-11-14 Paul Eggert 76155357Sobrien 76255357Sobrien * src/grep.c (grepdir): Fix bug: memory freed twice. 76355357Sobrien 76455357Sobrien * src/search.c (Gcompile, Ecompile): Don't invoke dfainit, 76555357Sobrien since dfacomp does it for us, and if we also do it then we 76655357Sobrien leak memory. 76755357Sobrien 76855357Sobrien1998-11-13 Eli Zaretskii 76955357Sobrien 77055357Sobrien * djgpp/config.bat: Rewrite to run the configure script via Bash. 77155357Sobrien * djgpp/config.site, djgpp/getconf: New files. 77255357Sobrien * djgpp/config.h, djgpp/*.mak, djgpp/po2tbl.sed: Remove. 77355357Sobrien * djgpp/README: Update instructions. 77455357Sobrien 77555357Sobrien * Makefile.am (EXTRA_DIST): Update the list of DJGPP files. 77655357Sobrien 77755357Sobrien * src/system.h (IS_SLASH): New macro. 77855357Sobrien (is_EISDIR): Define it here for DOS and Windows. 77955357Sobrien 78055357Sobrien * src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the 78155357Sobrien EOL formats of the input and output files match, unless stdout is 78255357Sobrien the console device. 78355357Sobrien (is_EISDIR): Don't define if already defined. Accept a second 78455357Sobrien argument, the file name; all callers changed. 78555357Sobrien (grepdir): Don't free `file', inside the loop. Use IS_SLASH to 78655357Sobrien check whether `dir' needs a slash. 78755357Sobrien (grepfile): If file is a directory, set e to EISDIR. 78855357Sobrien 78955357Sobrien1998-11-10 Alain Magloire 79055357Sobrien 79155357Sobrien * src/vms_fab.{c,h}: New file for VMS wildcard expansion 79255357Sobrien Written by Phillip C. Brisco. 79355357Sobrien 79455357Sobrien * vms/make.com : add line to compile vms_fab.c and 79555357Sobrien {e,f,}grepmat.c with link for each grep/fgrep/egrep. 79655357Sobrien Base on patch send by Phillib C. Brisco. 79755357Sobrien 79855357Sobrien1998-11-09 Alain Magloire 79955357Sobrien 80055357Sobrien * grep-2.2c on alpha for testing. 80155357Sobrien 80255357Sobrien1998-11-09 Paul Eggert 80355357Sobrien 80455357Sobrien * src/grep.1: Fix `Last Change' of output by generating the date 80555357Sobrien from the RCS Id. 80655357Sobrien 80755357Sobrien * src/grep.c (is_EISDIR): New macro. 80855357Sobrien (grep): If -s, suppress errors from trying to read directories. 80955357Sobrien (grepfile): Use is_EISDIR to simplify code. 81055357Sobrien (grepdir): If -s, suppress errors from trying to read directories. 81155357Sobrien 81255357Sobrien * src/grep.1: Fix -q -r -s problems; describe BSD grep better. 81355357Sobrien 81455357Sobrien * src/grep.c (main): Update copyright. 81555357Sobrien 81655357Sobrien Specify default matcher with default_matcher extern var, not 81755357Sobrien DEFAULT_MATCHER macro. This is more straightforward and means 81855357Sobrien we need to compile grep.c just once. 81955357Sobrien 82055357Sobrien * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c: New files. 82155357Sobrien 82255357Sobrien * src/Makefile.am (base_sources): New macro. 82355357Sobrien (egrep_SOURCES, fgrep_SOURCES, grep_SOURCES): Now consist of 82455357Sobrien $(base_sources) plus the single tailoring file. 82555357Sobrien (grep_LDADD, egrep_LDADD, fgrep_LDADD): Remove. 82655357Sobrien (EXTRA_DIST): Remove grep.c, regex.c. 82755357Sobrien (fgrep.o, egrep.o): Remove. 82855357Sobrien 82955357Sobrien * src/grep.h (matcher): Now char const *. 83055357Sobrien (default_matcher): New decl. 83155357Sobrien 83255357Sobrien * src/grep.c (matcher): Now char const *. 83355357Sobrien (setmatcher): Now accepts char const *. 83455357Sobrien (main): Default the matcher from default_matcher (linked externally) 83555357Sobrien rather than DEFAULT_MATCHER (a macro). 83655357Sobrien 83755357Sobrien1998-11-08 Alain Magloire 83855357Sobrien 83955357Sobrien * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'. 84055357Sobrien Nit from Paul Eggert. 84155357Sobrien 84255357Sobrien1998-11-06 Alain Magloire 84355357Sobrien 84455357Sobrien * src/grep.c: The Matcher is not set to argv[0] but 84555357Sobrien explicitly by a #define MATCHER at compile time default is "grep". 84655357Sobrien 84755357Sobrien * aclocal/: NEW dir. provides our own *.m4 84855357Sobrien 84955357Sobrien * configure.in: Move Paul's Large Files to AC_LFS.(aclocal/lfs.m4) 85055357Sobrien Taken from Jim Meyering fileutils. 85155357Sobrien 85255357Sobrien1998-11-05 Alain Magloire 85355357Sobrien 85455357Sobrien * src/grep.1: update the man pages according to the 85555357Sobrien changes make by Miles. 85655357Sobrien 85755357Sobrien * po/*.po: updated. 85855357Sobrien 85955357Sobrien * first beta release for 2.3 (2.2a). 86055357Sobrien 86155357Sobrien1998-11-04 Miles Bader 86255357Sobrien 86355357Sobrien * src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B 86455357Sobrien options, and allow -C to have an optional argument. -NUM can 86555357Sobrien now be mixed with -C, and -A, -B always take precedence over 86655357Sobrien -C/-NUM, regardless of order. 86755357Sobrien (long_options): Let -C/--context take an optional argument. 86855357Sobrien 86955357Sobrien1998-11-03 Alain Magloire 87055357Sobrien 87155357Sobrien * src/dfa.c: HP-UX define clrbit/setbit as macros in <sys/param.h> 87255357Sobrien #undef if defined. 87355357Sobrien Fixed by Andreas Ley and Philippe Defert. 87455357Sobrien 87555357Sobrien * src/grep.1 : mention that -s follows POSIX.2 behavior. 87655357Sobrien Noted by Paul Eggert and others. 87755357Sobrien 87855357Sobrien * tests/khadafy.sh: a typo in failure(s). 87955357Sobrien Spotted By Sotiris Vassilopoulos. 88055357Sobrien 88155357Sobrien1998-11-01 Paul Eggert 88255357Sobrien 88355357Sobrien * src/system.h (IN_CTYPE_DOMAIN): New macro. 88455357Sobrien (ISALPHA, ISUPPER, ISLOWER, ISDIGIT, ISXDIGIT, ISSPACE, 88555357Sobrien ISPUNCT, ISALNUM, ISPRINT, ISGRAPH, ISCNTRL): Use 88655357Sobrien IN_CTYPE_DOMAIN instead of isascii. 88755357Sobrien 88855357Sobrien1998-08-18 Paul Eggert 88955357Sobrien 89055357Sobrien Add support for new -r or --recursive (or -d recurse or 89155357Sobrien --directories=recurse) option. 89255357Sobrien 89355357Sobrien * src/Makefile.am (grep_SOURCES): Add savedir.c, savedir.h, stpcpy.c. 89455357Sobrien 89555357Sobrien * src/grep.1: Describe new options. 89655357Sobrien 89755357Sobrien * src/grep.c: Include "savedir.h". 89855357Sobrien (long_options): Add -r or --recursive. 89955357Sobrien (RECURSE_DIRECTORIES): New enum value. 90055357Sobrien (IS_DIRECTORY_ERRNO): Remove. 90155357Sobrien (reset, grep): Add file name arg. 90255357Sobrien (grepdir, grepfile): New functions. 90355357Sobrien (initial_bufoffset): New var. 90455357Sobrien (reset): Initialize it. 90555357Sobrien (fillbuf): Use it. 90655357Sobrien (count_matches, list_files, no_filenames, suppress_errors): New static 90755357Sobrien vars; formerly were local to `main'. 90855357Sobrien (grep): Recurse through directories if the user asks for this. 90955357Sobrien (usage, main): Add new options. 91055357Sobrien (main): Change some local vars to be static, as described above. 91155357Sobrien Move most of the guts into grepfile function. 91255357Sobrien so that it can be recursed through. 91355357Sobrien 91455357Sobrien * configure.in (AC_HEADER_DIRENT, AC_FUNC_CLOSEDIR_VOID): Add. 91555357Sobrien (AC_REPLACE_FUNCS): Add stpcpy. 91655357Sobrien 91755357Sobrien * src/savedir.c, src/savedir.h, src/stpcpy.c: New files; 91855357Sobrien taken from fileutils 3.16u. 91955357Sobrien 92055357Sobrien1998-08-11 Paul Eggert 92155357Sobrien 92255357Sobrien * src/system.h (initialize_main): New macro. 92355357Sobrien * src/grep.c (main): Invoke initialize_main first thing. 92455357Sobrien 92555357Sobrien1998-04-29 Paul Eggert 92655357Sobrien 92755357Sobrien * NEWS, src/grep.1: Describe new -a and -d options. 92855357Sobrien 92955357Sobrien * src/grep.c (long_options, usage, main): 93055357Sobrien New options -d or --directories and -a or --text. 93155357Sobrien (directories, always_text): New variables. 93255357Sobrien (IS_DIRECTORY_ERRNO): New macro. 93355357Sobrien (reset): Now returns value specifying whether to skip this file. 93455357Sobrien Stat the file if either mmap or directory-skipping is possible. 93555357Sobrien Skip the file if it's a directory and we're skipping directories. 93655357Sobrien (grep): Skip the file if `reset' tells us to. 93755357Sobrien (main): If open fails because the file is a directory, and if we're 93855357Sobrien skipping directories, don't report an error. 93955357Sobrien Remove special case for DOS and Windows. 94055357Sobrien 94155357Sobrien * src/dosbuf.c (guess_type): Use the same method for guessing whether a 94255357Sobrien file is binary as grep.c's grep does. 94355357Sobrien There's no longer any need to declare `bp' to be unsigned. 94455357Sobrien 94555357Sobrien1998-04-26 Alain Magloire 94655357Sobrien 94755357Sobrien * grep-2.2 release. 94855357Sobrien 94955357Sobrien * src/dfa.c: Wrong revision was pulled out 95055357Sobrien for beta 2.1.1d. 95155357Sobrien * src/search.c: Wrong revision was pulled out 95255357Sobrien for beta 2.1.1d. 95355357Sobrien 95455357Sobrien * src/grep.c: ck_atoi () added instead of atoi (). 95555357Sobrien Suggestion from Jim Meyering. 95655357Sobrien ck_atoi () pulled from diffutils-2.7, maintained by Paul Eggert. 95755357Sobrien 95855357Sobrien * AUTHORS: Rephrase of some sentences. 95955357Sobrien * README: Rewording. 96055357Sobrien Noted and patched by Joel N. Weber II. 96155357Sobrien 96255357Sobrien1998-04-17 Kaveh R. Ghazi 96355357Sobrien 96455357Sobrien * src/dfa.h: Don't define `const', trust autoconf to handle it. 96555357Sobrien 96655357Sobrien1998-04-16 Alain Magloire 96755357Sobrien 96855357Sobrien * tests/{status,empty}.sh: wrong return status. 96955357Sobrien 97055357Sobrien * src/grep.c: Remove the REGEX part in usage (), it was 97155357Sobrien consider overkill by most. 97255357Sobrien 97355357Sobrien1998-04-14 Eli Zaretskii 97455357Sobrien 97555357Sobrien * djgpp/config.bat: Support file names with multiple dots on all 97655357Sobrien platforms. 97755357Sobrien 97855357Sobrien * djgpp/README: Add instructions about file names illegal on 97955357Sobrien MS-DOS. 98055357Sobrien 98155357Sobrien1998-04-13 Alain Magloire 98255357Sobrien 98355357Sobrien * src/dfa.c: by "popular" demand reverse 98455357Sobrien back to '_' not word-constituent. 98555357Sobrien 98655357Sobrien * grep-2.1.1c available for testing. 98755357Sobrien 98855357Sobrien1998-04-13 Karl Heuer 98955357Sobrien 99055357Sobrien * src/grep.c: (a) The directory check is done too early: 99155357Sobrien logically, if the argument is "-", then it refers to standard 99255357Sobrien input, regardless of whether there's something in the file 99355357Sobrien system answering to "-". 99455357Sobrien (b) The sh command "grep -l root /etc/passwd /etc/group 0<&-" 99555357Sobrien prints "(standard input)" instead of "/etc/passwd", because it 99655357Sobrien mistakenly believes that a named file will never be opened on fd 99755357Sobrien 0. The string "(standard input)" should be based on the file 99855357Sobrien having been originally specified as "-", rather than making 99955357Sobrien assumptions about the fd. 100055357Sobrien (c) the code that calls close(fd) is being done outside of the 100155357Sobrien test for a bad fd. Thus, if the open failed, this code will 100255357Sobrien attempt to close(-1). It should be done inside the "fd != -1" 100355357Sobrien branch. 100455357Sobrien This patch addresses all three of these problems. 100555357Sobrien 100655357Sobrien1998-04-13 Alain Magloire 100755357Sobrien 100855357Sobrien * configure.in: remove the deprecated AC_ISC_POSIX macro. 100955357Sobrien Spotted by Karl Heuer. 101055357Sobrien 101155357Sobrien1998-04-03 Eli Zaretskii 101255357Sobrien 101355357Sobrien * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated from the 101455357Sobrien relevant Makefile.in files. 101555357Sobrien 101655357Sobrien * djgpp/config.bat: Create files in intl directory like the 101755357Sobrien configure script does. 101855357Sobrien 101955357Sobrien1998-03-28 Eli Zaretskii 102055357Sobrien 102155357Sobrien * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated to track 102255357Sobrien changes in respective Makefile.in files. 102355357Sobrien 102455357Sobrien * src/dosbuf.c (guess_type): Avoid running off the end of the 102555357Sobrien buffer. Spotted by Paul Eggert. 102655357Sobrien 102755357Sobrien1998-03-27 Alain Magloire 102855357Sobrien 102955357Sobrien * grep-2.1.1b.tar.gz available. 103055357Sobrien 103155357Sobrien * src/regex.c: CLASS_CHAR_MAX set to 256 instead of 6 103255357Sobrien when WCTYPE and WCHAR are not defined. When class names 103355357Sobrien where bigger then 6, it will not detect an error. 103455357Sobrien example '[[:alphabet:]]'. 103555357Sobrien 103655357Sobrien * Updated the copyright of the files with emacs. 103755357Sobrien With emacs Jim :). 103855357Sobrien 103955357Sobrien1998-03-26 Jim Meyering 104055357Sobrien 104155357Sobrien * src/dfa.c (IS_WORD_CONSTITUENT): Define. 104255357Sobrien (lex): Use IS_WORD_CONSTITUENT, not ISALNUM. 104355357Sobrien Don't special-case '_'. 104455357Sobrien (dfastate): Use IS_WORD_CONSTITUENT, not ISALNUM. 104555357Sobrien (dfaexec): Likewise. 104655357Sobrien 104755357Sobrien1998-03-25 Alain Magloire 104855357Sobrien 104955357Sobrien * tests/warning.sh: typos and replace the echos with 105055357Sobrien a simple cat. 105155357Sobrien Noted By Jim Meyering. 105255357Sobrien 105355357Sobrien * src/regex.c: #undef ISASCII and ISPRINT before defining 105455357Sobrien them(On Solaris it was define). 105555357Sobrien Pattern 'a[[:]:]]b' is an invalid char class and the error 105655357Sobrien from regex was 1(REG_NOMATCH) instead of 2 (REG_ECTYPE). 105755357Sobrien Fix with help from Ulrich Drepper. 105855357Sobrien 105955357Sobrien * src/grep.c (usage): Ulrich wrote: "A single printf should 106055357Sobrien not have more than 900 bytes. For translation reasons the 106155357Sobrien text shouldn't be split in too many pieces since this is 106255357Sobrien tiresome and also does not help to generate a consistent picture." 106355357Sobrien Noted by Ulrich Drepper. 106455357Sobrien * src/grep.c (usage): Dig out and old patch from 106555357Sobrien Franc,ois to explain the regex in usage(). 106655357Sobrien Ideas from Franc,ois Pinard. 106755357Sobrien 106855357Sobrien1998-03-23 Alain Magloire 106955357Sobrien 107055357Sobrien * testing: grep-2.1.1a for testing. 107155357Sobrien 107255357Sobrien * configure.in: Solaris needs '-lw' if we use wchar/wctype 107355357Sobrien functions. 107455357Sobrien * src/btowc.c: New file from GNU libc. Solaris 2.5 don't 107555357Sobrien have it define. 107655357Sobrien * configure.in : check for btowc (). 107755357Sobrien 107855357Sobrien * regex.c: Include <wchar.h> before <wctype.h>, to work around 107955357Sobrien a Solaris 2.5 bug. 108055357Sobrien Patch provided by Paul Eggert. 108155357Sobrien 108255357Sobrien * tests/status.sh: new file to check return status code. 108355357Sobrien * tests/empty.sh: new file to check for empty pattern. 108455357Sobrien * tests/warning.sh: new file to tell where to report errors. 108555357Sobrien 108655357Sobrien * configure.in: If available, prefer support for large files 108755357Sobrien unless the user specified one of the CPPFLAGS, LDFLAGS, or LIBS 108855357Sobrien variables. 108955357Sobrien Done by Paul Eggert. 109055357Sobrien 109155357Sobrien * src/grep.c (usage): change prep.ai.mit.edu for gnu.org. 109255357Sobrien 109355357Sobrien1998-03-18 Alain Magloire 109455357Sobrien 109555357Sobrien * src/grep.c (usage): Formating the --help message a bit off. 109655357Sobrien Noted by William Bader. 109755357Sobrien 109855357Sobrien * src/grep.c (main): When checking conflicting matcher for option -E the 109955357Sobrien matcher was to "egrep" instead of "posix-egrep". 110055357Sobrien Reported by kwzh@gnu.org. 110155357Sobrien 110255357Sobrien * src/grep.c: Typos and rewording the --help message. 110355357Sobrien Reported by Karl Heuer. 110455357Sobrien 110555357Sobrien * src/grep.1: The man page wording : 110655357Sobrien A regular expression matching a single character may be 110755357Sobrien followed by one of several repetition operators: 110855357Sobrien is unclear since 'x(yz)*z' is a valid regex. 110955357Sobrien Remove the "matching a single character". 111055357Sobrien Suggested by Harald Hanche-Olsen. 111155357Sobrien 111255357Sobrien * src/grep.c (main): `-f /dev/null' now specifies no patterns 111355357Sobrien and therfore matches nothing. 111455357Sobrien Reported by Jorge Stolfi. 111555357Sobrien Patched by Paul Eggert. 111655357Sobrien 111755357Sobrien1998-03-10 Alain Magloire 111855357Sobrien 111955357Sobrien * Ice storm 98(el nino). Lost grep repository disk, 112055357Sobrien and my $HOME directory, etc .. 112155357Sobrien Trying to get the emails/patch from dejanews.com 112255357Sobrien and start from grep-2.1. 112355357Sobrien sigh .... 112455357Sobrien 112555357Sobrien1997-11-01 Alain Magloire 112655357Sobrien 112755357Sobrien * src/grep.c: For the long options, the problems are: 112855357Sobrien --file appears in the option table as 'no_argument' 112955357Sobrien instead of 'required_argument'. 113055357Sobrien --files-with-matches is missing from the option table. 113155357Sobrien The help lists '--fixed-strings' as the long option for -F, 113255357Sobrien the table has '--fixed-regexp'. 113355357Sobrien --regexp appears in the option table as 'no_argument' 113455357Sobrien instead of 'required_argument'. 113555357Sobrien --with-filename is missing from the option table. 113655357Sobrien Reported by Grant McDorman and Krishna Sethuraman. 113755357Sobrien 113855357Sobrien1997-10-19 Alain Magloire 113955357Sobrien 114055357Sobrien * src/grep.c: the option "with-filename was not in the arg table. 114155357Sobrien Corrected by Jim Hand. 114255357Sobrien 114355357Sobrien * GNU gettext library from gettext-0.10.32. 114455357Sobrien 114555357Sobrien * src/grep.c: reverse back to greping directories, 114655357Sobrien One could skip the error message by defining 114755357Sobrien SKIP_DIR_ERROR. There is no clear way of doing 114855357Sobrien things, I hope to setle this on the next majore release 114955357Sobrien Thanks Paul Eggert, Eli Zaretskii and gnits for the 115055357Sobrien exchange. 115155357Sobrien 115255357Sobrien * tests/status.sh: add this check to make sure 115355357Sobrien That the return status code is ok. 115455357Sobrien 115555357Sobrien1997-10-10 Andreas Schwab 115655357Sobrien 115755357Sobrien * src/grep.1: Fix formatting. 115855357Sobrien 115955357Sobrien * configure.in: Check for wctype.h, wchar.h, libintl.h and 116055357Sobrien isascii, which are needed for regex.c. 116155357Sobrien 116255357Sobrien1997-10-01 Paul Eggert 116355357Sobrien 116455357Sobrien * src/grep.c (fillbuf): Don't warn about mmap failures. 116555357Sobrien 116655357Sobrien1997-09-7 Alain Magloire 116755357Sobrien 116855357Sobrien * src/grep.c: added code for -H --with-filename. 116955357Sobrien 117055357Sobrien * djgpp/*: patch wrongly apply 117155357Sobrien duplication of text in djgpp/{README,config.h}. 117255357Sobrien Filter djgpp/config.bat with unix2dos. 117355357Sobrien 117455357Sobrien * djgpp/make.mak: beautify 117555357Sobrien From Eli Zaretskii. 117655357Sobrien 117755357Sobrien * grep-2.1 release. 117855357Sobrien 117955357Sobrien1997-09-01 Alain Magloire 118055357Sobrien 118155357Sobrien * grep-2.0f out for testing. 118255357Sobrien 118355357Sobrien * update to GNU gettext library from gettext-0.10.31 118455357Sobrien 118555357Sobrien * grep.c : have a nicer format for --version. 118655357Sobrien Noted by Ulrich Drepper. 118755357Sobrien 118855357Sobrien * obstack.[ch]: updated from GNU C library 118955357Sobrien * configure.in: look for stdlib.h [HAVE_STDLIB_H] 119055357Sobrien Comments from Ulrich Drepper. 119155357Sobrien 119255357Sobrien1997-08-25 Philippe De Muyter <phdm@info.ucl.ac.be> 119355357Sobrien 119455357Sobrien * src/dfa.c (sys/types.h): File included unconditionnaly. 119555357Sobrien 119655357Sobrien1997-08-16 Eli Zaretskii <eliz@is.elta.co.il> 119755357Sobrien 119855357Sobrien * grep.c (long_options) [O_BINARY]: Add DOS-specific options. 119955357Sobrien (fillbuf) [O_BINARY]: For DOS-style text files, strip CR 120055357Sobrien characters at end of line. 120155357Sobrien (prline) [O_BINARY]: Report correct byte offsets, even though CR 120255357Sobrien characters were stripped when reading the file. 120355357Sobrien (usage) [O_BINARY]: Add DOS-specific options. 120455357Sobrien (setmatcher) [HAVE_SETRLIMIT]: Set re_max_failures so that the 120555357Sobrien matcher won't ever overflow the stack. 120655357Sobrien (main) [__MSDOS__, _WIN32]: Handle backslashes and drive letters 120755357Sobrien in argv[0], remove the .exe suffix, and downcase the prgram name. 120855357Sobrien [O_BINARY]: Pass additional DOS-specific options to getopt_long 120955357Sobrien and handle them. Call stat before attempting to open the file, in 121055357Sobrien case it is a directory (DOS will fail the open call for 121155357Sobrien directories). Switch the input descriptor to binary mode, unless 121255357Sobrien it is a terminal device. 121355357Sobrien 121455357Sobrien * system.h [O_BINARY]: Define macros to switch a handle to binary 121555357Sobrien mode, so binary files could be grep'ed on MS-DOS and MS-Windows. 121655357Sobrien [HAVE_SETLOCALE]: Test for HAVE_SETLOCALE instead of 121755357Sobrien HAVE_LC_MESSAGES, to prevent compilation error in grep.c on 121855357Sobrien systems which don't define HAVE_LC_MESSAGES, but have setlocale. 121955357Sobrien 122055357Sobrien * dosbuf.c: New file, functions specific for MS-DOS/MS-Windows. 122155357Sobrien (guess_type, undossify_input, dossified_pos): New functions. 122255357Sobrien 122355357Sobrien * djgpp/config.h, djgpp/config.bat, djgpp/main.mak, djgpp/src.mak, 122455357Sobrien djgpp/po.mak, djgpp/intl.mak, djgpp/tests.mak, djgpp/po2tbl.sed: 122555357Sobrien New files, for building Grep with DJGPP tools for MS-DOS and 122655357Sobrien MS-Windows. 122755357Sobrien 122855357Sobrien * grep.1: Document DOS-specific switches. 122955357Sobrien 123055357Sobrien1997-08-08 Alain Magloire 123155357Sobrien 123255357Sobrien * grep-2.0e: available for testing 123355357Sobrien 123455357Sobrien * grep.c: change LC_MESSAGE to LC_ALL for (LC_CTYPE). 123555357Sobrien Suggested by Jochen Hein. 123655357Sobrien 123755357Sobrien * ABOUT-NLS: updated. 123855357Sobrien * grep.c: --version: more verbosity (COPYRIGHT). 123955357Sobrien * grep.c: --help: PATTERN, FILE instead of <pattern>, <file>. 124055357Sobrien * INSTALL.grep: not necessary removed. 124155357Sobrien * configure.in: --disable-regex rename --without-include-regex. 124255357Sobrien * THANKS: format: first row name, second email. 124355357Sobrien * ChangeLog: format ISO 8601. 124455357Sobrien Reported by Franc,ois Pinard. 124555357Sobrien 124655357Sobrien * grep.c: move dcl of struct stat st into "else" where it's used. 124755357Sobrien Reported by Jim Meyering. 124855357Sobrien 124955357Sobrien * grep.c: totalnl should be %u in printf. 125055357Sobrien Reported by Michael Aichlmay 125155357Sobrien Corrected with guidance from Ulrich Drepper 125255357Sobrien 125355357Sobrien1997-07-24 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 125455357Sobrien 125555357Sobrien * Makefile.am: corrected an error when installing {f,e}grep.1. 125655357Sobrien From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. 125755357Sobrien From Ulrich Drepper <drepper@cygnus.com>. 125855357Sobrien 125955357Sobrien * Many files: use PARAMS instead of __STDC__ for prototypes. 126055357Sobrien From Jim Meyering <meyering@eng.ascend.com>. 126155357Sobrien Patch provided by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. 126255357Sobrien 126355357Sobrien * dfa.[ch]: uses the one in gawk-3.0.3 with the patch from 126455357Sobrien Arnold (see Changelog: July 12 1997) 126555357Sobrien 126655357Sobrien * grep.1: a note to say -l, -L, -q stop on first match. 126755357Sobrien Noted by Andrew Beattie <gaffer@tug.com>. 126855357Sobrien 126955357Sobrien * grep.c: refuse to scan if the file is a directory. 127055357Sobrien This was causing problems on SUNs. If the directory contains 127155357Sobrien a file that could match the pattern, garbage was display. 127255357Sobrien 127355357Sobrien * tests directory: added new set of tests from Henry Spencer 127455357Sobrien regex package. Change the way the tests were done to be more 127555357Sobrien conformant to automake. 127655357Sobrien 127755357Sobrien * configure.in: added --disable-regex for folks with their own fuctions. 127855357Sobrien 127955357Sobrien * grep-20d : available for testing 128055357Sobrien 128155357Sobrien1997-07-18 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 128255357Sobrien 128355357Sobrien * grep-2.0c: available for testing 128455357Sobrien 128555357Sobrien1997-07-17 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 128655357Sobrien 128755357Sobrien * src/grep.c: Cause grep to fail if `fclose (stdout)' fails. 128855357Sobrien From Jim Meyering <meyering@eng.ascend.com>. 128955357Sobrien 129055357Sobrien * grep.c:usage() more consistency in the --help. 129155357Sobrien 129255357Sobrien * egrep, fgrep were links This is in violation of GNU standards: 129355357Sobrien "Please don't make the behavior of a utility depend on the name used 129455357Sobrien to invoke it. It is useful sometimes to make a link to a utility with 129555357Sobrien a different name, and that should not change what it does." 129655357Sobrien For now egrep and fgrep will be copies of grep. A better scheme 129755357Sobrien should be found later. 129855357Sobrien After discussion with Tom Tromey <tromey@cygnus.com>. 129955357Sobrien 130055357Sobrien * fgrep.man and egrep.man included: They are stubs that call grep.1. 130155357Sobrien * Makefile.am: modified to install {f,e,}grep[,.1]. 130255357Sobrien 130355357Sobrien * speed hack for -l, -L: bail out on first match. 130455357Sobrien From Scott Weikart <scott@igc.apc.org>. 130555357Sobrien 130655357Sobrien * *.[ch]: provided prototypes for strict argument checking 130755357Sobrien With the help of Stewart Levin <stew@sep.stanford.edu>. 130855357Sobrien 130955357Sobrien1997-07-16 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 131055357Sobrien 131155357Sobrien * configure.in: typo in the creation of po/Makefile 131255357Sobrien Noted by Volker Borchert bt@teknon.de. 131355357Sobrien 131455357Sobrien * grep-2.0b: make it available for testing. 131555357Sobrien 131655357Sobrien1997-07-15 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 131755357Sobrien 131855357Sobrien * src/grep.c usage(): cut the --help in smaller printf()'s 131955357Sobrien Noted by Ulrich Drepper <drepper@cygnus.com>. 132055357Sobrien 132155357Sobrien1997-07-14 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 132255357Sobrien 132355357Sobrien * grep-2.0a: make an alpha available for testing. 132455357Sobrien 132555357Sobrien1997-07-12 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 132655357Sobrien 132755357Sobrien * run gettextize: added the po directory filled with *.po files. 132855357Sobrien 132955357Sobrien * check.sh, scriptgen.awk: fix grep paths. 133055357Sobrien 133155357Sobrien * change the directory strucure: grep is now in src to comply with 133255357Sobrien gettext.m4. 133355357Sobrien 133455357Sobrien * grep.c version.c [VERSION]: got rid of version.c, 133555357Sobrien it is now define via config.h. 133655357Sobrien 133755357Sobrien * dfa.c: patch to speed up initialization. 133855357Sobrien Arnold Robbins (arnold@gnu.ai.mit.edu). 133955357Sobrien 134055357Sobrien1997-07-09 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 134155357Sobrien 134255357Sobrien * *.c [HAVE_CONFIG_H]: Macro defined. 134355357Sobrien 134455357Sobrien * support for I18N in Makefile.am and configure.in. 134555357Sobrien 134655357Sobrien * update all the string to use gettext(I18N). 134755357Sobrien Help from Franc,ois Pinard previous patch <pinard@IRO.UMontreal.CA>. 134855357Sobrien 134955357Sobrien1997-07-04 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 135055357Sobrien 135155357Sobrien * obstack.[ch]: updated from glibc. 135255357Sobrien Work of Ulrich Drepper <drepper@cygnus.com>. 135355357Sobrien 135455357Sobrien * regex.[ch]: updated from glibc. 135555357Sobrien Work of Ulrich Drepper <drepper@cygnus.com>. 135655357Sobrien 135755357Sobrien * grep.c: for option -e not counting '\n' for new keys. 135855357Sobrien From Mark Waite <markw@mddmew.fc.hp.com>. 135955357Sobrien 136055357Sobrien * grep.c: for option -f allocating the right count. 136155357Sobrien From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>. 136255357Sobrien Mike Heartel (mike@cs.uoregon.edu). 136355357Sobrien 136455357Sobrien * kwset.c (bmexec): Cast tp[-2] to unsigned char before comparing. 136555357Sobrien From Jim Meyering <meyering@asic.sc.ti.com>. 136655357Sobrien 136755357Sobrien * grep.1: various typos. 136855357Sobrien From Keith Bostic <bostic@bsdi.com>. 136955357Sobrien Mike Heartel (mike@cs.uoregon.edu). 137055357Sobrien 137155357Sobrien1997-06-17 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 137255357Sobrien 137355357Sobrien * grep.c: support for long options. 137455357Sobrien patch done by Franc,ois Pinard <pinard@IRO.UMontreal.CA>. 137555357Sobrien 137655357Sobrien * add getopt1.c in Makefile.am. 137755357Sobrien Noted by Franc,ois Pinard <pinard@IRO.UMontreal.CA> 137855357Sobrien 137955357Sobrien * replace getopt.[ch] and add getopt1.c. 138055357Sobrien 138155357Sobrien * kwset.c: undef malloc before define it. 138255357Sobrien Franc,ois Pinard <pinard@IRO.UMontreal.CA>. 138355357Sobrien 138455357Sobrien1997-06-07 Alain Magloire <alainm@rcsm.ee.mcgill.ca> 138555357Sobrien 138655357Sobrien * grep.c: format incorrect in 138755357Sobrien fprintf("%s: warning: %s: %s...", filename, strerror(errno)). 138855357Sobrien Mike Heartel (mike@cs.uoregon.edu). 138955357Sobrien 139055357Sobrien1996-11-19 David J MacKenzie <djm@catapult.va.pubnix.com> 139155357Sobrien 139255357Sobrien * make.com: Set the logical SYS. From rdb@cocamrd.oz.au (Rodney Brown). 139355357Sobrien 139455357Sobrien * grep.c (S_ISREG): Define if not defined already, for e.g. 139555357Sobrien SunOS 4.0.3. 139655357Sobrien 139755357Sobrien * dfa.c (test_bit, set_bit, clear_bit): Renamed from tstbit, 139855357Sobrien setbit, clrbit to avoid conflict with HP-UX sys/param.h macros. 139955357Sobrien 140055357Sobrien * memchr.c: New file, from GNU libc. 140155357Sobrien * grep.c (memchr): Remove definition. 140255357Sobrien * configure.in: Use AC_REPLACE_FUNCS for memchr. 140355357Sobrien 140455357Sobrien * configure.in: Remove unused checks for memalign and unsigned char. 140555357Sobrien * grep.c: HAVE_WORKING_MMAP -> HAVE_MMAP. 140655357Sobrien 140755357Sobrien * system.h: New file. 140855357Sobrien * dfa.c, kwset.c, grep.c, search.c: Use it instead of duplicating 140955357Sobrien portability boilerplate. 141055357Sobrien 141155357Sobrien * grep.c: Include sys/types.h once, instead of three times 141255357Sobrien conditionally. 141355357Sobrien * dfa.c, kwset.c, search.c: Include sys/types.h unconditionally, 141455357Sobrien to always try to get size_t (needed on some old SysV's). 141555357Sobrien 141655357Sobrien * dfa.c: Define strchr in terms of index, not the other way around. 141755357Sobrien * search.c: Use memcpy instead of bcopy. 141855357Sobrien 141955357Sobrien1996-11-15 David J MacKenzie <djm@catapult.va.pubnix.com> 142055357Sobrien 142155357Sobrien * Many files: Update FSF address. 142255357Sobrien Update configuration to use autoconf v2 and automake. 142355357Sobrien 142455357Sobrien1993-05-22 Mike Haertel <mike@cs.uoregon.edu> 142555357Sobrien 142655357Sobrien * Version 2.0 released. 1427