📄 changelog
字号:
* configure.in : Change the configure VC test from 'test x$ac_cv_prog_CC = xcl;' to 'test x"$ac_cv_prog_CC" = xcl;' Email from Joshua R. Poulson.1999-02-23 Paul Eggert Fix porting bug reported by Amakawa Shuhei for SunOS 4.1.4-JL. The btowc.c shipped with grep 2.3 is incorrect for Solaris 2.5.1 and earlier, as it assumes UTF8, which these OSes do not support. Solaris 7 supports btowc, so there's no need to ship a substitute for it. The only questionable case is Solaris 2.6, which lacks btowc but does support UTF8. However, 2.6 supports UTF8 but only as a demonstration (for an English locale!); Japanese Solaris 2.6 users typically use EUC, or sometimes shift-JIS, but they cannot use UTF8 since Japanese UTF8 is not supported. Hence there's no point to having grep substitute a btowc that uses UTF8, as it is either redundant, or it will almost invariably have incorrect behavior. * configure.in (AC_CHECK_HEADERS): Don't set USE_WCHAR. (AC_CHECK_FUNCS): Add btowc, wctype. (AC_REPLACE_FUNCS): Don't replace btowc; our replacement is invariably doing the wrong thing anyway, at least on SunOS/Solaris. Don't bother to check for wctype in -lw, as we don't support wide characters on Solaris 2.5.1 or earlier anyway. * bootstrap/Makefile.try (OBJS): Remove btowc.$(OBJEXT). * src/btowc.c: Removed; no longer needed.1999-02-19 Paul Eggert * NEWS: Fix typo when talking about the old behavior of silently skipping directories; it was grep 2.1, not grep 2.2.1999-02-15 Alain Magloire * bootstrap/Makefile.try : add DJGPP DEFS. Done by Elie Zaretsckii.1999-02-14 Alain Magloire * m4/gettext.m4 : Guard [] with changequote. From Elie Zaretskii. * djgpp/config.bat : Makefile.in.in --> Makefile.in-in From Elie Zaretskii. * src/dosbuf: k&r function parameter. * release of 2.3.1999-02-10 Alain Magloire * bootstrap/{Makefile{try,am},REAMDE} : skeleton provided for system lacking the tools to autoconfigure. * src/{e,f,}grepmat.c: added guard [HAVE_CONFIG_H]1999-02-10 Alain Magloire * PATCHES-AC, PATCHES-AM: updated. * m4/regex.m4 : updated.1999-02-05 Eli Zaretskii * m4/gettext.m4 : Support DOS-style D:/foo/bar absolute file names. * aclocal.m4 (DJGPP) : Use $DJ_GPP instead, since changing the latter prevents GCC from finding headers and libraries. * djgpp/config.bat: Make building from another directory work * djgpp/config.sed: Remove redundant command wich edited path separator: now done by configure. * src/grep.c [O_BINARY]: Add prototype for undossify_input. * doc/grep.texi (Introduction): Typo fixed.1999-02-03 Alain Magloire * grep-2.2f beta release.1999-02-02 Alain Magloire * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : New files to aid configuration and unload configure.in. * m4/Makefile.am : updated. * src/btowc.c : protect for wchar.h1999-01-28 Alain Magloire * intl/Makefile.in: Replace .o with .${ac_objext} where necessary. Work around a limitation of Visual C++ on Cygwin32. * acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl. This little hack was suggested by Ian Roxborough <irox@cygnus.com>. Patch forwarded by Ben Elliston.1999-01-28 Alain Magloire * PATCHES-AM: New file. A small patch for automake-1.4, use $(sep) as the path separator base on @SEP@. * PATCHES-AC configure.in : updated for autoconf-13.1999-01-27 Volker Borchert * grep.c: fgrep -NUM not working correctly. add the argument number to digit_args_val.1999-01-22 Paul Eggert Prevent grep -r from recursing infinitely through directory loops via symbolic links. * grep.c (struct stats): New type. (stats_base): New var. (bufstat): Remove; subsumed by stats->stat. (reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg, for directory loop checking; use this instead of the bufstat global. All callers changed. (grepfile): Stat the file before invoking grepdir. (grepdir): Assume that the argument has already been statted. No longer a need for a directory size argument, since it can be gotten from the struct stats * argument. Check for directory loops. Create linked list of directories currently being visited, to detect loops.1998-12-29 Kaveh R. Ghazi intl/localealias.c: When building grep-2.2e using cc on Irix4, I needed the following patch to intl/localealias.c. (Its the same patch used by fileutils-4.0.) The patch resolves conflicts between char* and unsigned char* in the i18n code.1998-12-10 Alain Magloire * src/grep.c : Typo in contex -->context Noted by Vladimir Michl.1998-12-01 Alain Magloire * doc/Makefile.am djgpp/Makefile.am m4/Makefile.am vms/Makefile.am: New files. * m4/progtest.m4: proctect '[]' from m4. Noted by Eli Z. * PATCHES-AC: New file, add the patch for autoconf in the dist. * acconfig.h: (HAVE_DOS_FILENAME) * TODO: updated. * src/search.c: remove obsolete 'gegrep,ggrep,gnugrep' matchers. grep no longer depend on argv[0]. * grep-2.2e beta to test DJGPP port.1998-11-28 Paul Eggert Various portability enhancements: - Don't assume that O_BINARY implies DOS. Use separate macros D_OK (for DOS-like directory access) and HAVE_DOS_FILE_NAMES (for DOS-like file names). - Don't assume that off_t fits into long; it doesn't on Solaris 2.6. - Have is_EISDIR set errno properly on hosts with screwed-up EISDIR. - Treat ':' specially in DOS file names only if it's the end of a drive specifier. - Protect against errno < 0. * src/grep.c (is_EISDIR): Move defn to system.h. (print_offset_sep): New function. (fillbuf): Remove redundant test of O_BINARY. (totalcc, totalnl): Now of type off_t. (prline): Use print_offset_sep to print file offsets. (grepfile): Don't set e to EISDIR; that's is_EISDIR's responsibility on machines that don't work properly with EISDIR. (grepdir): Don't assume ':' means slash on all DOS filenames; it means it only in the file prefix. * src/system.h (strerror): Check for negative error numbers. (is_EISDIR): Depend on D_OK, not O_BINARY. (SET_BINARY): Depend on HAVE_SETMODE, not __DJGPP__. (IS_SLASH, FILESYSTEM_PREFIX_LEN): Depend on HAVE_DOS_FILE_NAMES, not O_BINARY. (CHAR_BIT): New macro. * src/dosbuf.c (struct dos_map): pos and add members are now of type off_t. (dos_stripped_crs): Now of type off_t. (dossified_pos): Now accepts arg and returns value of type off_t. * configure.in (AC_CHECK_FUNCS): Add setmode. (HAVE_DOS_FILENAMES): New macro1998-11-27 Eli Zaretskii * djgpp/config.sed: New file, a Sed script to edit configure script before running it on DOS/Windows. * djgpp/config.bat: Updated to handle po2tbl.sed.in and po/Makefile.in.in on DOS filesystems, and to run config.sed.1998-11-24 Jim Meyering * src/grep.c : Typo s/infalid/invalid/ Also noted by Stanislav Brabec.1998-11-24 Eli Zaretskii * doc/grep.texi: I found and corrected several typos. I believe the GNU standards require the section that describes the options to the programs to be called ``Invoking'' or ``Invoking <program-name>''. This is so users and programs can easily find that node in any Info file. So I changed the name of the `Options' chapter to `Invoking', and corrected the cross-references accordingly. I added some markup to things like file names and options. I added some additional index entries where that seemed useful. I also corrected some index entries, such as "@cindex [:alnum:]", which used a colon in them (the colons confuse Info readers).1998-11-24 Alain Magloire * grep/doc/grep.texi : -h is not use for help. Nit spotted by Jim Meyering.1998-11-23 Alain Magloire * doc: New directory, grep.1, {e,f}grep.man move here * doc/grep.texi: New info manual * doc/version.texi: New * doc/Makefile.am: New * tests/{ere,bre}.*: New files. The spencer2 test is split in two ere/bre. * config.hin: New, config.h.in rename to config.hin for OS with limited file system aka DOS. * grep-2.2d release for beta.1998-11-18 Alain Magloire * src/regex.[ch] : Updated from GLibc, previous patches were integrate by Ulrich Drepper and some added ones.1998-11-16 Paul Eggert * grep.h (__attribute__): New macro, if not GCC. (fatal): Add __attribute__((noreturn)). * grep.c (usage): Add __attribute__((noreturn)).1998-11-16 Paul Eggert Remove memory leak with valloced buffers, by invoking malloc instead. * configure.in (AC_CHECK_FUNCS), src/system.h (valloc): Remove. * src/grep.c (page_alloc): New function. (ubuffer, pagesize): New vars. (ALIGN_TO): New macro. (reset): Initialize new vars. Check for overflow in buffer size calc. Use page_alloc instead of valloc. (fillbuf): Likewise. Use memcpy to copy saved area.1998-11-15 Paul Eggert * dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned.1998-11-14 Paul Eggert * src/grep.c (grepdir): Fix bug: memory freed twice. * src/search.c (Gcompile, Ecompile): Don't invoke dfainit, since dfacomp does it for us, and if we also do it then we leak memory.1998-11-13 Eli Zaretskii * djgpp/config.bat: Rewrite to run the configure script via Bash. * djgpp/config.site, djgpp/getconf: New files. * djgpp/config.h, djgpp/*.mak, djgpp/po2tbl.sed: Remove. * djgpp/README: Update instructions. * Makefile.am (EXTRA_DIST): Update the list of DJGPP files. * src/system.h (IS_SLASH): New macro. (is_EISDIR): Define it here for DOS and Windows. * src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the EOL formats of the input and output files match, unless stdout is the console device. (is_EISDIR): Don't define if already defined. Accept a second argument, the file name; all callers changed. (grepdir): Don't free `file', inside the loop. Use IS_SLASH to check whether `dir' needs a slash. (grepfile): If file is a directory, set e to EISDIR.1998-11-10 Alain Magloire * src/vms_fab.{c,h}: New file for VMS wildcard expansion Written by Phillip C. Brisco. * vms/make.com : add line to compile vms_fab.c and {e,f,}grepmat.c with link for each grep/fgrep/egrep. Base on patch send by Phillib C. Brisco.1998-11-09 Alain Magloire * grep-2.2c on alpha for testing.1998-11-09 Paul Eggert * src/grep.1: Fix `Last Change' of output by generating the date from the RCS Id. * src/grep.c (is_EISDIR): New macro. (grep): If -s, suppress errors from trying to read directories. (grepfile): Use is_EISDIR to simplify code. (grepdir): If -s, suppress errors from trying to read directories. * src/grep.1: Fix -q -r -s problems; describe BSD grep better. * src/grep.c (main): Update copyright. Specify default matcher with default_matcher extern var, not DEFAULT_MATCHER macro. This is more straightforward and means we need to compile grep.c just once. * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c: New files. * src/Makefile.am (base_sources): New macro. (egrep_SOURCES, fgrep_SOURCES, grep_SOURCES): Now consist of $(base_sources) plus the single tailoring file. (grep_LDADD, egrep_LDADD, fgrep_LDADD): Remove. (EXTRA_DIST): Remove grep.c, regex.c. (fgrep.o, egrep.o): Remove. * src/grep.h (matcher): Now char const *. (default_matcher): New decl. * src/grep.c (matcher): Now char const *. (setmatcher): Now accepts char const *. (main): Default the matcher from default_matcher (linked externally) rather than DEFAULT_MATCHER (a macro).1998-11-08 Alain Magloire * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'. Nit from Paul Eggert.1998-11-06 Alain Magloire * src/grep.c: The Matcher is not set to argv[0] but explicitly by a #define MATCHER at compile time default is "grep". * aclocal/: NEW dir. provides our own *.m4 * configure.in: Move Paul's Large Files to AC_LFS.(aclocal/lfs.m4) Taken from Jim Meyering fileutils.1998-11-05 Alain Magloire * src/grep.1: update the man pages according to the changes make by Miles. * po/*.po: updated. * first beta release for 2.3 (2.2a).1998-11-04 Miles Bader * src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B options, and allow -C to hav
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -