ChangeLog revision 55357
11999-02-14 Alain Magloire
2
3	* m4/gettext.m4 : Guard [] with changequote.
4	From Elie Zaretskii.
5
6	* djgpp/config.bat : Makefile.in.in --> Makefile.in-in
7	From Elie Zaretskii.
8
9	* src/dosbuf: k&r function parameter.
10
11	* release of 2.3.
12
131999-02-10 Alain Magloire
14
15	* bootstrap/{Makefile{try,am},REAMDE} : skeleton
16	provided for system lacking the tools to autoconfigure.
17
18	* src/{e,f,}grepmat.c: added guard [HAVE_CONFIG_H]
19
201999-02-10 Alain Magloire
21
22	* PATCHES-AC, PATCHES-AM: updated.
23
24	* m4/regex.m4 : updated.
25
261999-02-05 Eli Zaretskii
27
28	* m4/gettext.m4 : Support DOS-style D:/foo/bar absolute file
29	names.
30
31	* aclocal.m4 (DJGPP) : Use $DJ_GPP instead, since changing the
32	latter prevents GCC from finding headers and libraries.
33
34	* djgpp/config.bat: Make building from another directory work
35
36	* djgpp/config.sed: Remove redundant command wich edited path
37	separator: now done by configure.
38
39	* src/grep.c [O_BINARY]: Add prototype for undossify_input.
40
41	* doc/grep.texi (Introduction): Typo fixed.
42
431999-02-03 Alain Magloire
44
45	* grep-2.2f beta release.
46
471999-02-02 Alain Magloire
48
49	* m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 :
50	New files to aid configuration and unload configure.in.
51	* m4/Makefile.am : updated.
52	* src/btowc.c : protect for wchar.h
53
541999-01-28 Alain Magloire
55
56	* intl/Makefile.in: Replace .o with .${ac_objext} where necessary.
57	Work around a limitation of Visual C++ on Cygwin32.
58	* acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl.
59	This little hack was suggested by Ian Roxborough <irox@cygnus.com>.
60	Patch forwarded by Ben Elliston.
61
621999-01-28 Alain Magloire
63
64	* PATCHES-AM: New file. A small patch for automake-1.4, use $(sep)
65	as the path separator base on @SEP@.
66	* PATCHES-AC configure.in : updated for autoconf-13.
67 
681999-01-27 Volker Borchert
69
70	* grep.c: fgrep -NUM not working correctly.
71	add the argument number to digit_args_val.
72
731999-01-22 Paul Eggert
74
75	Prevent grep -r from recursing infinitely through directory loops via
76	symbolic links.
77
78	* grep.c (struct stats): New type.
79	(stats_base): New var.
80	(bufstat): Remove; subsumed by stats->stat.
81	(reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg,
82	for directory loop checking; use this instead of the bufstat global.
83	All callers changed.
84	(grepfile): Stat the file before invoking grepdir.
85	(grepdir): Assume that the argument has already been statted.
86	No longer a need for a directory size argument, since it
87	can be gotten from the struct stats * argument.
88	Check for directory loops.
89	Create linked list of directories currently being visited,
90	to detect loops.
91
921998-12-29 Kaveh R. Ghazi
93
94	intl/localealias.c: When building grep-2.2e using cc on Irix4,
95	I needed the following patch to intl/localealias.c.
96	(Its the same patch used by fileutils-4.0.) The patch resolves
97	conflicts between char* and unsigned char* in the i18n code.
98
991998-12-10 Alain Magloire
100
101	* src/grep.c : Typo in contex -->context
102	Noted by  Vladimir Michl.
103
1041998-12-01  Alain Magloire
105
106	* doc/Makefile.am djgpp/Makefile.am m4/Makefile.am vms/Makefile.am:
107	New files.
108
109	* m4/progtest.m4: proctect '[]' from m4.
110	Noted by Eli Z.
111
112	* PATCHES-AC: New file, add the patch for autoconf in the dist.
113
114	* acconfig.h: (HAVE_DOS_FILENAME)
115
116	* TODO: updated.
117
118	* src/search.c: remove obsolete 'gegrep,ggrep,gnugrep'
119	matchers. grep no longer depend on argv[0].
120
121	* grep-2.2e beta to test DJGPP port.
122
1231998-11-28  Paul Eggert
124
125	Various portability enhancements:
126	- Don't assume that O_BINARY implies DOS.  Use separate
127	macros D_OK (for DOS-like directory access) and
128	HAVE_DOS_FILE_NAMES (for DOS-like file names).
129	- Don't assume that off_t fits into long; it doesn't on Solaris 2.6.
130	- Have is_EISDIR set errno properly on hosts with screwed-up EISDIR.
131	- Treat ':' specially in DOS file names only if it's the end of a
132	drive specifier.
133	- Protect against errno < 0.
134
135	* src/grep.c (is_EISDIR): Move defn to system.h.
136	(print_offset_sep): New function.
137	(fillbuf): Remove redundant test of O_BINARY.
138	(totalcc, totalnl): Now of type off_t.
139	(prline): Use print_offset_sep to print file offsets.
140	(grepfile): Don't set e to EISDIR; that's is_EISDIR's responsibility
141	on machines that don't work properly with EISDIR.
142	(grepdir): Don't assume ':' means slash on all DOS filenames;
143	it means it only in the file prefix.
144
145	* src/system.h (strerror): Check for negative error numbers.
146	(is_EISDIR): Depend on D_OK, not O_BINARY.
147	(SET_BINARY): Depend on HAVE_SETMODE, not __DJGPP__.
148	(IS_SLASH, FILESYSTEM_PREFIX_LEN): Depend on HAVE_DOS_FILE_NAMES,
149	not O_BINARY.
150	(CHAR_BIT): New macro.
151
152	* src/dosbuf.c (struct dos_map):
153	pos and add members are now of type off_t.
154	(dos_stripped_crs): Now of type off_t.
155	(dossified_pos): Now accepts arg and returns value of type off_t.
156
157	* configure.in (AC_CHECK_FUNCS): Add setmode.
158	(HAVE_DOS_FILENAMES): New macro
159
1601998-11-27  Eli Zaretskii
161
162	* djgpp/config.sed: New file, a Sed script to edit configure
163	script before running it on DOS/Windows.
164	* djgpp/config.bat: Updated to handle po2tbl.sed.in and
165	po/Makefile.in.in on DOS filesystems, and to run config.sed.
166
1671998-11-24  Jim Meyering
168
169	* src/grep.c : Typo s/infalid/invalid/
170	Also noted by Stanislav Brabec.
171
1721998-11-24  Eli Zaretskii
173
174	* doc/grep.texi: I found and corrected several typos.
175	I believe the GNU standards require the section that describes the
176	options to the programs to be called ``Invoking'' or ``Invoking
177	<program-name>''.  This is so users and programs can easily find
178	that node in any Info file.  So I changed the name of the
179	`Options' chapter to `Invoking', and corrected the
180	cross-references accordingly.
181	I added some markup to things like file names and options.
182	I added some additional index entries where that seemed useful.
183	I also corrected some index entries, such as "@cindex [:alnum:]",
184	which used a colon in them (the colons confuse Info readers).
185
1861998-11-24  Alain Magloire
187
188	* grep/doc/grep.texi : -h is not use for help.
189	Nit spotted by Jim Meyering.
190
1911998-11-23  Alain Magloire
192
193	* doc: New directory, grep.1, {e,f}grep.man move here
194	* doc/grep.texi: New info manual
195	* doc/version.texi: New
196	* doc/Makefile.am: New
197	* tests/{ere,bre}.*: New files. The spencer2 test is split
198	in two ere/bre.
199	* config.hin: New, config.h.in rename to config.hin for OS
200	with limited file system aka DOS.
201
202	* grep-2.2d release for beta.
203
2041998-11-18  Alain Magloire
205
206	* src/regex.[ch] : Updated from GLibc, previous patches were
207	integrate by Ulrich Drepper and some added ones.
208
2091998-11-16  Paul Eggert
210
211	* grep.h (__attribute__): New macro, if not GCC.
212	(fatal): Add __attribute__((noreturn)).
213	* grep.c (usage): Add __attribute__((noreturn)).
214
2151998-11-16  Paul Eggert
216
217	Remove memory leak with valloced buffers, by invoking malloc instead.
218
219	* configure.in (AC_CHECK_FUNCS), src/system.h (valloc): Remove.
220	* src/grep.c (page_alloc): New function.
221	(ubuffer, pagesize): New vars.
222	(ALIGN_TO): New macro.
223	(reset): Initialize new vars.  Check for overflow in buffer size calc.
224	Use page_alloc instead of valloc.
225	(fillbuf): Likewise.  Use memcpy to copy saved area.
226
2271998-11-15  Paul Eggert
228
229	* dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned.
230
2311998-11-14  Paul Eggert
232
233	* src/grep.c (grepdir): Fix bug: memory freed twice.
234
235	* src/search.c (Gcompile, Ecompile): Don't invoke dfainit,
236	since dfacomp does it for us, and if we also do it then we
237	leak memory.
238
2391998-11-13  Eli Zaretskii
240
241	* djgpp/config.bat: Rewrite to run the configure script via Bash.
242	* djgpp/config.site, djgpp/getconf: New files.
243	* djgpp/config.h, djgpp/*.mak, djgpp/po2tbl.sed: Remove.
244	* djgpp/README: Update instructions.
245
246	* Makefile.am (EXTRA_DIST): Update the list of DJGPP files.
247
248	* src/system.h (IS_SLASH): New macro.
249	(is_EISDIR): Define it here for DOS and Windows.
250
251	* src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the
252	EOL formats of the input and output files match, unless stdout is
253	the console device.
254	(is_EISDIR): Don't define if already defined.  Accept a second
255	argument, the file name; all callers changed.
256	(grepdir): Don't free `file', inside the loop.  Use IS_SLASH to
257	check whether `dir' needs a slash.
258	(grepfile): If file is a directory, set e to EISDIR.
259
2601998-11-10  Alain Magloire
261
262	* src/vms_fab.{c,h}: New file for VMS wildcard expansion
263	Written by Phillip C. Brisco.
264
265	* vms/make.com : add line to compile vms_fab.c and
266	{e,f,}grepmat.c with link for each grep/fgrep/egrep.
267	Base on patch send by Phillib C. Brisco.
268
2691998-11-09  Alain Magloire
270
271	* grep-2.2c on alpha for testing.
272
2731998-11-09  Paul Eggert
274
275	* src/grep.1: Fix `Last Change' of output by generating the date
276	from the RCS Id.
277
278	* src/grep.c (is_EISDIR): New macro.
279	(grep): If -s, suppress errors from trying to read directories.
280	(grepfile): Use is_EISDIR to simplify code.
281	(grepdir): If -s, suppress errors from trying to read directories.
282
283	* src/grep.1: Fix -q -r -s problems; describe BSD grep better.
284
285	* src/grep.c (main): Update copyright.
286
287	Specify default matcher with default_matcher extern var, not
288	DEFAULT_MATCHER macro.  This is more straightforward and means
289	we need to compile grep.c just once.
290
291	* src/egrepmat.c, src/fgrepmat.c, src/grepmat.c: New files.
292
293	* src/Makefile.am (base_sources): New macro.
294	(egrep_SOURCES, fgrep_SOURCES, grep_SOURCES): Now consist of
295	$(base_sources) plus the single tailoring file.
296	(grep_LDADD, egrep_LDADD, fgrep_LDADD): Remove.
297	(EXTRA_DIST): Remove grep.c, regex.c.
298	(fgrep.o, egrep.o): Remove.
299
300	* src/grep.h (matcher): Now char const *.
301	(default_matcher): New decl.
302
303	* src/grep.c (matcher): Now char const *.
304	(setmatcher): Now accepts char const *.
305	(main): Default the matcher from default_matcher (linked externally)
306	rather than DEFAULT_MATCHER (a macro).
307
3081998-11-08 Alain Magloire
309
310	* src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'.
311	Nit from Paul Eggert.
312
3131998-11-06 Alain Magloire
314
315	* src/grep.c: The Matcher is not set to argv[0] but
316	explicitly by a #define MATCHER at compile time default is "grep".
317
318	* aclocal/: NEW dir. provides our own *.m4
319
320	* configure.in: Move Paul's Large Files to AC_LFS.(aclocal/lfs.m4)
321	Taken from Jim Meyering fileutils.
322
3231998-11-05 Alain Magloire
324
325	* src/grep.1: update the man pages according to the
326	changes make by Miles.
327
328	* po/*.po: updated.
329
330	* first beta release for 2.3 (2.2a).
331
3321998-11-04 Miles Bader
333
334	* src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B
335	options, and allow -C to have an optional argument. -NUM can
336	now be mixed with -C, and -A, -B always take precedence over
337	-C/-NUM, regardless of order.
338	(long_options): Let -C/--context take an optional argument.
339
3401998-11-03 Alain Magloire
341
342	* src/dfa.c: HP-UX define clrbit/setbit as macros in <sys/param.h>
343	#undef if defined.
344	Fixed by Andreas Ley and Philippe Defert.
345
346	* src/grep.1 : mention that -s follows POSIX.2 behavior.
347	Noted by Paul Eggert and others.
348
349	* tests/khadafy.sh: a typo in failure(s).
350	Spotted By Sotiris Vassilopoulos.
351
3521998-11-01  Paul Eggert
353
354	* src/system.h (IN_CTYPE_DOMAIN): New macro.
355	(ISALPHA, ISUPPER, ISLOWER, ISDIGIT, ISXDIGIT, ISSPACE,
356	ISPUNCT, ISALNUM, ISPRINT, ISGRAPH, ISCNTRL): Use
357	IN_CTYPE_DOMAIN instead of isascii.
358
3591998-08-18  Paul Eggert
360
361	Add support for new -r or --recursive (or -d recurse or
362	--directories=recurse) option.
363
364	* src/Makefile.am (grep_SOURCES): Add savedir.c, savedir.h, stpcpy.c.
365
366	* src/grep.1: Describe new options.
367
368	* src/grep.c: Include "savedir.h".
369	(long_options): Add -r or --recursive.
370	(RECURSE_DIRECTORIES): New enum value.
371	(IS_DIRECTORY_ERRNO): Remove.
372	(reset, grep): Add file name arg.
373	(grepdir, grepfile): New functions.
374	(initial_bufoffset): New var.
375	(reset): Initialize it.
376	(fillbuf): Use it.
377	(count_matches, list_files, no_filenames, suppress_errors): New static
378	vars; formerly were local to `main'.
379	(grep): Recurse through directories if the user asks for this.
380	(usage, main): Add new options.
381	(main): Change some local vars to be static, as described above.
382	Move most of the guts into grepfile function.
383	so that it can be recursed through.
384
385	* configure.in (AC_HEADER_DIRENT, AC_FUNC_CLOSEDIR_VOID): Add.
386	(AC_REPLACE_FUNCS): Add stpcpy.
387
388	* src/savedir.c, src/savedir.h, src/stpcpy.c: New files;
389	taken from fileutils 3.16u.
390
3911998-08-11  Paul Eggert
392
393	* src/system.h (initialize_main): New macro.
394	* src/grep.c (main): Invoke initialize_main first thing.
395
3961998-04-29  Paul Eggert
397
398	* NEWS, src/grep.1: Describe new -a and -d options.
399
400	* src/grep.c (long_options, usage, main):
401	New options -d or --directories and -a or --text.
402	(directories, always_text): New variables.
403	(IS_DIRECTORY_ERRNO): New macro.
404	(reset): Now returns value specifying whether to skip this file.
405	Stat the file if either mmap or directory-skipping is possible.
406	Skip the file if it's a directory and we're skipping directories.
407	(grep): Skip the file if `reset' tells us to.
408	(main): If open fails because the file is a directory, and if we're
409	skipping directories, don't report an error.
410	Remove special case for DOS and Windows.
411
412	* src/dosbuf.c (guess_type): Use the same method for guessing whether a
413	file is binary as grep.c's grep does.
414	There's no longer any need to declare `bp' to be unsigned.
415
4161998-04-26 Alain Magloire
417
418	* grep-2.2 release.
419
420	* src/dfa.c: Wrong revision was pulled out
421	for beta 2.1.1d.
422	* src/search.c: Wrong revision was pulled out
423	for beta 2.1.1d.
424
425	* src/grep.c: ck_atoi () added instead of atoi ().
426	Suggestion from Jim Meyering.
427	ck_atoi () pulled from diffutils-2.7, maintained by Paul Eggert.
428
429	* AUTHORS: Rephrase of some sentences.
430	* README:  Rewording.
431	Noted and patched by Joel N. Weber II.
432
4331998-04-17 Kaveh R. Ghazi
434
435	* src/dfa.h: Don't define `const', trust autoconf to handle it.
436
4371998-04-16 Alain Magloire
438
439	* tests/{status,empty}.sh: wrong return status.
440
441	* src/grep.c: Remove the REGEX part in usage (), it was
442	consider overkill by most.
443
4441998-04-14  Eli Zaretskii
445
446	* djgpp/config.bat: Support file names with multiple dots on all
447	platforms.
448
449	* djgpp/README: Add instructions about file names illegal on
450	MS-DOS.
451
4521998-04-13 Alain Magloire
453
454	* src/dfa.c: by "popular" demand reverse
455	back to '_' not word-constituent.
456
457	* grep-2.1.1c available for testing.
458
4591998-04-13  Karl Heuer
460
461	* src/grep.c: (a) The directory check is done too early:
462	logically, if the argument is "-", then it refers to standard
463	input, regardless of whether there's something in the file
464	system answering to "-".
465	(b) The sh command "grep -l root /etc/passwd /etc/group 0<&-"
466	prints "(standard input)" instead of "/etc/passwd", because it
467	mistakenly believes that a named file will never be opened on fd
468	0.  The string "(standard input)" should be based on the file
469	having been originally specified as "-", rather than making
470	assumptions about the fd.
471	(c) the code that calls close(fd) is being done outside of the
472	test for a bad fd.  Thus, if the open failed, this code will
473	attempt to close(-1).  It should be done inside the "fd != -1"
474	branch.
475	This patch addresses all three of these problems.
476
4771998-04-13 Alain Magloire
478
479	* configure.in: remove the deprecated AC_ISC_POSIX macro.
480	Spotted by Karl Heuer.
481
4821998-04-03  Eli Zaretskii
483
484	* djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated from the
485	relevant Makefile.in files.
486
487	* djgpp/config.bat: Create files in intl directory like the
488	configure script does.
489
4901998-03-28  Eli Zaretskii
491
492	* djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated to track
493	changes in respective Makefile.in files.
494
495	* src/dosbuf.c (guess_type): Avoid running off the end of the
496	buffer.  Spotted by Paul Eggert.
497
4981998-03-27  Alain Magloire
499
500	* grep-2.1.1b.tar.gz available.
501
502	* src/regex.c: CLASS_CHAR_MAX set to 256 instead of 6
503	when WCTYPE and WCHAR are not defined. When class names
504	where bigger then 6, it will not detect an error.
505	example '[[:alphabet:]]'.
506
507	* Updated the copyright of the files with emacs.
508	With emacs Jim :).
509
5101998-03-26 Jim Meyering
511
512	* src/dfa.c (IS_WORD_CONSTITUENT): Define.
513	(lex): Use IS_WORD_CONSTITUENT, not ISALNUM.
514	Don't special-case '_'.
515	(dfastate): Use IS_WORD_CONSTITUENT, not ISALNUM.
516	(dfaexec): Likewise.
517
5181998-03-25  Alain Magloire
519
520	* tests/warning.sh: typos and replace the echos with
521	a simple cat.
522	Noted By Jim Meyering.
523
524	* src/regex.c: #undef ISASCII and ISPRINT before defining
525	them(On Solaris it was define).
526	Pattern 'a[[:]:]]b' is an invalid char class and the error
527	from regex was 1(REG_NOMATCH) instead of 2 (REG_ECTYPE).
528	Fix with help from Ulrich Drepper.
529
530	* src/grep.c (usage): Ulrich wrote: "A single printf should
531	not have more than 900 bytes. For translation reasons the
532	text shouldn't be split in too many pieces since this is
533	tiresome and also does not help to generate a consistent picture."
534	Noted by Ulrich Drepper.
535	* src/grep.c (usage): Dig out and old patch from
536	Franc,ois to explain the regex in usage().
537	Ideas from Franc,ois Pinard.
538
5391998-03-23 Alain Magloire
540
541	* testing: grep-2.1.1a for testing.
542
543	* configure.in: Solaris needs '-lw' if we use wchar/wctype
544	functions.
545	* src/btowc.c: New file from GNU libc. Solaris 2.5 don't
546	have it define.
547	* configure.in : check for btowc ().
548
549	* regex.c: Include <wchar.h> before <wctype.h>, to work around
550	a Solaris 2.5 bug.
551	Patch provided by Paul Eggert.
552
553	* tests/status.sh: new file to check return status code.
554	* tests/empty.sh: new file to check for empty pattern.
555	* tests/warning.sh: new file to tell where to report errors.
556
557	* configure.in: If available, prefer support for large files
558	unless the user specified one of the CPPFLAGS, LDFLAGS, or LIBS
559	variables.
560	Done by Paul Eggert.
561
562	* src/grep.c (usage): change prep.ai.mit.edu for gnu.org.
563
5641998-03-18 Alain Magloire
565
566	* src/grep.c (usage): Formating the --help message a bit off.
567	Noted by William Bader.
568
569	* src/grep.c (main): When checking conflicting matcher for option -E the
570	matcher was to "egrep" instead of "posix-egrep".
571	Reported by kwzh@gnu.org.
572
573	* src/grep.c: Typos and rewording the --help message.
574	Reported by Karl Heuer.
575
576	* src/grep.1: The man page wording :
577	  A regular expression matching a single character may be
578	  followed by one of several repetition operators:
579	is unclear since 'x(yz)*z' is a valid regex.
580	Remove the "matching a single character".
581	Suggested by Harald Hanche-Olsen.
582
583	* src/grep.c (main): `-f /dev/null' now specifies no patterns
584	and therfore matches nothing.
585	Reported by Jorge Stolfi.
586	Patched by Paul Eggert.
587
5881998-03-10 Alain Magloire
589
590	* Ice storm 98(el nino). Lost grep repository disk,
591	and my $HOME directory, etc ..
592	Trying to get the emails/patch from dejanews.com
593	and start from grep-2.1.
594	sigh ....
595
5961997-11-01 Alain Magloire
597
598	* src/grep.c: For the long options, the problems are:
599	--file appears in the option table as 'no_argument'
600	instead of 'required_argument'.
601	--files-with-matches is missing from the option table.
602	The help lists '--fixed-strings' as the long option for -F,
603	the table has '--fixed-regexp'.
604	--regexp appears in the option table as 'no_argument'
605	instead of 'required_argument'.
606	--with-filename is missing from the option table.
607	Reported by Grant McDorman and Krishna Sethuraman.
608
6091997-10-19 Alain Magloire
610
611	* src/grep.c: the option "with-filename was not in the arg table.
612	Corrected by Jim Hand.
613
614	* GNU gettext library from gettext-0.10.32.
615
616	* src/grep.c: reverse back to greping directories,
617	One could skip the error message by defining
618	SKIP_DIR_ERROR. There is no clear way of doing
619	things, I hope to setle this on the next majore release
620	Thanks Paul Eggert, Eli Zaretskii and gnits for the
621	exchange.
622
623	* tests/status.sh: add this check to make sure
624	That the return status code is ok.
625
6261997-10-10 Andreas Schwab
627
628	* src/grep.1: Fix formatting.
629
630	* configure.in: Check for wctype.h, wchar.h, libintl.h and
631	isascii, which are needed for regex.c.
632
6331997-10-01 Paul Eggert
634
635	* src/grep.c (fillbuf): Don't warn about mmap failures.
636
6371997-09-7 Alain Magloire
638
639	* src/grep.c: added code for -H --with-filename.
640
641	* djgpp/*: patch wrongly apply
642	duplication of text in djgpp/{README,config.h}.
643	Filter djgpp/config.bat with unix2dos.
644
645	* djgpp/make.mak: beautify
646	From Eli Zaretskii.
647
648	* grep-2.1 release.
649
6501997-09-01 Alain Magloire
651
652	* grep-2.0f out for testing.
653
654	* update to GNU gettext library from gettext-0.10.31
655
656	* grep.c : have a nicer format for --version.
657	Noted by Ulrich Drepper.
658
659	* obstack.[ch]: updated from GNU C library
660	* configure.in: look for stdlib.h [HAVE_STDLIB_H]
661	Comments from Ulrich Drepper.
662
6631997-08-25 Philippe De Muyter  <phdm@info.ucl.ac.be>
664
665	* src/dfa.c (sys/types.h): File included unconditionnaly.
666
6671997-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
668
669	* grep.c (long_options) [O_BINARY]: Add DOS-specific options.
670	(fillbuf) [O_BINARY]: For DOS-style text files, strip CR
671	characters at end of line.
672	(prline) [O_BINARY]: Report correct byte offsets, even though CR
673	characters were stripped when reading the file.
674	(usage) [O_BINARY]: Add DOS-specific options.
675	(setmatcher) [HAVE_SETRLIMIT]: Set re_max_failures so that the
676	matcher won't ever overflow the stack.
677	(main) [__MSDOS__, _WIN32]: Handle backslashes and drive letters
678	in argv[0], remove the .exe suffix, and downcase the prgram name.
679	[O_BINARY]: Pass additional DOS-specific options to getopt_long
680	and handle them.  Call stat before attempting to open the file, in
681	case it is a directory (DOS will fail the open call for
682	directories).  Switch the input descriptor to binary mode, unless
683	it is a terminal device.
684
685	* system.h [O_BINARY]: Define macros to switch a handle to binary
686	mode, so binary files could be grep'ed on MS-DOS and MS-Windows.
687	[HAVE_SETLOCALE]: Test for HAVE_SETLOCALE instead of
688	HAVE_LC_MESSAGES, to prevent compilation error in grep.c on
689	systems which don't define HAVE_LC_MESSAGES, but have setlocale.
690
691	* dosbuf.c: New file, functions specific for MS-DOS/MS-Windows.
692	(guess_type, undossify_input, dossified_pos): New functions.
693
694	* djgpp/config.h, djgpp/config.bat, djgpp/main.mak, djgpp/src.mak,
695	djgpp/po.mak, djgpp/intl.mak, djgpp/tests.mak, djgpp/po2tbl.sed:
696	New files, for building Grep with DJGPP tools for MS-DOS and
697	MS-Windows.
698
699	* grep.1: Document DOS-specific switches.
700
7011997-08-08 Alain Magloire
702
703	* grep-2.0e: available for testing
704
705	* grep.c: change LC_MESSAGE to LC_ALL for (LC_CTYPE).
706	Suggested by Jochen Hein.
707
708	* ABOUT-NLS: updated.
709	* grep.c: --version: more verbosity (COPYRIGHT).
710	* grep.c: --help: PATTERN, FILE instead of <pattern>, <file>.
711	* INSTALL.grep: not necessary removed.
712	* configure.in: --disable-regex rename --without-include-regex.
713	* THANKS: format: first row name, second email.
714	* ChangeLog: format ISO 8601.
715	Reported by Franc,ois Pinard.
716
717	* grep.c: move dcl of struct stat st into "else" where it's used.
718	Reported by Jim Meyering.
719
720	* grep.c: totalnl should be %u in printf.
721	Reported by Michael Aichlmay
722	Corrected with guidance from Ulrich Drepper
723
7241997-07-24 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
725
726	* Makefile.am: corrected an error when installing {f,e}grep.1.
727	From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
728	From Ulrich Drepper <drepper@cygnus.com>.
729
730	* Many files: use PARAMS instead of __STDC__ for prototypes.
731	From Jim Meyering <meyering@eng.ascend.com>.
732	Patch provided by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
733
734	* dfa.[ch]: uses the one in gawk-3.0.3 with the patch from
735	Arnold (see Changelog: July 12 1997)
736
737	* grep.1: a note to say -l, -L, -q stop on first match.
738	Noted by Andrew Beattie <gaffer@tug.com>.
739
740	* grep.c: refuse to scan if the file is a directory.
741	This was causing problems on SUNs. If the directory contains
742	a file that could match the pattern, garbage was display.
743
744	* tests directory: added new set of tests from Henry Spencer
745	regex package. Change the way the tests were done to be more
746	conformant to automake.
747
748	* configure.in: added --disable-regex for folks with their own fuctions.
749
750	* grep-20d : available for testing
751
7521997-07-18 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
753
754	* grep-2.0c: available for testing
755
7561997-07-17 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
757
758	* src/grep.c: Cause grep to fail if `fclose (stdout)' fails.
759	From Jim Meyering <meyering@eng.ascend.com>.
760
761	* grep.c:usage() more consistency in the --help.
762
763	* egrep, fgrep were links This is in violation of GNU standards:
764	"Please don't make the behavior of a utility depend on the name used
765	to invoke it.  It is useful sometimes to make a link to a utility with
766	a different name, and that should not change what it does."
767	For now egrep and fgrep will be copies of grep. A better scheme
768	should be found later.
769	After discussion with Tom Tromey <tromey@cygnus.com>.
770
771	* fgrep.man and egrep.man included: They are stubs that call grep.1.
772	* Makefile.am: modified to install {f,e,}grep[,.1].
773
774	* speed hack for -l, -L: bail out on first match.
775	From Scott Weikart <scott@igc.apc.org>.
776
777	* *.[ch]: provided prototypes for strict argument checking
778	With the help of Stewart Levin <stew@sep.stanford.edu>.
779
7801997-07-16 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
781
782	* configure.in: typo in the creation of po/Makefile
783	Noted by Volker Borchert bt@teknon.de.
784
785	* grep-2.0b: make it available for testing.
786
7871997-07-15 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
788
789	* src/grep.c usage(): cut the --help in smaller printf()'s
790	Noted by Ulrich Drepper <drepper@cygnus.com>.
791
7921997-07-14 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
793
794	* grep-2.0a: make an alpha available for testing.
795
7961997-07-12 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
797
798	* run gettextize: added the po directory filled with *.po files.
799
800	* check.sh, scriptgen.awk: fix grep paths.
801
802	* change the directory strucure: grep is now in src to comply with
803	gettext.m4.
804
805	* grep.c version.c [VERSION]: got rid of version.c,
806	it is now define via config.h.
807
808	* dfa.c: patch to speed up initialization.
809	Arnold Robbins (arnold@gnu.ai.mit.edu).
810
8111997-07-09 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
812
813	* *.c [HAVE_CONFIG_H]: Macro defined.
814
815	* support for I18N in Makefile.am and configure.in.
816
817	* update all the string to use gettext(I18N).
818	Help from Franc,ois Pinard previous patch <pinard@IRO.UMontreal.CA>.
819
8201997-07-04 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
821
822	* obstack.[ch]: updated from glibc.
823	Work of Ulrich Drepper <drepper@cygnus.com>.
824
825	* regex.[ch]: updated from glibc.
826	Work of Ulrich Drepper <drepper@cygnus.com>.
827
828	* grep.c: for option -e not counting '\n' for new keys.
829	From Mark Waite <markw@mddmew.fc.hp.com>.
830
831	* grep.c: for option -f allocating the right count.
832	From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
833	Mike Heartel (mike@cs.uoregon.edu).
834
835	* kwset.c (bmexec): Cast tp[-2] to unsigned char before comparing.
836	From Jim Meyering <meyering@asic.sc.ti.com>.
837
838	* grep.1: various typos.
839	From Keith Bostic <bostic@bsdi.com>.
840	Mike Heartel (mike@cs.uoregon.edu).
841
8421997-06-17 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
843
844	* grep.c: support for long options.
845	patch done by Franc,ois Pinard <pinard@IRO.UMontreal.CA>.
846
847	* add getopt1.c in Makefile.am.
848	Noted by Franc,ois Pinard <pinard@IRO.UMontreal.CA>
849
850	* replace getopt.[ch] and add getopt1.c.
851
852	* kwset.c: undef malloc before define it.
853	Franc,ois Pinard <pinard@IRO.UMontreal.CA>.
854
8551997-06-07 Alain Magloire <alainm@rcsm.ee.mcgill.ca>
856
857	* grep.c: format incorrect in
858	fprintf("%s: warning: %s: %s...", filename, strerror(errno)).
859	Mike Heartel (mike@cs.uoregon.edu).
860
8611996-11-19  David J MacKenzie  <djm@catapult.va.pubnix.com>
862
863	* make.com: Set the logical SYS. From rdb@cocamrd.oz.au (Rodney Brown).
864
865	* grep.c (S_ISREG): Define if not defined already, for e.g.
866	SunOS 4.0.3.
867
868	* dfa.c (test_bit, set_bit, clear_bit): Renamed from tstbit,
869	setbit, clrbit to avoid conflict with HP-UX sys/param.h macros.
870
871	* memchr.c: New file, from GNU libc.
872	* grep.c (memchr): Remove definition.
873	* configure.in: Use AC_REPLACE_FUNCS for memchr.
874
875	* configure.in: Remove unused checks for memalign and unsigned char.
876	* grep.c: HAVE_WORKING_MMAP -> HAVE_MMAP.
877
878	* system.h: New file.
879	* dfa.c, kwset.c, grep.c, search.c: Use it instead of duplicating
880	portability boilerplate.
881
882	* grep.c: Include sys/types.h once, instead of three times
883	conditionally.
884	* dfa.c, kwset.c, search.c: Include sys/types.h unconditionally,
885	to always try to get size_t (needed on some old SysV's).
886
887	* dfa.c: Define strchr in terms of index, not the other way around.
888	* search.c: Use memcpy instead of bcopy.
889
8901996-11-15  David J MacKenzie  <djm@catapult.va.pubnix.com>
891
892	* Many files: Update FSF address.
893	Update configuration to use autoconf v2 and automake.
894
8951993-05-22  Mike Haertel  <mike@cs.uoregon.edu>
896
897	* Version 2.0 released.
898