📄 changelog
字号:
2002-03-13 Bernhard Rosenkraenzer <bero@redhat.com> * configure.in, m4/regex.m4, m4/malloc.m4, m4/realloc.m4: Don't set LIBOBJS directly, autoconf 2.53 doesn't like it * intl/*: Sync with gettext 0.11 * po/*: Sync with translation project * configure.in, src/Makefile.am: Don't duplicate code - make egrep and fgrep links to grep and set matcher based on application name, suggestion from Guillaume Cottenceau <gc@mandrakesoft.com> * src/grep.c: (prline) Add fix for -i --color from Jim Meyering <meyering@lucent.com> * configure.in: Version 2.5; release2002-01-23 Bernhard Rosenkraenzer <bero@redhat.com> * configure.in: Version 2.5g * Makefile.cvs, grep.spec: Add packaging tools Merge djgpp changes from Andrew Cottrell <anddjgpp@ihug.coml.au>: * src/grep.c: Added conditional compilation for DJGPP * djgpp: remove directory as it is no longer required with DJGPP 2.03 (or 2.04 when released) * README.DOS: Moved djgpp/readme to readme.dos * PATCHES.AC, PATCHES.AM: delete files - redundant * configure.in, Makefile.am: remove djgpp directory from list2002-01-22 Bernhard Rosenkraenzer <bero@redhat.com> * doc/grep.texi, doc/grep.1, NEWS: Document --label * po/ru.po: Sync with translation project * po/grep.pot: Sync with source2002-01-18 Bernhard Rosenkraenzer <bero@redhat.com> * src/grep.c: Add --label, based on patch from Stepan Koltsov2001-11-20 Bernhard Rosenkraenzer <bero@redhat.com> * autogen.sh: Don't hardcode aclocal dir2001-11-19 Bernhard Rosenkraenzer <bero@redhat.com> * src/grep.c: Add --only-matching (-o) switch (see NEWS) * doc/grep.texi, doc/grep.1, NEWS: Document changes * configure.in, lib/Makefile.am: Don't use internal getopt if we're on a system that provides a working getopt function2001-09-25 Bernhard Rosenkraenzer <bero@redhat.com> * configure.in: Detect pcre correctly even when it's in non-standard locations, using pcre-config * src/grep.c: Add --color={always,never,tty} argument (like in ls) * src/grep.c: Turn off blinking in the default colorization * src/grep.c: Add --devices (-D) switch (analogous to --directories) * src/dfa.c: Fix an i18n bug: echo "A" | grep '[A-Z0-9]' wouldn't work in non-C-Locales on systems using current versions of glibc. * AUTHORS: Change maintainer, credit Alain for his work until now * configure.in, m4/decl.m4, m4/dosfile.m4, m4/gettext.m4, m4/init.m4, m4/install.m4, m4/largefile.m4, m4/lcmessage.m4, m4/header.m4, m4/isc-posix.m4, m4/missing.m4, m4/progtest.m4, m4/sanity.m4: Fix build with autoconf 2.5x, retain 2.1x compatibility for now * autogen.sh: Add some crude hacks to make it possible to build with both autoconf 2.5x and 2.1x * acconfig.h: removed (no longer required) * Makefile.am: add cvs-clean target * doc/grep.texi, doc/grep.1, NEWS: Document changes (--color, --devices, -D) * src/dfa.c, src/grep.c: Add vim modelines2001-08-30 Alain Magloire * configure.in: Add gl in ALL_LINGUAS.2001-08-30 Kurt D Schwehr * doc/grep.1: Warn that grep insert a "--" between groups of matches, when using the context options. * doc/grep.texi: Likewised.2001-08-25 Heikki Korpela * doc/grep.texi: Point out that some Platforms do not support reading of directories and silently ignore them.2001-08-21 Alain Magloire * lib/malloc.c: New file: * lib/realloc.c: New file: * lib/Makefile.am: Add malloc.c and realloc.c in EXTRA_DIST.2001-07-31 Alain Magloire * po/*.po: New files from the translation team: grep-2.5e.de.po grep-2.5e.el.po grep-2.5e.eo.po grep-2.5e.es.po grep-2.5e.et.po grep-2.5e.fr.po grep-2.5e.gl.po grep-2.5e.it.po grep-2.5e.pl.po grep-2.5e.sl.po2001-07-31 Andreas Schwab * src/grep.c: Fix all uses of error to pass a proper format string.2001-07-29 Alain Magloire * grep/src/grep.c (usage): Typos corrected. Patches from Santiago Vila.2001-07-29 Alain Magloire David Clissold, wrote: a small bug in the GNU grep 2.4.2, which may have gone unnoticed because it only causes a failure if building on a system with large files enabled (e.g. an "off_t" is a "long long" rather than a "long"). savedir() takes on off_t argument, but in grepdir() the parameter is cast to an (unsigned). Well, if an off_t is larger than an int, the value gets truncated. This would not normally have an effect on a little-endian platform (unless the file is >2GB), but on a big-endian system it will always fail. The external effect is that "grep -r foo dir_name" fails with ENOMEM (from malloc() within savedir()). * grep/src/grep.c (grepdir): Remove the (unsigned) cast when calling savedir(). Patch from David Clissold.2001-07-29 Alain Magloire * grep/doc/grep.texi: In Bugs report use {n,m} for consistency. * grep/doc/grep.1: Likewised. Noted by Steven Lucy.2001-04-27 Isamu Hasegawa * dfa.c (mblen_buf) : New variable contains the amount of remain byte of corresponding multibyte character in the input string. (SKIP_REMAIN_MB_IF_INITIAL_STATE) : Use mblen_buf. (match_anychar) : Use mblen_buf. (match_mb_charset) : Use mblen_buf. (transit_state_consume_1char) : Use mblen_buf. (transit_state) : Use inputwcs to get current (multibyte) character. (dfaexec) : Add initialization of mblen_buf.2001-04-27 Isamu Hasegawa * dfa.c (addtok) : Set appropriate value to multibyte_prop. (dfastate) : Add the initialization of the variable. (dfaexec) : Call transit_state if d->fail may transit by multibyte characters. (transit_state_singlebyte) : Clean up unnecessary code. (transit_state_consume_1char) : Likewise. (transit_state) : Add checking for word and newline.2001-04-19 Isamu Hasegawa * search.c (check_multibyte_string) : Check the case when mbclen == 0.2001-04-11 Isamu Hasegawa * search.c (check_multibyte_string) : Check the head of multibyte characters, and optimize a bit. (EGexecute) : Optimize a bit. (Fexecute) : Fix the index.2001-04-02 Alain Magloire * lib/regex.c: Update from GNU lib C, with the changes provided by Paul Eggert. * lib/posix/regex.h: Likewise.2001-02-17 Paul Eggert Stop trying to support hosts that have nonstandard declarations for mbrtowc and/or mbstate_t. It's not worth the portability hassle. * lib/quotearg.c (mbrtowc, mbsinit): Remove workaround macros for hosts that have mbrtowc but not mbstate_t, as we now insist on proper declarations for both before using mbrtowc.2001-03-18 Alain Magloire * configure.in: Call AC_MBSTATE_T. * Makefile.am: Add mbstate_t.m4 * m4/Makefile.am: Add mbstate_t.m4 * m4/mbstate_t.m4: New m4 macro. * lib/strtol.c: Define CHAR_BITS. Uwe H. Steinfeld, Ruslan Ermilov, Volkert Bochert, noted that mbstate_t was not define for certain platforms.2001-03-18 Paul Eggert * src/grep.c (fillbuf): Fix storage allocation performance bug: buffer was doubling in size in many cases where it didn't have to.2001-03-17 Paul Eggert * src/grep.c (fillbuf): Avoid unnecessary division by 2. Don't check xrealloc return value; it's guaranteed to be nonzero. (fillbuf, grepdir): Use xalloc_die rather than error; it's shorter.2001-03-17 Alain Magloire * src/grep.c (context_length_arg): error () passing wrong format. Spotted by Jim Meyering.2001-03-07 Alain Magloire * README-alpha: Removed reference to GNU tar, add the location of the CVSROOT.2001-03-06 Alain Magloire Only the Regex patterns should be split in an array, patterns[]. The dfa and KWset compiled patterns should remain global and the patterns compiled all at once. * src/search.c: include "error.h" and "xalloc.h" to get prototyping of x*alloc() and error(). (kwsinit): Reverse to previous behaviour and takes no argument. (kwsmusts): Likewised. (Gcompile): For the regex pattern, split them and each pattern is put in different compiled structure patterns[]. The patterns are given to dfacomp() and kwsmusts() as is. (Ecompile): Likewised. (Fcompile): Reverse to the old behaviour of compiling the enire patterns in one shot. (EGexecute): If falling to GNU regex for the matching, loop in the array of compile patterns[] to find a match. (error): Many error () were call with arguments in the wrong order. * tests/file.sh: Simple test to check for pattern in files. Reaction to bug report fired by Greg Louis <glouis@dynamicro.on.ca>2001-03-06 Isamu Hasegawa In multibyte environments, handle multibyte characters as single characters in bracket expressions. * src/dfa.h (mb_char_classes) : new structure. (mbcsets): new variable. (nmbcsets): new variable. (mbcsets_alloc) : new variable. * src/dfa.c (prtok) : handle MBCSET. (fetch_wc): new function to fetch a wide character. (parse_bracket_exp_mb) : new function to handle multibyte character in lex(). (lex): invoke parse_bracket_exp_mb() for multibyte bracket expression. (atom): handle MBCSET. (epsclosure): likewise. (dfaanalyze): likewise. (dfastate): likewise. (match_mb_charset): new function to judge whether a bracket match with a multibyte character. (check_matching_with_multibyte_ops) : handle MBCSET. (dfainit): initialize new variables. (dfafree): free new variables.2001-03-04 Alain Magloire To get more in sync with other GNU utilities like GNU tar and fetish all the supporting functions are now under lib. Thanks to Jim Meyering, Volkert Bochert and Paul Eggert for the code and the reminders. * src/grep.c (fatal): Function removed, using error () from lib/error.c instead. (usage): Copyright updated. (error): Function removed, using error () from lib/error.c instead, adjust prototypes. (prog): Global variable rename to program_name, to work with new lib/error.c. (xrealloc): Removed using lib/xmalloc.c. (xmalloc): Removed using lib/xmalloc.c (main): Register with atexit() to check for error on stdout. * configure.in: Check for atexit(), call jm_MALLOC, jm_RELLOC and jm_PREREQ_ERROR. * tests/bre.awk: Removed the hack to drain the buffer since we always fclose(stdout) atexit. * tests/ere.awk: Likewise. * tests/spencer1.awk: Likewise. * bootstrap/Makefile.try: Update the Makefile to reflect the changes in the new hierarchy. * README-alpha: New File. * m4/realloc.m4: New File. * m4/malloc.m4: New File. * m4/error.m4: New File. * m4/Makefile.am: Updated. * lib: New directory. * lib/Makefile.am: New file. * lib/closeout.c: New file. * lib/closeout.h: New file. * lib/fnmatch.c: New file. * lib/fnmatch.h: New file. * lib/atexit.c: New file. * lib/error.c: New file. * lib/error.h: New file. * lib/quotearg.h: New file. * lib/quotearg.c: New file. * lib/xmalloc.c: New file. * lib/posix: New directory. * lib/posix/Makefile.am: New file. * src/getopt.c: Moved to lib. * src/getopt1.c: Moved to lib. * src/getopt.h: Moved to lib. * src/alloca.c: Moved to lib. * src/exclude.c: Moved to lib. * src/exclude.h: Moved to lib. * src/hard-locale.h: Moved to lib. * src/hard-locale.c: Moved to lib. * src/isdir.c: Moved to lib. * src/mechr.c: Moved to lib. * src/obstack.c: Moved to lib. * src/obstack.h: Moved to lib. * src/regex.c: Moved to lib. * src/regex.h: Moved to lib. * src/posix: Moved to lib. * src/posix/regex.h: Moved to lib. * src/savedir.h: Moved to lib. * src/savedir.c: Moved to lib. * src/stpcpy.c: Moved to lib. * src/strtoul.c: Moved to lib. * src/strtol.c: Moved to lib. * src/strtoull.c: Moved to lib. * src/strtoumax.c: Moved to lib. * src/xstrtol.c: Moved to lib. * src/xstrtol.h: Moved to lib. * src/xstrtoumax.c: Moved to lib.2001-03-01 Isamu Hasegawa Implement the mechanism to match with multibyte characters, and use it for `period' in multibyte environments. * dfa.h (mbps): new variable. * dfa.c (prtok): handle ANYCHAR. (lex): use ANYCHAR for `period' in multibyte environments. (atom): handle ANYCHAR. (state_index): initialize mbps in multibyte environments. (epsclosure): handle ANYCHAR. (dfaanalyze): handle ANYCHAR. (dfastate): handle ANYCHAR. (realloc_trans_if_necessary): new function. (transit_state_singlebyte): new function. (match_anychar): new function. (check_matching_with_multibyte_ops): new function. (transit_state_consume_1char): new function. (transit_state): new function. (dfaexec): invoke transit_state if expression can match with a multibyte character in multibyte environments. (dfamust): handle ANYCHAR.2001-03-01 Alain Magloire * src/exclude.c: New file. * src/exclude.h: New file. * src/grep.c (main): Took the GNU tar code to handle the option --include, --exclude, --exclude-from. Files are check for a match, with exlude_filename (). New option --exclude-from. * src/savedir.c: Call exclude_filename() to check for file pattern exclusion or inclusion. * configure.in: --disable-pcre rename to --disable-perl-regexp.2001-02-25 Alain Magloire * src/dfa.c: Typo corrected. Noted by Isamu Hasegawa. * src/savedir.c: Typos corrected.2001-02-22 Alain Magloire * src/savedir.c (isdir1): New function, calling isdir with the correct pathname.2001-02-19 Isamu Hasegawa Avoid incorrect state transition in multibyte environments. * dfa.h (nmultibyte_prop): new variable. (multibyte_prop): new variable. * dfa.c (addtok): set inputwcs. (dfastate): avoid incorrect state transition in multibyte environments. (dfaexec): likewise.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -