.
[coreutils.git] / old / textutils / ChangeLog
blob3dca3eaa48b3c54fcfa6ca289ad51e40e97d05be
1 Sun Dec  8 07:22:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3         =========== Update for automake-1.1k.
4         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
5         * configure.in (AM_CONFIG_HEADER): Use it.
6         (AC_OUTPUT): Remove stamp-h timestamping statement.
7         Now, AM_CONFIG_HEADER does it automatically.
8         * lib/Makefile.am (noinst_LIBRARIES): Rename to libtu.a as per
9         new automake requirement.
10         Rename tu_* variables to libtu_a_*.
12 Wed Dec  4 21:03:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
14         * src/pr.c: Apply big patch from Roland Huebner.
16         * src/tr.c (main) [!POSIXLY_CORRECT]: Allow the identity mappings:
17         [:upper:] to [:upper:] and [:lower:] to [:lower:].
18         (main) [POSIXLY_CORRECT]: Give a more specific diagnostic for
19         the invalid identity mappings [:upper:] to [:upper:] and [:lower:]
20         to [:lower:].
21         (class_ok): Update table to reflect that tr now allows these
22         identity mappings.  Suggestion from Risto Kankkunen.
24 Thu Nov 28 00:31:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
26         * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
27         for gettext-0.10.25.
29 Tue Nov 26 23:05:14 1996  Jim Meyering  <meyering@na-net.ornl.gov>
31         * src/sort.c (fraccompare): Add explicit `int' in `register' dcls,
32         to avoid new warning from gcc.
34 Sun Nov 24 21:02:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
36         * tests/sort-test/Makefile.am (t): Add names of those 5 tests.
38         * tests/sort-test/Test.pm: Add 5 tests to exercize just-fixed code.
40         * src/sort.c (set_ordering): Revert 1994-05-04 change to this function
41         so that blanks are not unconditionally ignored when computing start
42         and end positions for numeric keys with explicit character offsets.
43         Reported by Markus Demleitner.
45 Sat Nov 23 16:07:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
47         * cat.c (usage): Alphabetize option descriptions the way sort -f would.
48         * fmt.c (usage): Likewise.
49         * join.c (usage): Likewise.
50         * md5sum.c (usage): Likewise.
51         * od.c (usage): Likewise.
52         * pr.c (usage): Likewise.
53         * sort.c (usage): Likewise.
54         * split.c (usage): Likewise.
55         * wc.c (usage): Likewise.
56         From Karl Berry.
58 Fri Nov 22 20:20:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
60         * src/csplit.c (process_regexp): Update CURRENT_LINE only if
61         the new value would be larger.  This avoids the infinite loop
62         otherwise provoked by situations like this:
63         printf "\na\n" | csplit - '/a/-1' '{*}'
64         From Jens Schmidt.
66 Tue Nov 19 23:16:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
68         * configure.in (AM_SANITY_CHECK_CC): Remove it.  Autoconf-2.11
69         has this built-in.
71 Sat Nov  2 08:50:01 1996  Jim Meyering  <meyering@na-net.ornl.gov>
73         * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
74         Otherwise, the generated info files have names longer than
75         the 14-byte max of some old systems.
76         Reported by Karl Heuer.
78 Fri Nov  1 21:33:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
80         * lib/strtol.c: Update from GNU libc.
82         * tests/sort-test/Test.pm: Add a test to exercize this fix.
84         * src/sort.c [!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
85         (checkfp): Fix off-by-one error that resulted in writing one byte
86         beyond the end of a malloc'd buffer.  It caused `sort -c' to segfault
87         on Linux systems having a relatively recent libc.  Before, running
88         the command, perl -e "print 'x' x 30, \"\n\";"|sort -c
89         would provoke the memory overrun (though not necessarily the failure).
90         Add an assertion.
91         Reported by Risto Kankkunen.
93 Thu Oct 31 17:48:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
95         * src/sort.c (key_init): New function.
96         (main): Use key_init in the two places where it was open-coded.
97         This fixes a UMR of the general_numeric field.
99         * src/join.c (decode_field_spec): Always give FIELD_INDEX a value.
100         This avoids a spurious UMR report from purify.
101         (prjoin): Add an assertion.
102         (add_field): Update assertion.
104         * src/tr.c (es_free): New function.
105         (parse_str): Use it to plug a small memory leak.
107 Wed Oct 23 22:02:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
109         * lib/md5.c: Update from GNU libc.
110         * lib/md5.h: Update from GNU libc.
112 Mon Oct 21 16:48:12 1996  Jim Meyering  <meyering@na-net.ornl.gov>
114         * src/tr.c (validate): Remove TAB from diagnostic, for consistency.
116 Sun Oct 20 13:44:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
118         * lib/Makefile.am (INCLUDES): Add -I../intl.  Reported by Eric Backus.
120         * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'
121         (EXTRA_DIST): Remove.
123         * configure.in: Remove README_ALPHA related code.  Automake takes
124         care of it automatically now when in gnits mode.
126         * lib/md5.c (md5_process_bytes): Cast void* pointer to char* before
127         doing arithmetic with it.
129 Sat Oct 19 23:13:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
131         * lib/md5.c: Update from GNU libc.
132         * lib/md5.h: Update from GNU libc.
134 Fri Oct 18 00:08:04 1996  Jim Meyering  <meyering@na-net.ornl.gov>
136         * configure.in (AC_OUTPUT): Add tests/join-test/Makefile.
138         * tests/Makefile.am (SUBDIRS): Add join-test.
140 Tue Oct 15 23:25:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
142         * src/tr.c (get_next): Rewrite to treat lower/upper mapping as a
143         special case.
144         (main): Write separate loops to initialize mapping for lower->upper
145         and upper->lower conversion.
146         Reported by Arne Henrik Juul.
148 Sun Oct 13 12:52:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
150         * lib/xstrtol.c (__xstrtol): Return an error for invalid suffix.
151         Before, e.g., `split -b 1M' would be silently accepted and treated
152         like `split -b 1'.  Reported by Franc,ois.
154         * src/split.c (usage): Remove parameter, REASON.
155         (main): Update callers to use combination of error (0, 0, ... and
156         usage (EXIT_FAILURE).
157         (main): When a string operand cannot be converted to a number of
158         bytes or lines, include that string in the diagnostic.
160 Sat Oct 12 00:05:11 1996  Jim Meyering  <meyering@na-net.ornl.gov>
162         * configure.in (AC_REPLACE_FUNCS): Add strpbrk and strtol.
164         * lib/Makefile.am (EXTRA_DIST): Remove.
166 Thu Oct 10 23:41:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
168         * lib/md5.c (md5_stream): Apply fix from Ralph Loader
169         <loader@maths.ox.ac.uk> via Ulrich Drepper.
171 Wed Oct  9 07:26:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
173         * lib/Makefile.am (tu_DEPENDENCIES): Depend on $(tu_LIBADD).
175 Tue Oct  8 21:32:17 1996  Jim Meyering  <meyering@na-net.ornl.gov>
177         * lib/error.c: Include error.h to align with libit --
178         under protest, François :-).
180 Sun Oct  6 08:02:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
182         * acinclude.m4 (AC_HEADER_SYS_TIME_H, AM_FUNC_MKTIME,
183         AM_FUNC_ERROR_AT_LINE, AM_FUNC_OBSTACK): Remove definitions.
184         They're included in automake-1.1f.
186         * configure.in (AM_FUNC_ERROR_AT_LINE): Use it instead of
187         open-coding it.
189 Sat Oct  5 12:40:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
191         * lib/memcpy.c [HAVE_CONFIG_H]: Include config.h.
192         From Karl Berry.
194 Fri Oct  4 07:20:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
196         * configure.in (GNU_PACKAGE): New variable.
197         (PACKAGE_VERSION): Remove it.
199         * acconfig.h (GNU_PACKAGE): New variable.
200         (PACKAGE_VERSION): Remove now-unused variable.
202         * lib/long-options.c (parse_long_options): Separate package name
203         and version number to accomodate new --version output requirement.
204         * lib/long-options.h: Update prototype.
206 Thu Oct  3 23:27:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
208         * src/md5sum.c (main): Remove dead code that used to print --version
209         output.
211 Tue Oct  1 06:54:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
213         * configure.in: Use result of AM_FUNC_STRTOD to set POW_LIBM.
214         * src/Makefile.am (sort_LDADD): Use any library (-lm) that
215         gets substituted for @POW_LIBM@.
217         * tests/md5sum-test/md5-rfc (md5sum): Use ../../src/md5sum.
219 Mon Sep 30 23:35:46 1996  Jim Meyering  <meyering@na-net.ornl.gov>
221         * tests/md5sum-test/md5-rfc (md5sum): Set to $srcdir/md5sum.
223         * acinclude.m4: Update definitions from gettext-0.24.
225 Sun Sep 29 20:04:53 1996  Jim Meyering  <meyering@na-net.ornl.gov>
227         * tests/sort-test/build-script.pl: Die if close fails.
228         * tests/tr-test/build-script.pl: Likewise.
230         * configure.in (AC_OUTPUT): Add tests/cut-test/Makefile.
231         * tests/Makefile.am (SUBDIRS): Add cut-test.
232         * tests/cut-test: New directory.
234 Fri Sep 27 22:22:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
236         * configure.in (ALL_LINGUAS): Add spanish (es).
238 Thu Sep 26 21:02:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
240         * src/md5sum.c (usage): Remove references in --help output to
241         the now-deprecated --string option.  Support for it will be
242         removed soon.  Using this option can provoke a memory access
243         violation on some systems because of (unavoidable in an efficient
244         implementation) alignment assumptions made by functions in md5.c.
245         md5sum.c could leave the option in and accomodate the alignment
246         restriction, but this option was intended solely for testing, and
247         the tests are now all file-oriented, so it's not necessary.
249         * tests/md5sum-test/md5-rfc: Rewrite to avoid use of --string option.
251 Wed Sep 25 21:43:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
253         * tests/sort-test/Makefile.am (t): Factor out .in suffix.
254         Include new test: t16a.
255         * tests/tr-test/Makefile.am (t): Likewise.
257         * src/Makefile.am (EXTRA_DIST): Remove md5-test.rfc.
259 Mon Sep 23 10:00:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
261         * tests/md5sum-test/Makefile.am (EXTRA_DIST): Distribute $(TESTS).
263 Sun Sep 22 09:24:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
265         * src/sort.c (keycompare): Declare translate to be unsigned char *.
266         Otherwise, sign extension caused misordering when using e.g. -f.
267         Reported by Erick Branderhorst.
268         * tests/sort-test/Test.pm: Add Erick's test for that fix.
270         * tests/Makefile.am (SUBDIRS): Add md5sum-test.
272 Sat Sep 21 13:34:59 1996  Jim Meyering  <meyering@na-net.ornl.gov>
274         * src/Makefile.am (check): Remove tests for md5sum.
275         * tests/md5sum-test: New directory.  Put them here instead.
276         * configure.in (AC_OUTPUT): Add tests/md5sum-test/Makefile.
278 Thu Sep 19 08:54:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
280         * tests/: Rename from checks.
281         * Makefile.am (SUBDIRS): Change `checks' to `tests'.
282         * configure.in (AC_OUTPUT): Likewise.
284         * configure.in ($PACKAGE, $VERSION): Don't AC_DEFINE_UNQUOTED these.
285         AM_INIT_AUTOMAKE now does it (as of automake-1.1e).
287 Sun Sep 15 23:08:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
289         * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
291 Thu Sep 12 17:05:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
293         * lib/Makefile.am (EXTRA_DIST): Add getline.c.
294         (tu_SOURCES): Remove getline.c
295         From Kaveh Ghazi.
297 Sun Sep  8 13:55:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
299         * checks/sort-test/build-script.pl: Prefix $in with \$srcdir/
300         so make check works with VPATH build.  From Uli Drepper.
302 Sat Sep  7 12:25:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
304         * src/system.h: Add comments justifying IS* versions of ctype.h macros.
306         * src/fmt.c (check_punctuation): Use ISPUNCT instead of ispunct.
307         (get_line): Use ISSPACE instead of isspace.  From Bruno Haible.
309 Mon Sep  2 10:34:46 1996  Jim Meyering  <meyering@na-net.ornl.gov>
311         * src/*.c (usage): Tell where to report bugs.
313 Sun Aug 25 22:50:47 1996  Jim Meyering  <meyering@na-net.ornl.gov>
315         * checks/sort-test/Makefile.am (EXTRA_DIST): Add $x-tests.
316         ($x-tests): Guard dependencies with @MAINT@.
317         * checks/tr-test/Makefile.am: Likewise.
319 Sat Aug 24 14:25:41 1996  Jim Meyering  <meyering@na-net.ornl.gov>
321         * src/cat.c (cat): Cast first arg to stpcpy to char* to avoid warnings.
323 Wed Aug 21 22:28:26 1996  Jim Meyering  <meyering@na-net.ornl.gov>
325         * configure.in (ALL_LINGUAS): Add polish (pl).
327 Sun Aug 18 09:34:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
329         * configure.in (AC_OUTPUT): Add checks/sort-test/Makefile.
330         * checks/Makefile.am (SUBDIRS): Add sort-test.
332 Sat Aug 17 18:57:17 1996  Jim Meyering  <meyering@na-net.ornl.gov>
334         * Makefile.am (EXTRA_DIST): Add acinclude.m4.
336 Tue Aug 13 21:47:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
338         * src/Makefile.am (EXTRA_DIST): Remove ansi2knr.1 and ansi2knr.c.
339         Automake includes them automatically.
341         * configure.in (AM_INIT_AUTOMAKE): Use it.
342         (AM_PROG_INSTALL): Remove.  AM_INIT_AUTOMAKE does this.
343         (AC_PROG_MAKE_SET): Likewise.
345 Sun Aug 11 20:49:21 1996  Jim Meyering  <meyering@na-net.ornl.gov>
347         * configure.in: Rename a few macros for automake-1.1c.
348         (AC_REPLACE_GNU_GETOPT): Remove.
349         (AC_PATH_PROG): Find perl -- needed only for checks if you
350         change or remove things with e.g. make maintainerclean.
353         * lib/Makefile.am (tu_LIBADD): Remove @REGEXOBJ@.  New AM_WITH_REGEX
354         adds .o files to @LIBOBJ@.
355         (tu_SOURCES): Add getopt.c and getopt1.c.
356         (EXTRA_DIST): Remove getopt.c and getopt1.c.
358         * acinclude.m4: New file -- derived from aclocal.m4.
359         * aclocal.m4: This file is now generated by the aclocal program
360         (which comes with the automake package.)
362 Sun Aug  4 10:50:46 1996  Jim Meyering  <meyering@na-net.ornl.gov>
364         * checks/: New directory.
365         * checks/Makefile.am: New file.
366         * configure.in (AC_OUTPUT): Add new directories: checks,
367         checks/tr-test.
368         * Makefile.am (SUBDIRS): Likewise.
370 Sat Jul 27 17:22:14 1996  Jim Meyering  <meyering@na-net.ornl.gov>
372         * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
373         redefinition warnings on solaris.
374         (textdomain) [!ENABLE_NLS]: Likewise.
376 Thu Jul 25 23:06:35 1996  Jim Meyering  <meyering@na-net.ornl.gov>
378         * src/unexpand.c (unexpand): Move EOF check to follow code that
379         processes and generates output for pending spaces.  Before
380         `printf '  ' |unexpand -t 1,2' generated no output.
382         * src/md5sum.c (md5_check): Remove parameter, BINARY.
383         Rename local TYPE_FLAG to BINARY, so md5_file uses the binary mode
384         from the input stream rather than the one from the command line.
385         (main): Fail with a diagnostic if --binary or --text is specified
386         when verifying checksums.
387         Reported by Eli Zaretskii <eliz@is.elta.co.il>.
389 Sun Jul 21 11:58:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
391         * configure.in: Add check for error_at_line so systems with
392         GNU libc don't compile and link with distributed error.c.
393         * lib/Makefile.am (tu_SOURCES): Remove error.c.
394         (EXTRA_DIST): Add error.c.
396         * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
397         Add related check for the getdelim function.
398         From Ulrich Drepper -- as done in gettext.
400 Sat Jul 20 15:59:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
402         * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
403         separate PACKAGE and VERSION.
405         * aclocal.m4 (AM_SANITY_CHECK_CC): New macro.  Derived from
406         macros from Bruno Haible and from Cygnus.
407         * configure.in (AM_SANITY_CHECK_CC): Use it.
409 Wed Jul 17 00:30:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
411         * install-sh: Get version with MIT copyright.
413 Tue Jul 16 00:09:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
415         * aclocal.m4 (fp_C_PROTOTYPES): Improved version from
416         François Pinard.
417         Update all other macros to reference $fp_cv_prog_cc_stdc, rather
418         than $ac_cv_prog_cc_stdc.
420         * src/od.c (OFF_T_MAX): Remove definition.
421         (main): Compare against LONG_MAX rather than OFF_T_MAX.
423 Mon Jul 15 23:42:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
425         * Many files: Update FSF address.
427 Sun Jul 14 16:53:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
429         * src/unexpand.c (unexpand): Fix bug that contributed to endless loop
430         when invoking `echo '  ' |unexpand -t 1,2': use print_tab_index, not
431         tab_index in inner flush_pend: while loop.  From Keith Owens
432         <kaos@audio.apana.org.au>.
434         * src/unexpand.c [HAVE_LIMITS_H]: Include limits.h for INT_MAX.
435         [!INT_MAX]: Define it.
436         (main): Append INT_MAX to command-line-specified tab list to
437         ensure termination in unexpand's inner loop.
438         Derived from a patch from Keith Owens.
440 Thu Jul 11 22:04:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
442         * Version 1.19.
444         * configure.in (VERSION): Bump to 1.19.
446 Wed Jul 10 22:57:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
448         * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
449         so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
450         those options on that system, sys/stat.h gets compile errors.
451         With help from Marcus Daniels.
453         * getopt.c: Update from gettext-0.10.23.
454         * getopt1.c: Likewise.
455         * getopt.h: Likewise.
457 Tue Jul  9 18:07:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
459         * src/fmt.c (MAXCOST): Use `(unsigned long)1' rather than `(COST)1'
460         so the left operand of the << isn't signed.
461         From Kjetil Torgrim Homme.
463         * po/Makefile.in.in (install-data): Don't install NLS files when
464         they're not requested.  From Ulrich Drepper.  Reported by
465         Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
467 Fri Jul  5 21:55:58 1996  Jim Meyering  <meyering@na-net.ornl.gov>
469         * po/Makefile.in.in ($(PACKAGE).pot): Merge from gettext-0.10.23.
470         * ABOUT-NLS: Likewise.
471         * intl/*: Likewise.
472         * aclocal.m4: Likewise.
474 Thu Jul  4 07:24:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
476         * src/uniq.c (usage): Remove space before newline in usage message.
478         * src/md5sum.c (MIN_DIGEST_LINE_LENGTH): New macro.
479         [NEWLINE_REPLACEMENT_STRING*]: Remove macros.
480         (main): Output a leading backslash for a line describing a file
481         whose name contains a newline.  Then translate each NEWLINE byte
482         in the file name to the string, "\\n", and each backslash to "\\\\".
483         File names that don't contain NEWLINE aren't translated.
484         (split_3): Rewrite to handle file names with embedded newlines.
485         Miles Bader and Jim Blandy suggested this new encoding scheme.
487         * src/md5sum.c (md5_file): Replace obsolete comment with a description
488         of the function.
489         (md5_check): Don't use "s"-adding trick to form the plural of
490         `checksum.'  That doesn't work well with translation.
491         Suggestions from Ulrich Drepper.
492         (split_3): Add missing semicolon so it compiles.  From Jim Blandy.
494 Wed Jul  3 23:21:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
496         * src/md5sum.c (split_3): Correct test for 35-byte line to accomodate
497         fact that leading blanks may be stripped.
499 Tue Jul  2 21:51:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
501         * configure.in (ALL_LINGUAS): Add dutch (nl).
503 Mon Jul  1 23:50:19 1996  Jim Meyering  <meyering@na-net.ornl.gov>
505         * src/md5sum.c [NEWLINE_REPLACEMENT_STRING]: Define.
506         (split_3): Translate NL bytes not to NUL, but to
507         NEWLINE_REPLACEMENT_STRING.
508         Suggested by Ulrich Drepper.
509         (main): Translate back to NL-containing filename.
511 Sun Jun 30 22:42:17 1996  Jim Meyering  <meyering@na-net.ornl.gov>
513         * src/md5sum.c (split_3): Take an additional parameter, S_LEN.
514         Adapt caller.
515         Map translated NEWLINE-containing filename back into the original
516         NEWLINE-containing name.
517         (md5_check): Translate NEWLINE bytes to NUL bytes in filename.
519 Sat Jun 29 18:59:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
521         * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so it
522         appears in the output of --version.  Reported by RMS.
524 Wed Jun 26 21:35:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
526         * src/Makefile.am (LDADD): Remove sort-specific hack to link
527         with -lm.
528         * aclocal.m4 (AM_FUNC_STRTOD): New macro.
529         * configure.in (AM_FUNC_STRTOD): Use it.
530         (AC_REPLACE_FUNCS): Remove strtod.
531         Suggested by Tom Tromey.
533         * po/Makefile.in.in (install-data): Add `else true;' to avoid
534         letting failing if-condition cause make failure.
535         From Fred Fish (fnf@ninemoons.com).
537 Tue Jun 25 21:55:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
539         * Version 1.18a.
541 Tue Jun 18 20:43:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
543         * aclocal.m4: Update from gettext-0.10.20.
544         * ABOUT-NLS: Likewise.
545         * intl/*: Likewise.
547 Thu Jun 13 22:31:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
549         * configure.in (VERSION): Bump to 1.18a.
551         * po/Makefile.in.in ($(PACKAGE).pot): Reapply change of May 30.
552         Depend on POTFILES only when using maintainer mode.
554         * intl/*: Update from gettext-0.10.18.
556 Tue Jun 11 23:32:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
558         * Version 1.18.
560         * po/Makefile.in.in: Update from gettext-0.10.17.
561         * intl/*: Likewise.
562         * ABOUT-NLS: Likewise.
564 Mon Jun 10 18:22:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
566         * Makefile.am (cvs-dist): Use -c option in cvs tag command.
568 Fri Jun  7 22:06:46 1996  Jim Meyering  <meyering@na-net.ornl.gov>
570         * configure.in (VERSION): Set to 1.18.
572         * src/Makefile.am (sort_LDADD): Set this to -lm to get pow when using
573         the strtod supplied with this package.  Otherwise, linking failed on
574         Solaris-2.4 systems.  Reported by Wayne Stewart <wstewa@atl.com>.
576 Thu Jun  6 21:57:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
578         * po/Makefile.in.in: Update from gettext-0.10.16.
579         * intl/*: Likewise.
580         * ABOUT-NLS: Likewise.
581         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
582         gettext-related ones.
583         Update from gettext-0.10.16.
585 Fri May 31 22:04:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
587         * Version 1.17.
589         * Makefile.am (EXTRA_DIST): Set to texinfo.tex so that file is
590         distributed.
592 Thu May 30 00:07:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
594         * Version 1.16.
596         * tail.c (main): Interpret the old-style +VALUE and -VALUE options
597         like -c VALUE and -c +VALUE (resp) when VALUE has one of the [bkm]
598         suffix multipliers.  This makes the code consistent with --help
599         output.  Reported by Karl Heuer.
601         * sort.c (limfield): #ifdef-out a block of code that makes
602         GNU sort incompatible with Unix sort when a key-end spec refers
603         to the N'th character in a field that has fewer than N characters.
604         The POSIX spec doesn't appear to specify behavior for this case.
605         From Karl Heuer.
607         * po/Makefile.in.in (stamp-cat-id): Avoid using temp filename
608         longer than 14 characters.
609         (mostlyclean): Likewise.
610         From Karl Heuer.
612         * po/Makefile.in.in ($(PACKAGE).pot): Depend on POTFILES only
613         when using maintainer mode.  Reported by Karl Heuer.
615         * po/Makefile.in.in (.po.mo): Reenable dependency and rule.
616         It is required when using native NLS, e.g. on Solaris.
617         From Marcus Daniels.
619         * od.c (decode_one_format): Use %lu (not %d) printf format
620         corresponding to unsigned long, SIZE.
622         * Version 1.15.
624         * intl/Makefile.in (installcheck): New target.
625         * po/Makefile.in.in (installcheck): New target.
627         * od.c (decode_one_format): Take another parameter.
628         Give a specific diagnostic for invalid format spec here rather
629         than an overly general one from caller's caller.
630         (decode_format_string): Update caller.
631         (main): Don't give diagnostic here when decode_format_string fails.
632         Remove assertions that could fail on some Crays because they don't
633         have a two-byte type.
634         Johan Danielsson (joda@pdc.kth.se) reported the failed assertions.
636 Mon May 27 17:43:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
638         * cat.c (main): Use STDIN_FILENO and STDOUT_FILENO instead of
639         less portable fileno (stdin) and fileno (stdout).
640         * sort.c (main): Use STDIN_FILENO instead of less portable
641         fileno (stdin).
643 Mon May 20 21:50:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
645         * Makefile.am (distcheck): Remove target and rule -- automake-0.33
646         adds it automatically.
648 Sun May 19 13:15:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
650         * configure.in (LINGUAS): Add ko.
651         * Makefile.am (distcheck): Remove @MAINT@ prefix from first command.
653 Thu May 16 22:18:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
655         * Makefile.am (distcheck): New target.  From Gord Matzigkeit.
657 Fri May 10 20:46:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
659         * po/Makefile.in.in (all-yes): Always depend on CATALOGS.  Otherwise
660         they won't be built and install could fail.  From Ulrich Drepper.
661         (.po.mo): Disable dependency and rule when not in maintainer mode.
663         * aclocal.m4 (ud_WITH_NLS): Make DATADIRNAME and CATOBJEXT depend
664         on whether we're using GNU gettext.  From Ulrich Drepper.
666 Wed May  8 21:10:43 1996  Jim Meyering  (meyering@na-net.ornl.gov)
668         * intl/Makefile.in (distdir): Renamed from dist. For compatibility
669         with automake-0.32.
670         * po/Makefile.in.in (distdir): Likewise.
672         * po/Makefile.in.in (all-yes): Depend on GMOFILES.
673         Depend on CATALOGS and GMOFILES files only in maintainer mode.
675 Tue May  7 22:10:20 1996  Jim Meyering  (meyering@na-net.ornl.gov)
677         * configure.in: Require autoconf-2.10.
679         * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
680         * configure.in (jm_MAINTAINER_MODE): Use it.
682 Sat May  4 20:40:01 1996  Jim Meyering  (meyering@na-net.ornl.gov)
684         * configure.in (LINGUAS): Add de.
685         * po/de.po: New file.
687         * memcasecmp.c [IN_CTYPE_DOMAIN]: Rename from ISASCII.
688         * regex.c [IN_CTYPE_DOMAIN]: Likewise.
689         * system.h [IN_CTYPE_DOMAIN]: Likewise.
691 Sun Apr 28 17:10:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
693         * fmt.c (copy_rest): Don't copy past end of prefix.  Output
694         trailing spaces if the prefix had any.  Before, fmt would
695         improperly output NUL bytes.  The command
696         perl -e 'print "| S";' |fmt -p' |  '|tr '\0' @
697         output `|@S'.  Reported by François Pinard.
699         * sort.c (main): Give a better diagnostic for `sort -0'.
700         Reported by Karl Berry.
702         * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
703         Otherwise, some systems lose because the value AC_C_INLINE choses
704         with plain `cc' is different from that chosen when using the ANSI-mode
705         C compiler.  From Kaveh Ghazi.
707 Tue Apr 23 22:05:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
709         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
710         * configure.in: Use it.
711         * lib/Makefile.am (tu_SOURCES): Remove getopt.c and getopt1.c.
712         (EXTRA_DIST): Add getopt.c and getopt1.c
714         * src/*.c, src/*.h: Update Copyright years to include 1996.
716 Sun Apr 21 08:04:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
718         * getline.c: New version from gettext-0.10.12.
719         * getline.h: Likewise.
720         * configure.in (AC_CHECK_FUNCS): Add getdelim.
721         Suggested by Ulrich Drepper.
723         * md5sum.c (md5_check): Remove spurious newline at end of error
724         format string.
726         * od.c (decode_one_format): Use printf's L modifier for long doubles,
727         not `l'.  From Eric Backus.
729         * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
731         * od.c: Include <values.h>.
732         [!BITSPERBYTE]: Define.
733         [OFF_T_MAX]: Use BITSPERBYTE, not 8, and cast the result to off_t.
734         * configure.in (AC_CHECK_HEADERS): Add values.h.
736 Fri Apr 19 23:48:53 1996  Jim Meyering  (meyering@na-net.ornl.gov)
738         * Makefile.am (cvs-dist): New rule.  Based on the one from
739         Tom Tromey's automake.
741 Thu Apr 18 22:13:14 1996  Jim Meyering  (meyering@na-net.ornl.gov)
743         * tail.c (main): Make code clearer:  use new variable `n_files' in
744         place of `argc - optind'.  Use `file' instead of `argv + optind'.
746 Sat Apr 13 13:08:29 1996  Jim Meyering  (meyering@na-net.ornl.gov)
748         * lib/Makefile.am (noinst_HEADERS): Include memcasecmp.h,
749         not memcasecmp.c.
751         * memcasecmp.c: Unprotoize.
752         [ISASCII]: Define.
753         [ISUPPER]: Define.
755         * join.c (decode_field_spec): Rename local variable `valid'
756         to invalid (and reverse sense) to avoid conflict with the
757         macro definition in /usr/include/locale.h on SunOS 4.1.3.
759 Tue Apr  9 22:43:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
761         * uniq.c: Add new option --ignore-case (-i).
762         Include memcasecmp.h.
763         (different): Compare with memcasecmp if ignoring case.
764         (main): Handle 'i'.
766         * join.c (memcasecmp): Remove static definition of function.
767         Include memcasecmp.h instead.
769         * memcasecmp.c: New file.
770         * memcasecmp.h: New file.
771         * lib/Makefile.am (tu_SOURCES): Add memcasecmp.c.
772         (noinst_HEADERS): Add memcasecmp.h.
774 Thu Apr  4 17:05:33 1996  Jim Meyering  (meyering@na-net.ornl.gov)
776         * tr.c: The following commands all failed unnecessarily.
777         tr -cs '[:upper:]' '[X*]'
778         tr -dcs '[:lower:]' n-rs-z
779         tr -ds '[:xdigit:]' [:alnum:]'
780         tr -dcs '[:alnum:]' [:digit:]'
781         tr -dc '[:upper:]'
782         Reported by Ross Ridge (ross@worf.mks.com).
783         (validate): Add missing conjunct (translating) in test for
784         `translating and complementing character classes' error.  Before,
785         valid uses of tr could fail.  E.g. `tr -dcs '[:cntrl:]' '[:alnum:]''.
786         (homogeneous_spec_list): New function.
787         (validate): Use it to relax the old (overly restrictive) restriction
788         that prohibited use of complemented character classes when translating.
789         Now, that is allowed as long as the translation maps many to one.
790         (get_spec_stats): Rename and redefine global has_char_class from
791         has_upper_or_lower.
793 Wed Apr  3 07:08:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
795         * aclocal.m4: Update NLS macros from gettext-0.10.11.
797         * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
798         when srcdir != builddir.  From Kaveh Ghazi.
800 Wed Mar 27 23:33:36 1996  Jim Meyering  (meyering@na-net.ornl.gov)
802         * cksum.c (cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
803         to be POSIX compliant.  From Stephen Gildea <gildea@x.org>.
805 Sun Mar 24 08:47:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
807         * join.c (main): Use EXIT_FAILURE, not 2, as exit code in error call.
808         * od.c (skip, main): Likewise.
809         * tr.c (main): Likewise.
811         * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c fold.c head.c
812         join.c md5sum.c nl.c od.c paste.c pr.c split.c sum.c tac.c tail.c
813         tr.c unexpand.c uniq.c wc.c: Exit with status EXIT_SUCCESS or
814         EXIT_FAILURE, rather than 0 or 1.
816 Sat Mar 23 23:14:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
818         * system.h [EXIT_FAILURE]: Undefine and define to 1 also if it
819         is defined to zero.  Suggested by Paul Eggert.
821         * sort.c [SORT_FAILURE]: New macro.
822         Be careful to exit with 1 only when -c is used and the
823         input is not properly sorted.  In all other cases, use
824         SORT_FAILURE as required by POSIX.
825         (main): Change some `error (1, ...' to use SORT_FAILURE.
826         Upon successful termination, exit with EXIT_SUCCESS instead of `0'.
827         Replace all uses of `2' (as exit code) with SORT_FAILURE.
829 Thu Mar 21 22:47:50 1996  Jim Meyering  (meyering@na-net.ornl.gov)
831         * csplit.c: Include assert.h, but disable assertions.
832         (process_line_count): Replace if-abort with a slightly relaxed
833         assertion.  Before, `echo |csplit - 1 1' would abort.
834         Reported by Samuli.Karkkainen@hut.fi.
835         (parse_patterns): Disallow uses like `csplit FILE 0' with zero
836         line number, `csplit FILE 2 1' with decreasing line numbers, and
837         warn about uses like `csplit FILE 3 3' that have equal line numbers.
839         * sort.c (main): Declare to be of type int, not void.
840         From Peter Seebach <seebs@taniemarie.solon.com>.
841         * cat.c cksum.c comm.c csplit.c cut.c expand.c fold.c head.c join.c
842         nl.c paste.c pr.c split.c sum.c tac.c tail.c tr.c unexpand.c uniq.c
843         wc.c (main): Likewise.
845 Sat Mar 16 16:30:07 1996  Jim Meyering  (meyering@na-net.ornl.gov)
847         * configure.in (PACKAGE_VERSION): New macro.
848         * acconfig.h (PACKAGE_VERSION): Add it.
849         * src/Makefile.am: Remove rules for generating version.c.
850         Remove references to version.o, version.h, and stamp-v.
851         * version.c: Remove file.
852         * version.h: Remove file.
853         * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c fold.c
854         head.c join.c md5sum.c nl.c od.c paste.c pr.c sort.c split.c
855         sum.c tac.c tail.c tr.c unexpand.c uniq.c wc.c: Don't include
856         version.h.
857         (main): Use PACKAGE_VERSION instead of version_string.
859 Mon Mar 11 16:07:08 CST 1996  Jim Meyering  (meyering@na-net.ornl.gov)
861         * sort.c (write_bytes): Renamed from xfwrite.
862         Remove SIZE parameter.  It was always 1. Update all callers.
863         Rename NELEM parameter to N_BYTES and change its type to size_t.
865 Sat Mar  9 13:30:12 1996  Jim Meyering  (meyering@na-net.ornl.gov)
867         * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c
868         fold.c head.c join.c md5sum.c nl.c od.c paste.c pr.c sort.c
869         split.c sum.c tac.c tail.c tr.c unexpand.c uniq.c wc.c (main):
870         Initialize for internationalized message support: call setlocale,
871         bindtextdomain, and textdomain.
872         * system.h: Add definitions and includes for NLS.
873         * Makefile.am (SUBDIRS): Add intl and po.
874         * src/Makefile.am (datadir): Define.
875         (localedir): Define.
876         (DEFS): Add LOCALEDIR definition.
877         (LDADD): Add @INTLLIBS@.
878         * aclocal.m4: Add NLS-related macro definitions from
879         gettext distribution.
880         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
881         HAVE_STPCPY): New macros.
882         Add PACKAGE and VERSION.
883         * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
884         (VERSION): Likewise.
885         (ALL_LINGUAS): Define.
886         (AC_CHECK_HEADERS): Add float.h.
887         (ud_GNU_GETTEXT): Use it.
888         Link an nls file.
889         (AC_OUTPUT): Reflect addition of two new directories, intl and po.
890         Create po/Makefile.
891         From François Pinard.
893         * tr.c (star_digits_closebracket): Declare formal param, IDX,
894         and local I to be of type size_t (rather than int) to avoid
895         warnings from gcc -Wall.
897 Wed Feb 28 20:32:48 1996  Jim Meyering  (meyering@na-net.ornl.gov)
899         * src/Makefile.am: Adapt for automake-0.30.
900         (noinst_HEADERS): Rename from HEADERS.
901         (INCLUDES): Remove -I.. and -I$(srcdir).  automake-0.30 adds these
902         to DEFS automatically.
903         * lib/Makefile.am: (noinst_HEADERS): Rename from HEADERS.
905 Wed Feb 21 18:56:27 1996  Jim Meyering  (meyering@na-net.ornl.gov)
907         * join.c (xfields) [without -t]: Ignore leading blanks.
908         From David Dyck (dcd@tc.fluke.COM).
910 Sun Feb 18 12:07:27 1996  Jim Meyering  (meyering@na-net.ornl.gov)
912         * join.c [TOLOWER]: Define.
913         (usage): Briefly describe new --ignore-case (-i) option.
914         (memcasecmp): New function.
915         (main): Set IGNORE_CASE for -i.
916         (keycmp): Compare with memcasecmp if IGNORE_CASE is set.
917         Suggestion and an initial patch from Alberto Accomazzi
918         <alberto@cfa0.harvard.edu>.
920 Sat Feb 17 18:54:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
922         * sort.c: Add -z option.  Change all occurrences of '\n' to `eolchar'.
923         (usage): Describe it.
924         (main): Set eolchar to 0 for -z.
925         From Mark W. Eichin <eichin@cygnus.com>.
927 Fri Feb 16 21:44:14 1996  Jim Meyering  (meyering@na-net.ornl.gov)
929         * join.c (main): Mark two strings for translation.
930         * md5sum.c (md5_check): Mark a string for translation.
931         From François Pinard.
933 Mon Feb 12 21:12:28 1996  Jim Meyering  (meyering@na-net.ornl.gov)
935         Update for automake-0.29.
936         * Makefile.am (CONFIG_HEADER): Don't define.  Automake now does it.
937         * src/Makefile.am: Likewise.
938         * lib/Makefile.am: Likewise.
939         * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
940         * man/Makefile.am (man_MANS): Renamed from MANS.
942         * fmt.c [TRUE]: Undefine before defining to avoid warning on NeXT.
943         [FALSE]: Likewise.
944         From Derek Clegg (dclegg@next.com).
946 Sat Feb  3 16:20:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
948         * Version 1.14.
950 Wed Jan 31 23:26:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
952         * tail.c (dump_remainder): Flush stdout when tailing-forever on
953         multiple files.  From Carlos Canau <Carlos.Canau@relay.puug.pt>.
955 Fri Jan  5 18:30:28  1996 Jim Meyering  (meyering@na-net.ornl.gov)
957         * aclocal.m4: For SVR4 systems, use -Xc -D_POSIX_C_SOURCE in CFLAGS,
958         not just -Xc.  From François Pinard.
960         * doc/Makefile.am (DIST_OTHER): Don't set to mdate-sh.  mdate-sh is
961         distributed automatically.  From Tom Tromey.
963 Thu Jan  4 20:32:52 1996  Jim Meyering  (meyering@na-net.ornl.gov)
965         * nl.c: Include rx.h after limit.h (not before) to avoid warning
966         about the redeclaration of RE_DUP_MAX in limit.h.  rx.h protects
967         its definition.  From Kaveh Ghazi.
969         * src/Makefile.am (DIST_OTHER): Include md5-test.rfc so make check
970         works again.  Reported by François Pinard and Kaveh Ghazi.
972         * rx.c [SYNTAX]: Rename from SYNTAX_TABLE.
973         [SYNTAX_TABLE]: Remove extern dcl of re_syntax_table.
974         (RE_SEARCH_2_FN): Cast string1 and string2 to avoid pointer type
975         mismatch errors from e.g. SunOS's /bin/cc.
976         Reported by Kaveh Ghazi.
978 Wed Jan  3 23:34:39 1996  Jim Meyering  (meyering@na-net.ornl.gov)
980         * configure.in (VERSION): Set variable directly rather than from
981         a separate file.
982         * Makefile.am (DIST_OTHER): Remove VERSION.
983         * src/Makefile.am (version.c): Depend on Makefile, not ../VERSION.
984         (stamp-v): New target; depend on Makefile.
985         (DISTCLEANFILES): Add stamp-v, version.c.
987 Tue Jan  2 00:08:08 1996  Jim Meyering  (meyering@na-net.ornl.gov)
989         * sort.c (keycompare): Rewrite cases handling ignored characters
990         so that they really are ignored.  Reported by Carl Johnson
991         <carlj@cjlinux.home.org>.
993 Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
995         * configure.in: Touch stamp-h only if config.h is remade.
997         * csplit.c (extract_regexp) [!WITH_REGEX]: Intialize
998         syntax_parens field.
1000 Mon Dec 18 21:42:44 1995  Jim Meyering  (meyering@comco.com)
1002         Use automake to generate Makefile.in files.
1003         * Makefile.am: New file.
1004         * doc/Makefile.am: New file.
1005         * lib/Makefile.am: New file.
1006         * man/Makefile.am: New file.
1007         * src/Makefile.am: New file.
1009 Thu Dec 14 21:13:22 1995  Jim Meyering  (meyering@comco.com)
1011         * fmt.c (main): Use xstrtol instead of atoi.
1013         * fold.c (main): Use xstrtol instead of atoi.
1014         (fold_file): Make a couple locals `int', not size_t, and cast
1015         fwrite's third parameter to size_t.
1017         * nl.c (main): Use xstrtol instead of atoi.
1018         Rename misleading --first-page=N option to --starting-line-number=N.
1019         (usage): Update.
1021         * uniq.c (main): Use xstrtol instead of atoi.
1023 Fri Dec  8 20:48:00 1995  Jim Meyering  (meyering@comco.com)
1025         * aclocal.m4 (fp_C_PROTOTYPES): Set ANSI2KNR to ./ansi2knr.
1027 Thu Dec  7 19:55:03 1995  Jim Meyering  (meyering@comco.com)
1029         * aclocal.m4 (ud_WITH_REGEX): New macro.
1030         * configure.in: Use it.
1031         * rx.c, rx.h: New files.
1032         * lib/Makefile.in (REGEX): Set to @REGEXOBJ@, not regex.o.
1033         (SOURCES, DISTFILES): Add rx.c, rx.h.
1034         * acconfig.h (WITH_REGEX): Add it.
1035         * csplit.c [!WITH_REGEX]: Include rx.h.
1036         * nl.c [!WITH_REGEX]: Likewise.
1037         * tac.c [!WITH_REGEX]: Likewise.
1038         From Ulrich Drepper and François Pinard.
1040 Tue Dec  5 17:49:53 1995  Jim Meyering  (meyering@comco.com)
1042         * sort.c (main): Diagnose invalid arguments to -k, then fail.
1044         * sort.c (numcompare): Properly handle all cases in which signs differ.
1045         From Karl Heuer.
1047         * Makefile.in (mandir): @mandir@ is just $(prefix)/man.
1048         Append `/man1'.  Reported by Karl Heuer.
1050         * sum.c (bsd_sum_file): Remove misleading comment.  From Karl Heuer.
1052         * src/Makefile.in [.c._o]: Don't create $<-tmp.  From Kaveh Ghazi.
1054 Fri Dec  1 01:02:36 1995  Jim Meyering  (meyering@comco.com)
1056         * lib/Makefile.in (default): New target.
1058         * sort.c (numcompare): Properly order `-' and valid integers;
1059         treat `-' as if it were zero.  Reported by Ross Alexander
1060         <r.alexander@auckland.ac.nz>.
1062         * Makefile.in (DISTFILES): Remove unused mkdep-Makefile.
1063         (.PHONY): Depend on default.
1065 Wed Nov 29 21:50:53 1995  Jim Meyering  (meyering@comco.com)
1067         * aclocal.m4 (jm_PROG_C_MKDEP): Remove, for now.
1068         (jm_AUTODEPS): Likewise.
1069         (jm_WITH_GNU_MAKE): Likewise.
1070         * configure.in (jm_AUTODEPS): Remove.
1072         * sort.c (begfield): Replace loop with equivalent if-else.
1073         (limfield): Fix bug that made field specs like -k1.5 return a
1074         pointer into LINE beyond the first field.
1075         Don't try to trim trailing blanks here; it's not
1076         possible because we don't know where the field begins.
1077         Replace loop with equivalent if-else.
1078         (trim_trailing_blanks): New function.
1079         (findlines): Call it.
1080         (keycompare): Likewise.
1081         (main): Don't decrement T2 corresponding to `x' in field
1082         specs like -ku.v,w.x.
1084 Sun Nov 26 15:50:23 1995  Jim Meyering  (meyering@comco.com)
1086         * csplit.c [!UINT_MAX]: Define.
1087         [!INT_MAX]: Define.
1088         Include xstrtoul.h.
1089         (string_to_number): Remove function.
1090         (check_for_offset): Use xstrtoul instead of string_to_number.
1091         (parse_repeat_count): Likewise.
1092         (parse_patterns): Likewise.
1093         (main): Likewise.
1095 Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)
1097         * Makefile.in (all et. al.): If make was invoked with -k and a
1098         sub-make fails, fail after the loop rather than exiting right away.
1099         Otherwise, make's -k option could be ineffective.
1101 Sat Nov 18 12:04:30 1995  Jim Meyering  (meyering@comco.com)
1103         * src/Makefile.in (version.c): Depend on ../VERSION, not Makefile.
1105         Update for autoconf-2.5:
1106         * src/Makefile.in (libdir): Set to @libdir@.
1107         (bindir): Set to @bindir@.
1108         * doc/Makefile.in (infodir): Set to @infodir@.
1109         * man/Makefile.in (exec_prefix): Remove it.
1110         (mandir): Set to @mandir@.
1111         (bindir): Remove it.
1113 Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)
1115         * Makefile.in (default): New default target.  Depend on `all' to
1116         work around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
1117         <luik@isa.de>.
1119 Wed Nov 15 23:48:31 1995  Jim Meyering  (meyering@comco.com)
1121         * mkdep-Makefile (.deps/empty.P): Depend on BUILT-HEADERS.
1123         * aclocal.m4 (jm_PROG_C_MKDEP): Rename from jm_PROG_MKDEP.
1124         * src/Makefile.in (C_MKDEP): Rename from MKDEP.
1125         * lib/Makefile.in (C_MKDEP): Likewise.
1126         * mkdep-Makefile (C_MKDEP): Likewise.
1127         Add comments.
1129         * csplit.c [__P]: Don't define it here.
1130         * pr.c [__P]: Don't define it here.
1131         * fmt.c [__P]: Don't define it here.
1132         * system.h [__P]: Define it here.
1134         * aclocal.m4 (jm_AUTODEPS): Rename from jm_WITH_AUTODEPS.
1135         Revamp, with suggestions from Franc,ois Pinard.
1136         (jm_WITH_GNU_MAKE): New macro.
1137         (jm_PROG_MKDEP): New macro.
1138         * configure.in (jm_PROG_MKDEP): Use it.
1139         * src/Makefile.in (MKDEP): Set it.
1140         * lib/Makefile.in (MKDEP): Likewise.
1141         * mkdep-Makefile: Use MKDEP, not DEP_CC.
1142         (DEP_CFLAGS): Remove it.
1144 Tue Nov 14 23:10:54 1995  Jim Meyering  (meyering@comco.com)
1146         * sort.c: Add support for sorting numbers in scientific notation.
1147         Include xstrtod.h.
1148         (struct keyfield): Add field: general_numeric.
1149         (usage): Describe -g option.
1150         (general_numcompare): New function.
1151         (keycompare): Use new comparison function when general_numeric
1152         flag is set.
1153         (set_ordering): Honor `g' flag.
1154         (main): Initialize and use new field.
1155         From Marcus Daniels <marcus@sysc.pdx.edu>.
1157         * configure.in (AC_REPLACE_FUNCS): Add strtod.
1158         * lib/Makefile.in (SOURCES): Add xstrtod.c.
1159         (OBJECTS): Add xstrtod.o.
1160         (DISTFILES): Add xstrtod.h.
1162         * csplit.c (cleanup): Don't exit.
1163         (interrupt_handler): Rewrite to reset default signal handler
1164         then repost caught signal.
1165         (xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
1166         process_line_count, process_regexp, create_output_file,
1167         close_output_file): Call cleanup_fatal, not cleanup.
1168         Add const attribute to lots of parameters.
1169         (cleanup_fatal): Renamed from cleanup.  Call cleanup, then exit.
1170         Update callers.
1172         * tac.c: (cleanup): Don't exit.
1173         (cleanup_fatal): New function.  Call cleanup, then exit.
1174         (sighandler): New function.
1175         (cleanup_fatal): Renamed from cleanup.  Call cleanup, then exit.
1176         Update callers.
1177         (tac_stdin): Set up sighandler as signal handler, not `cleanup'.
1179 Sat Nov 11 15:46:02 1995  Jim Meyering  (meyering@comco.com)
1181         * od.c (skip): Cast fseek's offset argument to `long'.
1182         Erik Bennett <bennett@cvo.oneworld.com> reported that this is
1183         necessary on BSDI systems.  And if offset doesn't fit in a long,
1184         then try using lseek instead.
1186         * sort.c (xmalloc): Declare static.
1187         (xrealloc): Likewise.
1189         * tac.c (cleanup): Add signal number parameter.
1190         Update callers.
1192         * cat.c (main): Don't die when dev/ino of input and output are
1193         the same and the file descriptors correspond to stdin and stdout.
1194         This is necessary on at least Digital UNIX (aka OSF1) 3.2C.
1195         Otherwise, running `cat << X > $$' would fail with `cat: -: input
1196         file is output file'.  From Jarkko Hietaniemi <jhi@epsilon.hut.fi>.
1198         * Makefile.in (DISTFILES): Add @README_ALPHA@.
1199         (config.status) Depend on VERSION.
1200         * configure.in: Set README_ALPHA if the version number ends in [a-z].
1202 Fri Nov 10 21:13:42 1995  Jim Meyering  (meyering@comco.com)
1204         * fold.c (usage): Clarify meaning of --spaces.  From Karl Berry.
1206         src/Makefile.in (.c._c): Don't redirect directly to $@.
1207         (._c._o, .c._o): Remove temporary src file.
1209 Tue Nov  7 23:55:24 1995  Jim Meyering  (meyering@comco.com)
1211         * VERSION: New file.
1212         * configure.in (VERSION): New variable.
1213         (PACKAGE): New variable.
1215         * Makefile.in (DISTFILES): Add VERSION.
1216         (distdir): Use @PACKAGE@-@VERSION@, not distname.
1217         Remove all references to distname.
1218         * src/Makefile.in (version.c): Generate it.
1219         (SOURCES): Remove now-generated version.c.
1220         (distclean): Delete version.c.
1221         * doc/Makefile.in (version.texi): Use @PACKAGE@-@VERSION@,
1222         not version.c
1224         * */Makefile.in (distdir): Use @PACKAGE@-@VERSION@, not distname.
1225         Remove all references to distname.
1227         * split.c: New option: --verbose.
1228         (main): Recognize it.
1229         (usage): Document it.
1230         From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1232 Sun Nov  5 06:59:27 1995  Jim Meyering  (meyering@comco.com)
1234         * src/Makefile.in: Reflect protoization of csplit.c, fmt.c, pr.c,
1235         and unexpand.c.
1237         * pr.c: Protoize.
1238         (store_columns): Remove spurious 2nd argument in call to read_line.
1239         [__P]: Define.  Use it in prototyped forward decls.
1241         * csplit.c: Move prototypes after struct declarations.
1242         Remove prototypes for xmalloc, xrealloc.
1243         Protect prototypes with __P.
1244         (new_control_record): Cast arg 1 to realloc.
1246         * fmt.c [__P]: Test PROTOTYPES, not __STDC__.
1247         Protoize.
1249 Sat Nov  4 23:51:30 1995  Jim Meyering  (meyering@comco.com)
1251         * csplit.c (close_output_file): Set output_stream to NULL so we
1252         don't recurse endlessly between this function and cleanup.
1254         * unexpand.c: Reorder functions to obviate forward dcls.  Remove
1255         forward dcls.  Protoize.  Add `const' attribute to some parameters.
1257 Mon Oct 30 23:15:56 1995  Jim Meyering  (meyering@comco.com)
1259         * wc.c: Reorder functions to obviate forward dcls.  Remove
1260         forward dcls.  Protoize.  Add `const' attribute to some parameters.
1261         * uniq.c: Likewise.
1262         * split.c: Likewise.
1264         * split.c (isdigits, convint): Remove these.
1265         (main): Use xstrtol instead.
1267 Sun Oct 29 14:04:36 1995  Jim Meyering  (meyering@comco.com)
1269         * paste.c (main): Move function body to end of file.
1270         Remove forward dcls and protoize.
1271         * sum.c (main): Likewise.
1272         * nl.c: Protoize.  Reorder functions to obviate forward dcls.
1273         Remove forward dcls.
1274         * tac.c: Likewise.
1275         * src/Makefile.in (OBJECTS): Reflect that all of the above
1276         now use prototypes.
1278         * sum.c (bsd_sum_file): Give file name parameter const attribute.
1279         (sysv_sum_file): Likewise.
1281         * tac.c (xwrite): Give output buffer parameter const attribute.
1282         (output): Likewise for both parameters.
1283         (tac): Likewise for file name parameter.
1284         (tac_file): Likewise.
1286 Sat Oct 28 16:02:39 1995  Jim Meyering  (meyering@comco.com)
1288         * md5sum.c (md5_check): Use the same message format when there is
1289         a single file and it gets a read error or checksum mismatch as when
1290         there are more.  Write that warning to standard error, not standard
1291         output.  Suggestions from Greg Troxel (gdt@b-sgi.bbn.com).
1293 Thu Oct 26 00:11:35 1995  Jim Meyering  (meyering@comco.com)
1295         * sort.c (xtmpfopen): New function to set proper permissions on
1296         temporary files.  Use it instead of xfopen. Reported by Erik Corry
1297         (erik@kroete2.freinet.de).
1299 Mon Oct 23 23:17:04 1995  Jim Meyering  (meyering@comco.com)
1301         * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
1302         * configure.in: Use it.
1304         * lib/Makefile.in (INCLUDE, COMPILE): New variables.
1305         (.c.o): Rewrite to be more like src/Makefile.in.
1307         * src/Makefile.in (distclean): Remove .deps.
1308         Include @top_srcdir@/mkdep-Makefile.
1310         * mkdep.Makefile: New file.
1311         * Makefile.in (DISTFILES): Add mkdep-Makefile.
1312         * doc/Makefile.in (mostlyclean): Also remove *.info.
1314 Thu Oct 19 17:38:28 1995  Jim Meyering  (meyering@comco.com)
1316         * od.c: Indent cpp directives.
1318         * tr.c (BEGIN_STATE): Use INT_MAX - 1 so as not to interfere
1319         with large repeat counts.
1320         (struct E_string): New struct.
1321         (find_closing_delim): Take E_string arg rather than char* and length.
1322         (find_bracketed_repeat): Likewise.
1323         (star_digits_closebracket): New function.
1324         (append_char_class): No longer give diagnostic.
1325         (append_equiv_class): Likewise.
1326         (build_spec_list): Give them here instead, allowing string1 like
1327         [:*][:upper:] that got errors before.
1328         Take E_string arg rather than char*.
1329         Convert switch stmts into if-then so as to use ES_MATCH.
1331 Tue Oct 17 22:48:00 1995  Jim Meyering  (meyering@comco.com)
1333         * cat.c: Protoize.  Reorder functions to obviate forward dcls.
1334         Remove forward dcls.
1335         * expand.c: Likewise.
1336         * fold.c: Likewise.
1337         * head.c: Likewise.
1338         * od.c: Likewise.
1339         * sort.c: Likewise.
1340         * tail.c: Likewise.
1342         * src/Makefile.in (OBJECTS): Reflect that all of the above
1343         now use prototypes.
1345         * head.c: Add `const' attribute to dcls of lots of formals.
1347         * sort.c: Add `const' attribute to dcls of lots of formals.
1348         Move struct dcls to precede dcls of file-scope variables.
1349         (monthtab, keyhead): Separate variable dcls from type dcls.
1351 Fri Oct 13 20:38:39 1995  Jim Meyering  (meyering@comco.com)
1353         * join.c (add_field_list): Allow SPACE and TAB as well as `,' as
1354         list item separators, per POSIX spec.
1355         (prjoin): Rewrite loop that iterates over field specs.
1356         Handle case in which file spec is 0.
1358 Sun Oct  8 22:41:15 1995  Jim Meyering  (meyering@comco.com)
1360         * strpbrk.c: New file.
1361         * lib/Makefile.in (SOURCES): Add strpbrk.c.
1362         Remove bcopy.c.
1364 Sat Oct  7 22:27:01 1995  Jim Meyering  (meyering@comco.com)
1366         * join.c (add_field): No longer return a value.
1367         (decode_field_spec): New function.
1368         (add_field_list): Rewrite to be more strict.
1369         Before, `,1.2' was accepted as valid.
1370         (main): Use xstrtol instead atoi.
1371         Combine nearly identical -a and -v cases.
1372         Close input files.
1374 Fri Oct  6 23:10:01 1995  Jim Meyering  (meyering@comco.com)
1376         * join.c (main): Report `too few/many non-option arguments'
1377         then print --help output rather than just the latter.
1378         Properly interpret obsolescent usage like `join -o 2.1 2.1 2.2'.
1379         (usage): Describe POSIX -1, -2 options and deprecate -j* ones
1381         * join.c (usage): Move to precede all other functions.
1383         * join.c: Protoize.
1385 Tue Oct  3 22:44:05 1995  Jim Meyering  (meyering@comco.com)
1387         * csplit.c, sort.c, tac.c: Test SA_INTERRUPT, not _POSIX_VERSION,
1388         to determine whether `sigaction' functions are available.
1389         Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu>.
1390         Fix suggested by Karl Berry.
1392         * md5sum.c (main): Declare counter, N_STRINGS, to be an integral
1393         type, not `char'.
1395         * cut.c: Convert many declarations using `int' to use `unsigned int'
1396         to avoid warnings from `gcc -Wall' about comparing signed and
1397         unsigned types.
1398         (set_fields): Use memset (not open coded loop) to initialize array.
1400 Thu Sep 28 23:16:05 1995  Jim Meyering  (meyering@comco.com)
1402         * Version 1.13.
1404         * Makefile.in (DISTFILES): Remove README.alpha for major release.
1406         * od.c (decode_one_format): Remove spurious semicolon.
1407         From John Kodis (kodis@daacdev1.stx.com).
1409 Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)
1411         * man/Makefile.in (install-data, uninstall): Use sed not basename.
1412         The GNU Coding Standard suggests that only a select set of
1413         relatively standard utilities be used in Makefiles.  basename is
1414         not among them.  Suggested by Ulrich Drepper.
1416 Sun Sep 24 08:36:47 1995  Jim Meyering  (meyering@comco.com)
1418         * cksum.c: Protoize.
1419         * cut.c: Protoize.
1421         * src/Makefile.in (OBJECTS): Reflect that cksum.c and cut.c use
1422         prototypes.
1423         (cksum): Depend on cksum$O.
1424         (cut): Depend on cut$O.
1426 Sat Sep 23 15:43:46 1995  Jim Meyering  (meyering@comco.com)
1428         * Version 1.12.2.
1430         * Makefile.in (DISTFILES): Add README.alpha.
1432         * lib/Makfile.in: (GETOPT, MEMCHR, REGEX): New variables.
1433         (OBJECTS): Use them instead of hardcoding object file names.
1434         Suggested by Ulrich Drepper.
1436         * md5sum.c (md5_check): Distinguish between open/read failure
1437         and checksum mismatch.
1439 Mon Sep 18 23:15:05 1995  Jim Meyering  (meyering@comco.com)
1441         * md5sum.c: Protoize.
1442         * src/Makefile.in (OBJECTS): Change md5sum.o to md5sum$O.
1443         (join.o, md5sum$O, sort.o) Depend on ../lib/long-options.h.
1444         (md5sum): Depend on md5sum$O.
1446         * md5sum.c (main, usage): Remove -h, -s, -v short options.
1447         Rename --verbose to --warn, --quiet to --status.
1448         (main): Handle --help and --version using parse_long_options.
1449         (md5_check): Check ferror.
1451         * sort.c (tempname): Replace `16' with a more readable expansion.
1452         Make sure that counter never exceeds 99999.
1453         (checkfp): Rearrange loop to avoid duplicate test.
1454         Move a couple dcls from function scope into inner block.
1456 Tue Aug  8 21:49:27 1995  Jim Meyering  (meyering@comco.com)
1458         * md5sum.c (main): Fail if either --verbose or --quiet is specified
1459         when not verifying checksums.
1461         * md5sum.c (md5_check): Fail if no valid line is found.
1462         Don't use the word `fail' unless there were failures --
1463         instead, say `all N tests passed.'
1465         * md5sum.c (main) [handling --string option]: Don't output
1466         nonstandard `b' binary flag.  From Greg Troxel (gdt@bbn.com).
1467         * md5-test.rfc: Remove now-inconsistant `b' marker.
1468         (usage): Clarify help message.  With suggestions from Greg Troxel.
1470 Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)
1472         * sort.c (mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
1473         compiler warning.  From Ulrich Drepper.
1475         * pr.c (read_line) [lint]: Initialize CHARS to avoid spurious
1476         compiler warning.  From Ulrich Drepper.
1478         * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
1479         From Franc,ois.
1481 Mon Aug  7 00:02:59 1995  Jim Meyering  (meyering@comco.com)
1483         * system.h (_): Define macro -- as empty for now.
1484         * src/*.c: Annotate localizable strings with _(...).  From Franc,ois.
1486 Sat Aug  5 23:51:25 1995  Jim Meyering  (meyering@comco.com)
1488         * Version 1.12.1.
1490         * configure.in: Add fp_C_PROTOTYPES.
1492 Fri Aug  4 23:21:46 1995  Jim Meyering  (meyering@comco.com)
1494         * src/Makefile.in (DISTFILES): Include ansi2knr.c and ansi2knr.1.
1495         Add suffixes, dependencies, and rules to convert ANSI source to K&R
1496         when required.  Mark tr.o and comm.o as the only such files (for now).
1498         * tr.c: Protoize.
1499         * comm.c: Protoize.
1501         * Makefile.in (DISTFILES): Add aclocal.m4 and acconfig.h.
1502         (configure): Depend on aclocal.m4.
1503         (stamp.h.in): Depend on aclocal.m4 and acconfig.h.
1505 Sun Jul 30 00:01:58 1995  Jim Meyering  (meyering@comco.com)
1507         * md5sum.c (md5_check): Use getline instead of fgets.
1509         * lib/Makefile.in: (SOURCES): Add getline.c.
1510         (OBJECTS): Add getline.o.
1511         (DISTFILES): Add getline.h.
1512         (getline.o): Depend on getline.h.
1514         * md5.c [memcpy]: Define to bcopy if needed.
1515         (md5_buffer): Explicitely cast SWAP expressions to unsigned
1516         to avoid warning.
1518         * lib/Makefile.in (strtoul.o): Depend on strtol.c.
1520         * sort.c (check): Print `disorder on...' message on standard error,
1521         not stdout.  This is a minor concession to POSIX which says
1522         `no output shall be produced...'.
1524         * sort.c (main): Fix -k so it works. -k 2,3 was being treated
1525         like -k 2.  Reported by Marcus Daniels <marcus@sysc.pdx.edu>.
1527 Wed Jul 26 22:54:48 1995  Jim Meyering  (meyering@comco.com)
1529         * man/Makefile.in (install, uninstall): Strip off `.1', not just `1'
1530         before applying $(transform) to manual name.  From Karl Berry.
1532         * md5sum.c (have_read_stdin): New global variable.
1533         (md5_file, md5_check): Set it.
1534         (main): Use it.
1536         * md5sum.c [OPENOPTS]: Depend explicitly on BINARY.
1537         (md5_file): Take a new parameter, MD5_RESULT, and no longer
1538         generate output.
1539         (md5_check): Invoke md5_file instead of calling fopen directly.
1540         When giving a diagnostic for a line with invalid format, also report
1541         the line number.
1542         (main): Generate output after a successful md5_file call.
1543         [in many places]: Upon detection of an error, rather than exiting
1544         immediately, issue a diagnostic, note that an error occurred and
1545         exit later.
1547 Mon Jul 24 21:48:26 1995  Jim Meyering  (meyering@comco.com)
1549         * tail.c (tail_bytes) [from_start]: For regular files, seek
1550         relative to the initial input file pointer position, not
1551         necessarily from the beginning of the file.
1552         [!from_start]: Don't back up past the initial position of the
1553         input file pointer.
1554         (tail_lines): Call file_lines only if FD refers to a regular file
1555         with its file pointer positioned at beginning of file.  Otherwise,
1556         call pipe_lines.  This is a kludge.  Once there's a decent test
1557         suite, fix this properly.
1558         Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k
1559         would output both lines of the input file even though the first had
1560         already been read.  Reported by John Roll (john@panic.harvard.edu).
1562         * md5sum.c [_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower.
1564         * csplit.c (main): When too few arguments are given, don't just
1565         issue the usage message; also report why.
1567 Sat Jul 22 00:16:01 1995  Jim Meyering  (meyering@comco.com)
1569         * md5sum.c (md5_check): New function -- extracted from main.
1571 Fri Jul 21 01:21:49 1995  Jim Meyering  (meyering@comco.com)
1573         * md5sum.c (md5_file): New function -- extracted from main.
1574         (main): Call the new function instead of doing all that in an
1575         if-stmt. Always use "%s" format rather than raw filename as
1576         format argument in printf-style functions like error.  Otherwise,
1577         filenames containing `%' are likely to lose.
1578         Remove all mention of `old format'.
1579         (split_3): No longer parse the `new format.'  There is only one
1580         valid format now: the compatible one.
1582         * lib/Makefile.in: (SOURCES): Add md5.c.
1583         (OBJECTS): Add md5.o.
1584         (DISTFILES): Add md5.h.
1585         (md5.o): Depend on md5.h.
1587         * system.h [!EXIT_FAILURE, !EXIT_SUCCESS]: Define them.
1588         * lib/md5.c (md5_stream): Check for read failure and return
1589         indication of success rather than second argument.
1590         * lib/md5.h (md5_stream): Update prototype.
1591         [__P]: Define macro.
1592         * md5sum.c: Use EXIT_FAILURE and EXIT_SUCCESS.
1593         (main): Report an error if md5_stream fails.  Otherwise, running
1594         `md5sum dir-on-mounted-filesystem' always reported the checksum
1595         for an empty file.  Now it gets the `is a directory' error.
1596         Greg McGary (gkm@magilla.cichlid.com) reported that the released
1597         version got stuck in an infinite loop with such arguments.
1599         * lib/md5.c: New file.
1600         * lib/md5.h: New file.
1601         * md5sum.c: Rewritten to use library interface.
1602         From Ulrich Drepper.
1604 Sun Jul 16 18:42:34 1995  Jim Meyering  (meyering@comco.com)
1606         * configure.in: Add AC_C_INLINE: md5sum.c uses inline keyword.
1608 Tue Jul 11 21:56:02 1995  Jim Meyering  (meyering@comco.com)
1610         * md5sum.c Add #else block after #ifdef VMS.
1611         (main): Rename local variable.
1612         Detect and report failed fclose calls on stdout and checkfile_stream.
1614         * tr.c (unqote): Comment out unreachable break stmts.
1615         (append_range): Declare FIRST and LAST parameters to be unsigned int,
1616         not size_t.
1617         (find_closing_delim): Clean up interface, separating boolean success
1618         indicator and index.
1619         (find_bracketed_repeat): Likewise.
1620         (build_spec_list): Adapt to use new interfaces.
1621         Declare CLOSING_DELIM_IDX and CLOSING_BRACKET_IDX to be of
1622         type size_t, not int.
1623         (main): Declare NR and CHARS_READ to be of type long, not int.
1625         * sort.c (main): Comment out unreachable break stmt.
1627         * tail.c (tail): Explicitly cast to long the N_UNITS argumennt in
1628         call to tail_lines.  Otherwise, NetBSD lost because N_UNITS (of type
1629         off_t, a 64-bit type on NetBSD) wasn't converted to the target type,
1630         long.  Reported by Dan Hagerty (hag@gnu.ai.it.edu).
1632         * comm.c: Reorder functions so main is last, so no forward dcls
1633         are needed.
1635 Sun Jul  9 11:41:15 1995  Jim Meyering  (meyering@comco.com)
1637         * sort.c (main): When using obsolescent +pos -pos syntax, allow
1638         omission of field spec only when character offset is specified.
1639         Otherwise, -. +. would be accepted.
1641 Sat Jul  8 13:48:06 1995  Jim Meyering  (meyering@comco.com)
1643         * sort.c (main): Allow field spec, M, to be omitted in +M.N or -M.N
1644         position specification.  For compatibility with existing practice
1645         (what vendors?), omitting M is now equivalent to specifying `0' for M,
1646         but only when using the +pos -pos syntax, not with the -k option.
1647         From Rick Sladkey (jrs@world.std.com).
1649 Thu Jul  6 23:44:20 1995  Jim Meyering  (meyering@comco.com)
1651         * od.c (dump): Correct loop-termination criterion.
1652         Before, running `printf 1234| ./od --width=4 --read-bytes=4'
1653         printed output for 8 bytes -- the last four were garbage.
1654         This happened only when the dump limit, N, was specified (with
1655         --read-bytes=N) and N was a multiple of bytes_per_block
1656         (usually 16, but 4 in this example).  From Andreas Schwab.
1658 Sun Jul  2 22:12:40 1995  Jim Meyering  (meyering@comco.com)
1660         * lib/Makefile.in (check): Depend on libtu.a.
1662         * md5sum.c (split_3): Rewrite to parse Plumb/Lankester format as well.
1663         (main): Print each sum line in (de facto) standard Plumb/Lankester
1664         format.
1665         New option: --quiet.
1666         Check option no longer takes an argument.
1667         When checking, exit status reflects success.
1669 Sat Jun 24 16:18:01 1995  Jim Meyering  (meyering@comco.com)
1671         * md5sum.c [__GNUC__]: Don't conditionalize use of "inline".
1672         Autoconf (via config.h) defines it away for compilers that don't
1673         grok it.
1675         * cat.c, comm.c, join.c, sort.c, uniq.c: Undefine min/max before
1676         defining to avoid redefinition warning on some systems.
1678         * csplit.c (read_input): Rename paramater MAX to MAX_N_BYTES.
1679         This avoids potential conflict with max macro from some system's
1680         header files when using bad pre-ANSI compilers.
1682         * uniq.c (usage): Fix typo in text of --help output.
1683         From Steve McConnel <steve@acadcomp.sil.org>
1685         * md5sum.c [uint32]: When testing for 32-bit arithmetic type,
1686         also check `unsigned long', as a concession to systems with
1687         int's smaller than 32 bits.
1689         * configure.in (AC_REPLACE_FUNCS): Remove memcmp (again!) since
1690         AC_FUNC_MEMCMP already handles it.  This avoids warnings from
1691         ranlib on nextstep systems.  From Kaveh Ghazi.
1693         * csplit.c (interrupt_handler): Declare to have a single integer
1694         parameter.  Otherwise, some compilers fail with a type mismatch
1695         error in sa_handler assignment.
1697         * fmt.c [word]: Redefine.  Otherwise, systems (Unicos for one) with
1698         headers that typedef `word' get syntax errors because of the
1699         variable by the same name.
1701         * join.c [join]: Redefine to avoid conflict with prototype in some
1702         system header file.  Also for Unicos.
1704         * md5sum.c (main): Remove spurious colon in getopt spec string.
1705         From Ken Pizzini <kenp@spry.com>.
1707 Tue Jun 20 06:59:16 1995  Jim Meyering  (meyering@comco.com)
1709         * md5sum.c (md5_file): Initialize two elements of LEN portably,
1710         rather than with ANSI aggregate initialization.  Reported by
1711         Edzer Pebesma <Edzer.Pebesma@rivm.nl>.
1713 Sun Jun 18 09:15:57 1995  Jim Meyering  (meyering@comco.com)
1715         * Version 1.12.
1717         * md5sum.c (process_buffer): Copy values from struct into
1718         individual local variables before performing computation on them,
1719         then copy results back into returned struct.  Solely for better
1720         optimization by compilers that can't keep struct members in
1721         registers.  From Ulrich Drepper.
1723 Thu Jun 15 22:09:14 1995  Jim Meyering  (meyering@comco.com)
1725         * md5sum.c: Remove unnecessary uses of `defined' in #if* tests.
1726         Don't use #elif.  Some older compilers don't grok it.
1727         (split_3): New function to parse out sum, flag, and filename
1728         when reading check file.
1729         (hex_digits): Remove length parameter since string parameter is
1730         now nul-terminated.
1731         (main): Don't allocate separate arrays for filename and sum
1732         when checking.  Get pointers into line buffer with split_3 instead
1733         of using sscanf.
1734         (main): Treat `no file args' just like `-' when not checking
1735         or using strings.
1736         (hex_digits): Unprotoize.
1738         * md5sum.c (main): Don't use a separate loop to convert to lower
1739         case.  Suggested by Ulrich Drepper.
1740         (CLOSE): New macro.
1741         (md5_file): Use it.
1742         From Ulrich Drepper.
1744         * md5sum.c: Don't include values.h.
1745         [__P]: Undefine it.
1747         * md5sum.c: [UNIX || unix]: Also test __UNIX__, __unix__,
1748         and _POSIX_VERSION.  Reported by Arne H. Juul.
1750 Tue Jun 13 21:20:10 1995  Jim Meyering  (meyering@comco.com)
1752         * tr.c [NDEBUG]: Define it to disable assertions.  Some systems
1753         have a broken <assert.h> header.
1754         (is_char_class_member): Set a variable in each branch of switch
1755         stmt and return that value after the switch (rather than returning
1756         directly from every branch).
1757         (unquote): More int->size_t changes.
1758         (build_spec_list): More int->size_t changes.
1759         Be very careful about comparison now that variables are unsigned:
1760         Use i + 2 < len rather than i < len - 2.  The latter didn't work
1761         for len < 2.  Caught early thanks to a thorough regression test
1762         suite.
1764 Mon Jun 12 23:07:59 1995  Jim Meyering  (meyering@comco.com)
1766         * sort.c (xfclose): Don't try to flush stdin, only stdout.
1767         Otherwise, at least Ultrix-4.3's fflush would return EOF.
1768         Reported by Jim Blandy (jimb@cyclic.com).
1770         * tr.c (non_neg_strtol): Don't compare signed and unsigned.
1771         [struct Spec_list] (indefinite_repeat_element): New member.
1772         Use size_t rather than int or unsigned long where reasonable.
1773         (get_spec_status): Make interface cleaner.
1774         (get_s1_spec_status): New function.
1775         (get_s2_spec_status): New function.
1776         (validate): Use new functions instead of get_spec_status.
1778 Sun Jun 11 00:39:50 1995  Jim Meyering  (meyering@comco.com)
1780         * md5sum.c: New file.  From Ulrich Drepper.
1781         * md5-test.rfc: New file.
1782         * Makefile.in: (PROGS): Add md5sum.
1783         (check): Run a recursive make in each subdirectory.
1784         * man/Makefile.in: (MANFILES): Add md5sum.1.
1785         * src/Makefile.in: (SOURCES): Add md5sum.c.
1786         (OBJECTS): Add md5sum.o.
1787         (PROGS): Add md5sum.
1788         (check): Add basic checks for md5sum.
1789         (md5sum): Add dependency and link rule.
1790         (DISTFILES): Add md5-test.rfc.
1792         * tr.c (look_up_char_class, append_char_class, append_equiv_class):
1793         Use const attribute when appropriate.
1795 Sun May 28 14:48:58 1995  Jim Meyering  (meyering@comco.com)
1797         * join.c: Overhauled to make -a1 and -a2 options work.
1798         Passed all tests in a fairly thorough test suite.
1799         Reported by Michael Hasselberg (mikelh@zonta.ping.de).
1801 Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)
1803         * tail.c (main): Remove dcl of and statements that set now-unused
1804         variable.
1806         * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
1807         Without this, SunOS doesn't get type for memchr.
1808         Reported by Kaveh Ghazi.
1810 Thu May 25 00:06:50 1995  Jim Meyering  (meyering@comco.com)
1812         * tail.c (tail_lines): Change one more `long' to `off_t'.
1813         Otherwise, tail didn't work on NetBSD.  From Arne H. Juul.
1815         * csplit.c [struct control]: Change type of `repeat' to unsigned
1816         long to avoid conversion warning.
1818 Sun May 21 07:50:00 1995  Jim Meyering  (meyering@comco.com)
1820         * Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.
1822         * xstrtol.c (__strtol): Remove prototype altogether.
1823         Move inclusion of xstrtol.h back so that it follows system headers.
1825         * Version 1.11.2.
1827 Sat May 20 06:44:14 1995  Jim Meyering  (meyering@comco.com)
1829         * join.c (ADD_FIELD): Declare in K&R style, not ANSI.
1830         From Kaveh Ghazi.
1832         * xstrtol.c: Define NDEBUG for systems with losing assert.h.
1833         (__strtol): Add __unsigned to prototype and use __P.
1834         Move inclusion of xstrtol.h to precede prototype.
1835         From Kaveh Ghazi.
1837         * memmove.c: Include config.h for definition of const.
1838         From Kaveh Ghazi.
1840         * All Makefile.in (install-exec, install-exec): New targets.
1841         From Karl Berry.
1843         * tr.c (look_up_char_class): Take a string length argument -- required
1844         because the argument is a string that is *not* NUL-terminated.
1845         Use strncmp, not strcmp and add string lengths comparison.
1846         (append_char_class): Update caller.  Before this change,
1847         tr '[:upper:]' '[:lower:]' read one uninitialized byte.
1848         From Andreas Schwab.
1850         * split.c (next_file_name): Move dcls of file-scope variables into
1851         this function.  Don't rely on arithmetic being two's complement.
1853         * paste.c [CLOSED, ENDLIST]: Don't cast constants to FILE pointers.
1854         Instead, declare two FILE structs and use their addresses.
1856         * csplit.c (record_line_starts): Remove set-but-not-used,
1857         file-scope variable.
1859 Sat May 13 08:57:20 1995  Jim Meyering  (meyering@comco.com)
1861         * all source files (usage): Include one- or two-line synopsis
1862         in --help output.  From Karl Berry.
1864         * lib/Makefile.in [.c.o]: Remove -I. since safe-l?stat.h are no
1865         longer used.
1867 Wed May 10 22:26:35 1995  Jim Meyering  (meyering@comco.com)
1869         * Version 1.11.1
1871 Sun May  7 13:35:49 1995  Jim Meyering  (meyering@comco.com)
1873         * all Makefile.in (maintainer-clean): Renamed from realclean
1874         per GNU Standards.
1876 Thu May  4 23:15:58 1995  Jim Meyering  (meyering@comco.com)
1878         * sort.c (main): Use stat, not safe_stat.  The latter was unnecessary.
1879         Don't include safe-stat.h.
1881         * lib/Makefile.in (DISTFILES): Remove safe-xstat.hin.
1882         Remove all associated rules.  safe-l?stat.h are no longer used.
1884         * sort.c Don't hard-code /tmp.
1885         [DEFAULT_TMPDIR]: Use this instead.
1886         * tac.c (save_stdin): Likewise.
1888         * sort.c (set_ordering): Properly parse arguments like `+x.yn'.
1889         Reported by John Salmon (johns@mullet.anu.edu.au).
1890         Patch from Mike Haertel.
1892 Wed Apr 26 23:48:13 1995  Jim Meyering  (meyering@comco.com)
1894         * sort.c (tempname): AND-off high bits of pid so that its decimal
1895         string representation is no longer than five digits.
1896         From Hans Verkuil (hans@wyst.hobby.nl).
1898 Thu Apr 20 23:09:33 1995  Jim Meyering  (meyering@comco.com)
1900         * expand.c (add_tabstop): Give correct size when reallocating
1901         tab_list buffer.  From Geoff Odhner (geoff@franklin.com).
1902         Reproduce with expand --t=`perl -e "print join (',', (1..300));"`.
1904 Tue Apr 18 22:57:43 1995  Jim Meyering  (meyering@comco.com)
1906         * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
1907         unnecessary conflicts for people using version control software
1908         like RCS and CVS.
1909         (AC_ARG_PROGRAM): Use it.
1911 Thu Apr 13 23:22:57 1995  Jim Meyering  (meyering@comco.com)
1913         * head.c: Remove block of redundant comments describing options.
1914         (usage): Remove reference to -l option.  It's not valid.
1916         * od.c (write_block): Declare index I as unsigned int, not int.
1917         (get_lcm): Likewise.
1918         (dump_strings): Likewise.
1919         (main): Likewise.
1920         (dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
1921         (dump_strings): Declare bufsize to be of type size_t, not int.
1923         * split.c (next_file_name): Don't reuse X as an index.
1924         Declare new variable I instead.
1926 Sat Mar 25 15:07:23 1995  Jim Meyering  (meyering@comco.com)
1928         * csplit.c: Declare as `unsigned int' all variables that were
1929         just `unsigned'.
1930         (make_filename): Change type of arg to unsigned int.
1931         (split_file): Change type of indices to unsigned int.
1933 Thu Mar 16 22:05:05 1995  Jim Meyering  (meyering@comco.com)
1935         * od.c (main): Detect and fail when argument to -N is too large
1936         to fit in an off_t.
1938 Sun Mar 12 12:02:39 1995  Jim Meyering  (meyering@comco.com)
1940         * configure.in (AC_REPLACE_FUNCS): Add memcmp.c.
1941         Remove check for sizeof long.
1943         * linebuffer.h: Undefine __P before defining it.
1944         * long-options.h: Likewise.
1945         * xstrtol.h: Likewise.
1947         * memcpy.c: New file.
1948         * lib/Makefile.in (SOURCES): Add memcpy.c.
1950 Fri Mar 10 21:14:11 1995  Jim Meyering  (meyering@comco.com)
1952         * src/*.c: Update Copyright dates.
1954 Sat Feb 11 07:31:08 1995  Jim Meyering  (meyering@comco.com)
1956         * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
1957         Separate errno declaration from STDC_HEADERS.
1959         * wc.c (wc): For efficiency, handle separately the cases in which
1960         words need not be counted.  Suggested by Karl Heuer.
1962         * wc.c (wc): Don't overcount the number of bytes when reading
1963         from a regular file on stdin with file pointer not at BOF.
1964         From Karl Heuer <karl@gnu.ai.mit.edu>.  Before, the command
1965         `(dd ibs=99k skip=1; wc -c) < /etc/group' made wc wrongly output
1966         the size of the file.  Now it outputs `0'.
1968 Sat Jan 28 07:07:23 1995  Jim Meyering  (meyering@comco.com)
1970         * cat.c (cat): Use memmove rather than bcopy.
1971         * csplit.c (load_buffer): Use memcpy rather than bcopy.
1972         (extract_regexp): Use strrchr, not rindex.
1973         * fmt.c (isopen, isclose, isperiod): Use strchr, not index.
1974         (flush_paragraph): Use memmove instead of bcopy.
1975         * fold.c (fold_file): Use memmove instead of bcopy.
1976         * od.c (decode_format_string): Use memmove instead of bcopy.
1977         [EQUAL_BLOCKS]: Use memcmp, not bcmp.
1978         (parse_old_offset): Use strchr, not index.
1979         (dump): Use memset, not bzero.
1980         * sort.c (checkfp, mergefps): Use memcpy instead of bcopy.
1981         (fillbuf): Use memmove instead of bcopy.
1982         * split.c (main): Use memset, not bzero.
1983         (line_bytes_split): Use memmove instead of bcopy.
1984         * tac.c (tac): Use memmove instead of bcopy.
1985         (output): Use memcpy instead of bcopy.
1986         * tail.c (pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
1987         * tr.c (substr): Use memcpy instead of bcopy.
1988         (card_of_complement, set_initialize): Use memset, not bzero.
1990         * tr.c (substr): Don't allocate a byte for trailing NUL in result
1991         since the result needn't be NUL-terminated.  Don't NUL terminate it.
1993         * configure.in (AC_REPLACE_FUNCS): Check for memmove and memcpy,
1994         not bcopy.
1995         (AC_CHECK_FUNCS): Add strchr and strrchr.
1997         * lib/Makefile.in (SOURCES): Add memmove.c and memcpy.c.
1998         * memmove.c: New file.
1999         * memcpy.c: New file.
2001 Tue Jan 24 22:18:19 1995  Jim Meyering  (meyering@comco.com)
2003         * fmt.c (copy_rest): Replace `||' with `&&'.  Before, a paragraph
2004         not followed by a newline would be followed by data copied from
2005         uninitialized storage.  Repeat by `printf abc|fmt|od -ac'.
2006         Reported by Franc,ois Pinard.
2008         * od.c: Rename macros with FP_ prefix.  Use FLOAT_ instead.
2009         AIX-2.2.1 declares a typedef, FP_DOUBLE, that conflicted.
2010         Be careful to use off_t instead of explicit `unsigned long'.
2011         Otherwise, systems like 4.4BSD lose on calls to fseek that
2012         expect off_t (which is long long on that system).
2013         (parse_old_offset): Use xstrtoul
2014         (main): Likewise.
2016         * src/Makefile.in (od.o, tail.o): Depend on ../lib/strtol.h.
2018 Mon Dec 19 22:13:55 1994  Jim Meyering  (meyering@comco.com)
2020         * tail.c (numerous functions): Give char* filename arguments the
2021         const attribute.
2023         * lib/Makefile.in (SOURCES): Remove xwrite.c.  It was no longer used.
2024         Add xstrtol.c and xstrtoul.c.
2025         (OBJECTS): Likewise for .o files.
2026         (DISTFILES): Add error.h and xstrtol.h and xstrtoul.h.
2028         * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
2029         (distclean): Remove references to safe-l?stat.c.
2030         Remove all related rules and dependencies.
2032         * src/Makefile.in: $(OBJECTS): Depend on ../lib/error.h.
2034 Thu Dec 15 23:14:04 1994  Jim Meyering  (meyering@comco.com)
2036         * tail.c (tail_file): Fix call to error with %s in format, but
2037         no corresponding argument.
2039         * src/*.c: Include "error.h" instead of simply declaring
2040         `void error ();'.
2041         * od.c (main): Use %lu, not %d for unsigned long.
2042         (my_strtoul, uint_fatal_error): Remove functions.  Use xstrtoul
2043         and STRTOL_FATAL_ERROR instead.
2045 Sun Dec 11 17:24:09 1994  Jim Meyering  (meyering@comco.com)
2047         * sort.c (main): Fix interpretation of field offsets when specified
2048         via -k option.  They were being interpreted as zero-indexed.  POSIX
2049         says they are 1-based indices.  From Rik Faith <faith@cs.unc.edu>.
2050         (keycompare): Don't ignore characters at the end of words when
2051         otherwise they would compare equal.  From Rik Faith.
2053         * tail.c (<most functions>): Change the type of n_units/n_lines/n_bytes
2054         to off_t because n_bytes is used as the option to fseek and off_t may
2055         be long long (e.g. on BSD4.4).  The only place where a 32-bit limit is
2056         imposed is in the string-to-integer converstion of xstrtol.
2057         (main): Use xstrtol instead of manual string to integer conversion.
2059         * csplit.c (get_format_width, get_format_prec): Use ISDIGIT instead of
2060         comparisons against '0' and '9'.
2062         * tr.c [!ULONGMAX]: Define it.
2063         [!LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
2065         * full-write.c: Declare (or not) errno based on definedness or
2066         errno, not STDC_HEADERS.
2067         * safe-read.c: Likewise.
2068         * xwrite.c: Likewise.
2070 Thu Nov 17 06:37:33 1994  Jim Meyering  (meyering@comco.com)
2072         * tail.c (dump_remainder): Flush standard output just before
2073         sleeping so that `tail -f' will output partial lines sooner.
2074         This applies only when following the end of a single file.
2075         From Leonard N. Zubkoff <lnz@dandelion.com>.
2077         * tail.c (file_lines, pipe_lines, pipe_bytes, start_bytes,
2078         start_lines, dump_remainder): Use STDOUT_FILENO instead of `1' in
2079         XWRITE calls.
2080         * tac.c (output): Use STDOUT_FILENO instead of `1' in xwrite call.
2081         * system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Define if
2082         not already defined.
2084 Wed Nov 16 07:01:38 1994  Jim Meyering  (meyering@comco.com)
2086         * tr.c: Include <getopt.h> instead of "getopt.h".
2088         * sort.c (tempname): Merge two very similar sprintf stmts into one.
2090         * tail.c: Use BUFSIZ instead of BUFSIZE.
2092         * cut.c: Declare DELIM to be `int' rather than unsigned char.
2094         * fmt.c: Use index, not strchr -- per GNU Standards.
2095         Reported by Kaveh Ghazi.
2096         Always include <config.h>.
2097         (main): Include program name in --version output.
2099 Sun Nov 06 00:17:21 1994  Jim Meyering  (meyering@comco.com)
2101         * Version 1.11.
2103 Sat Nov 05 15:14:44 1994  Jim Meyering  (meyering@comco.com)
2105         * memcmp.c, srtoul.c: Use up-to-date versions.
2106         Reported by Franc,ois Pinard.
2108         * src/Makefile.in (DEFS): Remove -Dlint... again.
2110         * src/Makefile.in (PROGS): Add fmt!
2111         Reported by Andreas Stolcke (stolcke@ICSI.Berkeley.EDU).
2113 Fri Nov 04 17:26:16 1994  Jim Meyering  (meyering@comco.com)
2115         * Version 1.10.
2117 Thu Nov 03 23:23:08 1994  Jim Meyering  (meyering@comco.com)
2119         * linebuffer.h: Use __P instead of _P since the latter conflicts
2120         with a definition in some <ctype.h>.  From Kaveh Ghazi.
2122 Wed Nov 02 17:36:34 1994  Jim Meyering  (meyering@comco.com)
2124         * tr.c: Add const attribute where appropriate.
2126         * tail.c (BUFSIZ): Use definition from <stdio.h>.
2128 Tue Nov 01 23:54:09 1994  Jim Meyering  (meyering@comco.com)
2130         * tail.c (XWRITE): Allow n_bytes == 0 but call fwrite only if
2131         n_bytes is positive.  Turn off assertions.  `tail /dev/null' was
2132         getting a failed assertion.  Reported by Doug McLaren
2133         (dougmc@comco.com).
2135         * cut.c (cut_bytes): Print at least a newline for every line of input.
2136         (cut_fields): Print a newline even for lines whose only selected
2137         field is empty.  But print nothing when using -s without -f1.
2138         And print nothing for empty input.  Reported by
2139         Richard_Sharman@software.mitel.com.
2141 Tue Nov 01 06:05:23 1994  Jim Meyering  (meyering@comco.com)
2143         * fmt.c: Change #ifdef __STDC__ to #if defined (__STDC__) && __STDC__.
2144         * linebuffer.h: Likewise.
2146 Mon Oct 31 06:53:32 1994  Jim Meyering  (meyering@comco.com)
2148         * configure.in (AC_REPLACE_FUNCS): Remove memcmp since AC_FUNC_MEMCMP
2149         already handles it.  From Kaveh Ghazi.
2151         * {lib,src}/Makefile.in (DEFS): Don't use -Dlint.  Some systems
2152         get failures when it's defined.  From Kaveh Ghazi.
2154         * cat.c (cat): Conditionalize test for errno == ENOSYS.  It's not
2155         defined on some Next and Alliant systems.  From Kaveh Ghazi.
2157         * sort.c join.c (main): Include version.h and call parse_long_options
2158         with the proper number of arguments.  Reported by Franc,ois Pinard.
2160 Sun Oct 30 01:30:41 1994  Jim Meyering  (meyering@comco.com)
2162         * (configure.in): Add AC_OFF_T and rearrange by type along the
2163         same lines as autoscan.
2165         * fmt.c, fmt.1: New files.
2166         Both from Ross Paterson (rap@doc.ic.ac.uk).
2168         * Makefile.in (PROGS): Add fmt.
2169         * src/Makefile.in (SOURCES, OBJECTS): Add fmt.c and fmt.o respectively.
2170         (fmt): Add a link rule.
2171         * man/Makefile.in (MANFILES): Add fmt.1.
2173 Sat Oct 08 10:44:30 1994  Jim Meyering  (meyering@comco.com)
2175         * Makefile.in (All of them): Update from the ones in sh-utils.
2176         From now on, rules and definitions that are comon to the fileutils,
2177         textutils, and sh-utils will get ChangeLog entries only in the
2178         sh-utils.
2180 Tue Oct 04 20:42:46 1994  Jim Meyering  (meyering@comco.com)
2182         * od.c (my_strtoul): Set errno to zero before calling strtoul.
2183         Otherwise, od can fail complaining about a valid integer argument.
2184         From Andreas Schwab.
2186 Sun Oct 02 17:57:09 1994  Jim Meyering  (meyering@comco.com)
2188         * tr.c (main): Give an error and fail when squeezing repeats
2189         and no non-options are given.  Reported by Tony Robinson
2190         (ajr@eng.cam.ac.uk).
2192         * sort.c (main): Temporarily copy each input file that might be
2193         another name for the output file.  When in doubt (e.g. a pipe),
2194         copy.  This allows the dangerous (historical -- in cnews) idiom
2195         `cat file | sort -o file' to work properly.  Don't rely on this
2196         behavior in new shell scripts.  From Paul Eggert (eggert@twinsun.com).
2198 Mon Sep 26 18:01:47 1994  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
2200         * lib/xwrite.c safe-read.c memchr.c linebuffer.c full-write.c:
2201         Remove CONFIG_BROKETS ifdef.
2202         * src/Makefile.in lib/Makefile.in: Don't define it.
2204 Sat Sep 24 21:26:27 1994  Jim Meyering  (meyering@comco.com)
2206         * full-write.c (full_write): Declare argument LEN to be size_t.
2208 Mon Sep 12 13:35:27 1994  Jim Meyering  (meyering@comco.com)
2210         * tail.c (tail_file): [For multiple files only]: Report truncation
2211         of monitored file and reset current file size.  From Franc,ois Pinard.
2213 Sat Aug 27 16:57:20 1994  Jim Meyering  (meyering@comco.com)
2215         * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
2216         From Franc,ois Pinard.
2218 Tue Jul 26 11:33:53 1994  Jim Meyering  (meyering@comco.com)
2220         * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
2221         decides whether to include <fcntl.h>.  From Francois Pinard.
2223 Wed Jul 13 12:33:34 1994  Jim Meyering  (meyering@comco.com)
2225         * tr.c (substr): Fix off-by-one allocation error.
2227 Wed Jun 22 01:02:50 1994  Jim Meyering  (meyering@comco.com)
2229         * tac.c (tac_file): Use O_RDONLY instead of zero in call to open.
2230         (tac): Fix typo that had `1' as arg #2 of error after failed read.
2231         Use errno instead.  From Michael I Bushnell <mib@gnu.ai.mit.edu>.
2233 Thu May 26 08:46:32 1994  Jim Meyering  (meyering@comco.com)
2235         * configure.in [INSTALL]: Revert change of March 25.  autoconf
2236         has been fixed.
2238 Mon Apr 11 17:25:43 1994  Jim Meyering  (meyering@comco.com)
2240         * join.c (prline): Remove unused function.  Indent.
2242 Fri May  6 05:44:24 1994  Jim Meyering  (meyering@comco.com)
2244         * tail.c (tail_forever): Don't print headers when asked not to.
2245         From Karsten Thygesen <karthy@kom.auc.dk>.
2247         * wc.c (wc): Optimize for the case when only bytes are being counted
2248         and the input is not a regular file.  From Jeff Moore <jbm@mordor.com>.
2250 Sun Apr 24 10:54:08 1994  Jim Meyering  (meyering@comco.com)
2252         * configure.in [AC_SIZEOF_TYPE]: Update for autoconf-1.9.
2253         * memchr.c: Test SIZEOF_LONG instead of LONG_64_BITS.
2255 Mon Apr 11 17:55:52 1994  Jim Meyering  (meyering@comco.com)
2257         * csplit.c (struct control): Add new field, repeat_forever.
2258         Remove now-unneeded definition of INT_MAX.
2259         (process_regexp): Test repeat_forever instead of comparing `repeat'
2260         to INT_MAX.
2261         (split_file): Don't even reference `repeat' count if repeat_forever
2262         is set.
2263         (new_control_record): Initialize repeat_forever field.
2264         (parse_repeat_count): Set it instead of setting repeat count to
2265         INT_MAX.
2266         (process_line_count): Abort for internal error instead of calling
2267         handle_line_error.
2269         * long-options.c (parse_long_options): Take a new argument indicating
2270         the utility name (e.g. "join", not "gjoin") for version output.
2271         Print both the utility and the package names, e.g. `join - GNU
2272         textutils-1.9.1' instead of just the package name.
2274         * join.c (main): Call parse_long_options with program name arg.
2275         * sort.c (main): Ditto.
2277         * All source except sort.c and join.c (main): Change --version output
2278         to include utility name as well as package name and version info.
2280 Wed Mar 30 08:53:21 1994  Jim Meyering  (meyering@comco.com)
2282         * configure.in: Use AC_SET_MAKE.
2283         * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
2285 Mon Mar 28 09:55:05 1994  Jim Meyering  (meyering@comco.com)
2287         * tr.c (main): In addition to the --help usage pointer, give an
2288         explicit error message for too many arguments.
2290 Fri Mar 25 18:11:19 1994  Jim Meyering  (meyering@comco.com)
2292         * configure.in: Use AC_VERBOSE, AC_CHECKING, and AC_WARN instead
2293         of explicit echo commands.
2294         [INSTALL]: When AC_PROG_INSTALL resorts to setting this to
2295         `./install.sh', make it `../install.sh' instead since that
2296         script will be invoked only from subdirectories.
2297         [AC_SIZEOF_TYPE]: Use this instead of deprecated AC_LONG_64_BITS.
2299         * cat.c (cat): The command `:|cat -s' failed on Irix5 because
2300         ioctl (d, FIONREAD,... now returns ENOSYS for pipes -- under Irix4
2301         it returned EINVAL.  Detect this.
2302         (main) [lint]: Initialize variables to suppress `used before
2303         initialized' warnings.
2305         * csplit.c: Change long option name from --suffix to --suffix-format.
2307         * od.c (skip): Correct a comment.
2308         (main): Don't output anything to stdout if the sole input file
2309         doesn't exist.  Reported by Bauke Jan Douma <bjd@dds.hacktic.nl>.
2311         * od.c (dump) [lint]: Initialize a variable to suppress `used before
2312         initialized' warning.
2313         (main) [lint]: Ditto.
2314         * paste.c (paste_parallel) [lint]: Ditto.
2316 Fri Jan 28 11:02:21 1994  Jim Meyering  (meyering@comco.com)
2318         * configure.in: Don't set LDFLAGS since linking now uses both
2319         LDFLAGS and CFLAGS.
2321 Wed Jan 18 16:14:00 1994  Jim Meyering  (meyering@comco.com)
2323         * unexpand.c (unexpand): Don't segfault when given a name of a
2324         nonexistent file.
2325         * expand.c (expand): Ditto.
2326         Both from Bauke Jan Douma <bjd@dds.hacktic.nl>.
2328 Thu Jan 13 17:27:38 1994  Jim Meyering  (meyering@comco.com)
2330         * src/Makefile.in: Change all link commands to use both $(CFLAGS)
2331         and $(LDFLAGS).
2333         * csplit.c (load_buffer): Rather than incrementing buffer size,
2334         double it each time we fail to find a newline.  Otherwise, csplit
2335         would run out of memory when processing files with very long lines.
2337 Mon Jan 10 01:20:38 1994  Jim Meyering  (meyering@comco.com)
2339         * man/Makefile.in (manprefix): Use binprefix as the default.
2341 Sat Jan 08 22:22:45 1994  Jim Meyering  (meyering@comco.com)
2343         * cat.c: Use full_write and safe_read instead of write and read resp.
2344         * csplit.c: Ditto.
2345         * head.c: Ditto.
2346         * split.c: Ditto.
2347         * tac.c: Ditto.
2349         * sum.c: Use safe_read instead of read.
2350         * tr.c: Ditto.
2351         * wc.c: Ditto.
2353         * tail.c: Replace calls to xwrite with calls to fwrite.
2354         Use fopen/fclose instead of open/close.
2355         (write_header): Use a single call to printf instead of four to xwrite.
2356         Use safe_read instead of read.
2357         * head.c: Ditto.
2359 Tue Dec 28 15:49:32 1993  Jim Meyering  (meyering@comco.com)
2361         * install.sh: New file.
2362         Makefile.in [DISTFILES]: Add it.
2364 Wed Dec 22 18:52:44 1993  Jim Meyering  (meyering@comco.com)
2366         * memcmp.c: Use the latest version from the GNU C library.
2368         * cut.c [ADD_RANGE_PAIR]: New macro.
2369         (set_fields): Collect the list of all selected ranges before
2370         allocating and initializing the boolean lookup table.
2371         (cut_bytes, cut_fields): Complete rewrite.  Avoid copying
2372         into buffer whenever possible.  Properly handle input without
2373         trailing newline.
2374         (getstr): New function.  Copied from getline.c, but with minor changes.
2376         * sort.c (main): Properly handle -Tdir.
2377         Before, `sort -T/var/tmp' gave `sort: unrecognized option `-v''.
2378         Reported by Kristoffer Rose (kris@diku.dk).
2380         * cut.c (main): Give separate errors for `-s without -f'
2381         and `-d without -f'.
2382         (main): Now -d '' means `use the NUL byte as the delimiter'.
2383         Before, it got an error.
2385 Mon Dec 20 23:29:30 1993  Jim Meyering  (meyering@comco.com)
2387         * configure.in [test for 8-bit clean memcmp]: Add a test to detect
2388         losing memcmp from SunOS4.1.x.  From Robert H. de Vries
2389         <robert@and.nl>.
2391 Sat Dec 18 01:12:24 1993  Jim Meyering  (meyering@comco.com)
2393         * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
2394         so it goes in config.status.  This eliminates unnecessary second run
2395         of configure.
2397 Thu Dec 02 23:53:03 1993  Jim Meyering  (meyering@comco.com)
2399         * configure.in (AC_HAVE_FUNCS): Add isascii.
2400         * system.h [!defined (isascii) || defined (STDC_HEADERS)]: This failed
2401         on AIX PS/2 1.3 systems because isascii is a function and it is used
2402         in definitions (with the necessary side effect of assigning to a
2403         global variable) of the is* macros.  Also test HAVE_ISASCII and
2404         redefine ISASCII(c) instead of isascii.
2405         Reported by Minh Tran-Le (tranle@intellicorp.com).
2407 Fri Nov 19 22:41:48 1993  Jim Meyering  (meyering@comco.com)
2409          * configure.in: Don't run the test for 8-bit clean memcmp if we
2410          already know we'll be using our replacement.
2412 Fri Nov 12 00:44:49 1993  Jim Meyering  (meyering@comco.com)
2414         * Version 1.9.1.
2416         * tac.c (usage): Fix typo in long usage.
2417         * sort.c (usage): Likewise.
2418         From Philippe.Schnoebelen@imag.fr.
2420         * cut.c [FATAL_ERROR]: New macro.
2421         (main): Call both error and usage (2) through FATAL_ERROR in
2422         many places.  Before, only `error (2...' was called.
2423         (invalid_list): Removed.  This function is subsumed by FATAL_ERROR.
2425         * cut.c (cut_fields): Properly handle input lacking a terminating
2426         newline.  Before, the command  `printf "a\tb" |cut -f 1' generated
2427         no output.
2429 Tue Nov 09 17:26:25 1993  Jim Meyering  (meyering@comco.com)
2431         od.c (usage): Change --backward-compatible to --traditional in
2432         the long usage message.
2434 Sun Nov 07 00:50:05 1993  Jim Meyering  (meyering@comco.com)
2436         * Version 1.9.
2438 Sat Nov 06 22:51:31 1993  Jim Meyering  (meyering@comco.com)
2440         * cut.c (cut_fields): Revert July 27 change.  Instead, strip off
2441         trailing delimiter unless given a range of fields like `3-' that
2442         extends to end of line.
2443         (set_fields): Moved local `eol_range_start' to file-scope.
2444         Reported by Arne H. Juul (arnej@solan.unit.no).
2446 Tue Nov 02 00:53:41 1993  Jim Meyering  (meyering@comco.com)
2448         * fold.c (fold_file): Don't get stuck in an endless loop when
2449         width is smaller than 8 and there are TABs in the input.
2451 Sat Oct 30 15:31:28 1993  Jim Meyering  (meyering@comco.com)
2453         * join.c: Remove now-unused dcls of show_help and show_version.
2455 Fri Oct 29 13:58:50 1993  Jim Meyering  (meyering@comco.com)
2457         * csplit.c [INT_MAX]: Make sure it's defined.
2458         [not HAVE_LIMITS_H]: Don't include limits.h.
2459         From Kaveh R. Ghazi (ghazi@noc.rutgers.edu).
2461 Wed Oct 27 01:13:52 1993  Jim Meyering  (meyering@comco.com)
2463         * Version 1.8.1.
2465 Mon Oct 25 20:16:33 1993  Jim Meyering  (meyering@comco.com)
2467         * sort.c: Accept but ignore -y0 for compatibility with Solaris 2.
2468         From Chuck Hedrick (hedrick@klinzhai.rutgers.edu).
2470         * sort.c (main): Handle --help and --version options.
2471         * Makefile.in (sort.o): Depend on long-options.h.
2473 Sun Oct 24 00:31:02 1993  Jim Meyering  (meyering@comco.com)
2475         * csplit.c, cut.c, expand.c, fold.c, head.c, nl.c, od.c, paste.c,
2476         split.c, tac.c, tail.c, unexpand.c, uniq.c: Use the preferred
2477         `--longopt=arg' syntax in --help message rather than `--longopt arg'.
2478         From Francois Pinard.
2480         * tail.c: Don't include <signal.h>.  It hasn't been necessary
2481         since the Dec 12, 1992 change.
2483         * join.c (main): Accept `-v 1' again.  Adding the --version
2484         long option had broken it, although -v1 still worked.  Call
2485         parse_long_options instead of adding "help" and "version"
2486         to join's longopt strct.
2487         * Makefile.in [SOURCES, OBJECTS, DISTFILES]: Add long-options.c
2488         and long-options.h.
2489         * (join): Depend on and link with long-options.o.
2490         * (join.o): Depend on long-options.h.
2492         * od.c: Change --compatible (-C) to --backward-compatible (-B).
2494         * csplit.c: Change --abandon-null-files to --elide-empty-files.
2496 Sat Oct 23 01:00:12 1993  Jim Meyering  (meyering@comco.com)
2498         * tr.c (get_next, string2_extend): Add default: label to switch stmt.
2500         * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
2501         join.c, nl.c, od.c, paste.c, pr.c, split.c, sum.c, tac.c, tail.c,
2502         tr.c, unexpand.c, uniq.c, wc.c (usage): Add long --help.
2503         Exit successfully for --help, non-zero for usage error.
2504         From Francois Pinard.
2506         * configure.in: Add AC_STAT_MACROS_BROKEN.
2507         * system.h [AC_STAT_MACROS_BROKEN]: Test it.
2509 Fri Oct 22 23:26:17 1993  Jim Meyering  (meyering@comco.com)
2511         * linebuffer.c, memchr.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include
2512         <config.h> or "config.h".
2513         * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
2514         join.c, nl.c, od.c, paste.c, pr.c, sort.c, split.c, sum.c, tac.c,
2515         tail.c, tr.c, unexpand.c, uniq.c, version.c, wc.c: Ditto.
2517         * configure.in: Use AC_CONFIG_HEADER.
2518         * Makefile.in [DIST]: Add config.h.in.
2520         * Makefile.in: Convert so make may be run from subdirectories.
2521         Add dependencies on config.h.
2522         * src/Makefile.in: Ditto.
2523         * lib/Makefile.in: Ditto.
2524         * man/Makefile.in: Ditto.
2526 Wed Oct 20 20:05:48 1993  Jim Meyering  (meyering@comco.com)
2528         * memchr.c (memchr): Do the 32-bit assignment only if !LONG_64_BITS.
2529         In the 64-bit assignment, be careful to cast the shift operand to
2530         long.
2531         Abort if sizeof (unsigned long) > 8.
2533 Tue Oct 19 22:37:58 1993  Jim Meyering  (meyering@comco.com)
2535         * csplit.c: Allow repeat counts to be specified via `{*}'.
2536         New option --suffix=format.  Supercedes --digits option.
2537         New option --abandon-null-files.
2538         From Ronald F. Guilmette (rfg@netcom.com).
2540         * csplit.1: Updated.
2541         From Ronald F. Guilmette.
2543         * csplit.c: Remove register keyword (replace with `int' in two cases).
2545         * csplit.c: [MAX]: Macro renamed from max and moved to top of file.
2546         (bytes_to_octal_digits): New static array.
2547         (get_format_flags): Combine '+' and ' ' cases of switch stmt.
2548         Return count if for loop terminates.
2549         (get_format_width): Use `bytes_to_octal_digits' instead of just 11.
2550         (get_format_prec): Make sure is_negative is defined before used.
2551         (get_format_conv_type): Give a different error message if there
2552         is no conversion specifier.
2553         Test ISPRINT (ch) instead of `ch < '~' && ch > ' ''.
2554         (max_out): Use `%%' rather than `%' in format string.
2556 Sat Oct 16 10:45:17 1993  Jim Meyering  (meyering@comco.com)
2558         * pr.c (main): When argc == 1, don't try to xmalloc (0).
2560 Tue Oct 12 00:53:26 1993  Jim Meyering  (meyering@comco.com)
2562         * xwrite.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
2563         or "config.h".
2565 Sat Oct 09 23:37:43 1993  Jim Meyering  (meyering@comco.com)
2567         * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
2569 Thu Sep  9 21:52:10 1993  Jim Meyering  (meyering@comco.com)
2571         * src/*.c: Print version on standard output, not stderr.
2573         * configure.in: Add AC_LONG_64_BITS.
2574         * memchr.c: Use #ifdef LONG_64_BITS instead of
2575         `if (sizeof(longword) > 4)'.
2577 Tue Jul 27 22:19:39 1993  Jim Meyering  (meyering@comco.com)
2579         * cat.c (cat): Don't fail just because ioctl (d, FIONREAD,... can't
2580         always handle devices.  Ignore errno == EINVAL and errno == ENODEV.
2581         `cat -v /dev/null' was failing on many systems.
2583         * cut.c (cut_fields): Don't strip off trailing delimiter e.g.
2584         `echo 'a:b:c:' | cut -d: -f3-' should print `c:', not just `c'.
2585         From William Dowling <will@franklin.com>.
2587 Thu May 27 01:37:51 1993  Jim Meyering  (meyering@comco.com)
2589         * Version 1.8.
2591         * memchr.c: De-ansify the fixed version from glibc.
2592         It is supposed to work on systems with 64-bit long ints.
2594 Mon May 24 00:32:43 1993  Jim Meyering  (meyering@comco.com)
2596         * Version 1.7.
2598 Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
2600         * Version 1.6.
2602 Fri May 21 22:57:53 1993  Jim Meyering  (meyering@comco.com)
2604         * pr.c (cols_ready_to_print): New function.  It replaces a global
2605         variable by the same name and computes on the fly the value that
2606         was supposed to be maintained through that variable.  This should
2607         put to rest the `pr -2a' bug.
2608         (main): Don't let getopt_long reorder arguments so we can
2609         distinguish between `pr -1 -2' and `pr -12'.  Rework handling of
2610         -n and +n options.
2612         * fold.c: Declare xmalloc.
2614 Wed May 19 19:12:18 1993  Karl Berry  (karl@owl.hq.ileaf.com)
2616         * sort.c (main): fflush before exit, so a closed stdout doesn't lose.
2618 Tue May 18 23:49:26 1993  Jim Meyering (meyering@comco.com)
2620         * mkinstalldirs: New file.
2621         * Makefile.in (installdirs): Use it to create installation directories.
2623 Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
2625         * all source: With --version, print version and exit immediately.
2627 Thu May 13 01:03:16 1993  Jim Meyering  (meyering@comco.com)
2629         * Makefile.in (installdirs): New rules for creating installation
2630         directories. (install): depend on it.
2632         * tail.c (main): Remove --compatible since `+1f' may be used
2633         to get the BSD `-0f' behavior portably.
2635         * fold.c (main): Turn -N arguments, where N is a digit, into -wN.
2636         From Ian Lance Taylor (ian@cygnus.com).
2638 Mon May 10 22:33:44 1993  Jim Meyering  (meyering@comco.com)
2640         * tail.c (main): New option -C, --compatible to make `tail -0f'
2641         work like `tail +1f' for compatibility with BSD tail.
2643 Thu May  6 23:28:56 1993  Jim Meyering  (meyering@comco.com)
2645         * pr.c (print_page): Decrement cols_ready_to_print even when
2646         lines_to_print == 0.  The command `echo |pr -2ta' *still* didn't
2647         terminate.  Add parentheses for clarity.
2649 Mon May  3 23:57:47 1993  Jim Meyering  (meyering@comco.com)
2651         * Version 1.5.
2653         * od.c (main): Remove set-but-not-used variable, `usage_error'.
2655         * split.c (main): Call usage with an argument.
2657 Sun May  2 16:05:04 1993  Jim Meyering  (meyering@comco.com)
2659         * configure.in: Reverse if-else branches in AC_TEST_PROGRAM test
2660         for 8-bit clean memcmp.
2662         * cat.c (usage, main): Remove unused argument.
2664         * csplit.c (remove_line): Remove set-but-not-used variable, `line_got.'
2665         (check_for_offset): Remove unused argument `argnum.'
2667         * configure.in: Add AC_SIZE_T.
2669 Sat May  1 09:03:19 1993  Jim Meyering  (meyering@comco.com)
2671         * uniq.c (main): Interpret non-option arguments with a leading `+'
2672         only if we haven't seen `--'.
2674         * tr.c (main): Change variable name to avoid shadowed dcl.
2675         * wc.c (write_counts): Ditto.
2677         * sum.1: Make documentation agree with the code.
2679         * od.c: Depend only on HAVE_LONG_DOUBLE for long double support.
2681 Fri Apr 30 20:16:03 1993  Jim Meyering  (meyering@comco.com)
2683         * configure.in [AC_HAVE_HEADERS]: Add limits.h.
2685         * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
2687         * od.c (parse_old_offset): Don't use prototype in function
2688         definition.  Remove unnecessary conjunct from test for hexadecimal
2689         prefix.
2691         * od.c: Depend on __GNUC__ || HAVE_LONG_DOUBLE rather than __STDC__
2692         for long double support;  there are compilers (Stardent Vistra svr4)
2693         without long double but still define __STDC__.
2695 Thu Apr 29 02:01:27 1993  Jim Meyering  (meyering@comco.com)
2697         * src/*.c and man/*.c except for sort: Add --help and --version
2698         options.
2700         * pr.c: Convert to use getopt_long.
2702         * lib/memcmp.c: Use version from glibc.
2703         [WORDS_BIGENDIAN]: Test this instead of the using glibc's
2704         __BYTE_ORDER macro.
2705         * configure.in: Use AC_WORDS_BIGENDIAN to set it.
2707         * od.c (parse_old_offset): Allow `0X' as well as `0x' prefix to
2708         indicate hex.
2710         * Makefile.in (dist): Depend on Makefile so that changes to
2711         Makefile.in (like adding new files to DISTRIB) are reflected
2712         in the new distribution.
2714 Fri Apr 23 21:53:47 1993  Jim Meyering  (meyering@comco.com)
2716         * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
2717         other options so users can use them to override DEFS.
2718         * src/Makefile.in [.c.o]: Add -I$(srcdir) for version.h.
2720         * Makefile.in [CFLAGS, LDFLAGS]: Don't set to -g explicitely;
2721         configure's AC_SUBST will set these.
2723         * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
2724         [targets that cd then run make in subdirectories]: Don't depend
2725         on `cd ..';  use a subshell instead.
2727         * Makefile.in [info, install-info, dvi, check, installcheck]:
2728         New targets but no rules; comply with standards.
2730         * configure.in [CFLAGS]: Default to -g -O if CC is gcc and the user
2731         hasn't specified CFLAGS.
2732         [LDFLAGS]: Substitute into Makefile.
2734 Tue Mar 30 21:36:11 1993  Jim Meyering  (meyering@comco.com)
2736         * od.c: New option --compatible, -C.
2737         (parse_old_offset): New function.
2738         * od.1: Document new option.
2740 Mon Mar 29 21:27:56 1993  Jim Meyering  (meyering@comco.com)
2742         * cut.c, expand.c, join.c, nl.c: Always call error with errno
2743         (not zero) after failed fclose or non-zero ferror.
2745 Sun Mar 28 16:59:31 1993  Mike Haertel  (mike@cs.uoregon.edu)
2747         * configure.in: Add check for working memcmp; use GNU's if
2748         the system's doesn't grok the 8th bit.
2749         * memcmp.c: Fix it so it groks the 8th bit.
2750         TODO: We really need to provide a fast memcmp, since most
2751         machines will have a broken memcmp.  Probably should get
2752         the one from glibc.
2753         * sort.c (mergefps): Maintain keybeg and keylim when copying
2754         the current line to `saved'.
2755         (numcompare): Skip white space here since -n no longer implies -b.
2756         (getmonth): Skip white space here since -M no longer implies -b.
2757         (compare): Completely overhauled to make the 8th bit work right,
2758         also to properly handle the global reverse option.
2759         (set_ordering): -n no longer implies -b, according to Posix.
2760         For consistency, -M also no longer implies -b.
2761         (main): Correct treatment of -r and global keys.
2762         (findlines): Clear keybeg and keylim if no keys are used.
2763         (sort): Avoid overwriting tempfiles[] array bounds.
2765 Sun Mar 21 22:29:29 1993  Jim Meyering  (meyering@comco.com)
2767         * pr.c (close_file): Reverse May 13, '92 change, but add the condition
2768         that cols_ready_to_print not be decremented when printing across.
2769         The command `echo |pr -2ta' didn't terminate.
2770         (print_page): Rewrite conditional (that had side effects in second
2771         conjunct) using nested if statements to make it clear that we do
2772         indeed want those semantics.
2774 Tue Jan 19 13:35:24 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
2776         * Version 1.4.
2778         * system.h: Try BBSIZE if BSIZE isn't defined.
2779         From Tony Robinson <ajr@eng.cam.ac.uk>.
2781 Sat Dec 12 12:37:00 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
2783         * tail.c (tail_forever): Use an array of file descriptors
2784         instead of forking processes.
2785         (dump_remainder): Return number of bytes read.
2786         (tail_file): Fill in the new array.
2787         From Ian Lance Taylor.
2789 Fri Dec 11 17:18:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
2791         * system.h: Only define index, bcmp, etc. if not already defined.
2793 Tue Dec  8 10:31:14 1992  Jim Meyering  (meyering@idefix.comco.com)
2795         * tr.c (is_char_class_member): Remove unreached return after abort.
2797 Sun Dec  6 22:34:52 1992  Jim Meyering  (meyering@idefix.comco.com)
2799         * csplit, cut.c, expand.c, fold.c, head.c, join.c, od.c, pr.c,
2800         sort.c, split.c, tail.c, tr.c, unexpand.c, uniq.c:  Remove inclusion
2801         of <ctype.h> and definitions of is* ctype macros to system.h.
2802         Change a few more uses of is* ctype macros to (protected) upper
2803         case versions.
2805         * system.h: Add isascii-protected ctype IS* macros.
2807 Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
2809         * all files using getopt.h: Convert static declarations of
2810         struct option to use new macros from getopt.h: no_argument,
2811         required_argument, and optional_argument.
2813 Tue Dec 01 10:57:24 1992  Jim Meyering  (meyering@idefix.comco.com)
2815         * od.c, pr.c, sort.c: Make uses of ctype.h macros consistent.
2817         * tr.c (main): Close stdin and stdout and check return status.
2819 Tue Nov 24 09:26:08 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2821         * system.h, csplit.c: Use HAVE_FCNTL_H and HAVE_STRING_H
2822         instead of USG.
2824 Tue Nov 24 08:42:30 1992  Jim Meyering  (meyering@idefix.comco.com)
2826         * tr.c: Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that
2827         use isascii if it is defined.
2828         (is_char_class_member, make_printable_char, make_printable_str,
2829         non_neg_strtol): Use new macros instead of lower case ones
2830         from <ctype.h>.
2832         * od.c (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
2833         macros like pr.c.  Suggested by David J. MacKenzie.
2835         * od.c (print_ascii, dump_strings): Check for isascii before isprint.
2836         (dump_strings): Free malloc'd buffer before returning.
2837         (skip): Return non-zero if an error occurred, zero otherwise.
2838         Exit only if asked to skip beyond end of combined input.
2839         (check_and_close): New function.
2840         (skip, read_block, read_char): Call check_and_close when done
2841         processing the file associated with in_stream.
2842         (skip, read_block, read_char): Set have_read_stdin.
2843         (main): Close stdin (if it was ever read) and check for errors
2844         just before exiting.
2845         (write_block, dump_strings, dump): Don't test return value from
2846         functions that operate on streams.  Rely on later ferror tests.
2848 Sat Nov 21 12:41:49 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2850         * sort.c (main, usage): Add -T option.
2852 Thu Nov 19 14:33:40 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2854         * tail.c (tail_forever, sigusr1, kill_kids): New functions to
2855         do -f on multiple files.
2856         (main): Call tail_forever.
2857         From Ian Lance Taylor.
2859 Tue Nov 10 14:29:11 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2861         * cut.c (cut_fields): Add cast.
2863         * od.c (decode_one_format): Remove '#' from pre_fmt_string;
2864         many systems don't support it.
2865         Conditionalize long double support on __STDC__, not __GNUC__.
2866         From Ian Lance Taylor.
2868 Mon Nov  9 00:24:41 1992  Jim Meyering  (meyering@idefix.comco.com)
2870         * sort.c (numcompare, keycompare): Add parentheses suggested
2871         by gcc -Wall.  Put braces around individual monthtab initializers.
2873         * cksum.c: Declare error.  Make checksum table `const.'
2875         * pr.c: Remove comment and dcl of unused variable, `print_a_number'.
2877         * split.c (main): Add `default: abort();' to enumeration switch.
2879         * All files: Make all functions and extern variables static.
2880         Make all longopts arrays const as well as static.
2881         Make a couple statically initialized aggregates `const.'
2883 Sun Nov  8 19:46:59 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2885         * od.c (main): Make old-style format options accumulate.
2886         From Jim Meyering.
2888 Sat Nov  7 00:26:14 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2890         * tr.c (look_up_char_class): Add cast.
2892         * nl.c (build_type_arg), csplit.c (extract_regexp), tac.c (main):
2893         Add `const' to variable receiving value from re_compile_pattern.
2895         * wc.c (wc): If doing only -c, use st_size for regular files.
2897         * fold.c (fold_file): Was folding 1 column too early.
2898         From Eric Backus <ericb@lsid.hp.com>.
2900         * memset.c: New file.
2902 Fri Nov  6 20:14:51 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2904         * cksum.c: New file.
2906 Tue Oct 13 16:24:06 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2908         * tac.c (tac_stdin): Handle SIGPIPE.
2909         * sort.c (main): Handle SIGTERM.
2911         * od.c: New file.
2913         * system.h [USG || STDC_HEADERS]: Define bcmp.
2915 Sat Oct  3 20:41:24 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
2917         * sort.c (main): Handle SIGPIPE.  From trq@dionysos.thphys.ox.ac.uk.
2919 Tue Sep 29 01:10:05 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
2921         * paste.c (main): Don't write on a string constant.
2923 Mon Aug 24 00:02:45 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
2925         * tr.c: Minor cleanup.  Replaced some assert(0) with abort().
2927 Tue Jul  7 02:14:19 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
2929         * cmp.c, cmp.1: Move to diff distribution.
2931 Fri Jul  3 16:37:59 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
2933         * system.h: Change FOO_MISSING to HAVE_FOO.
2935 Wed May 13 20:05:41 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
2937         * pr.c (COLUMN): Add structure member to remember filename.
2938         (main, init_fps, open_file, close_file): Use it.
2940         (close_file): Don't decrement cols_ready_to_print when closing
2941         a file.  From cdl@mpl.UCSD.EDU (Carl Lowenstein).
2943 Mon May 11 19:17:33 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
2945         * cmp.c: --show-chars -> --print-chars.
2947         * pr.c: Rename some variables.
2949 Sat May  9 18:39:47 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
2951         * system.h: Define DEV_BSIZE if not defined.
2953 Wed Apr 22 02:15:09 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
2955         * system.h, tac.c: SIGTYPE -> RETSIGTYPE.
2957 Fri Apr 17 10:42:23 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
2959         * sort.c (main): Don't stop processing args when we hit "-";
2960         treat it like a regular filename.
2961         From ian@airs.com (Ian Lance Taylor).
2963         * pr.c (print_page): Fix off by one line count when ^L is in input.
2964         From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de).
2966 Mon Apr  6 20:52:29 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
2968         * tr.c (validate): Change error message so it doesn't mention
2969         actual name of --truncate-set1 option.  From David MacKenzie.
2971 Sun Apr  5 14:22:42 1992  Jim Meyering  (meyering@hal.gnu.ai.mit.edu)
2973         * tr.c (string2_extend, validate): Give an error message when
2974         translating without --truncate-set1, with empty string2, and
2975         with non-empty string1.  "tr 1 ''" produced a failed assertion.
2977 Mon Mar 30 02:20:56 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
2979         * system.h: Change how ST_BLKSIZE is calculated to allow for
2980         non-POSIX systems that don't define BSIZE in sys/param.h.
2982 Sat Mar 28 11:18:01 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
2984         * sum.c (main, bsd_sum_file): Don't print filename if BSD
2985         algorithm is used and only one file was given.
2987 Wed Mar 25 11:34:41 1992  Jim Meyering  (meyering@wombat.gnu.ai.mit.edu)
2989         * tr.c (get_spec_stats): Fix assertion to allow ranges like a-a
2990         with starting character equal to ending character.  This is
2991         contrary to the POSIX spec, but what is already implemented
2992         in find_closing_delim.
2994 Mon Mar 16 00:15:11 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
2996         * Version 1.3.
2998         * sort.c (numcompare, checkfp): Add parens to placate gcc2.
3000         * sort.c (mergefps): For -u, output the first, not last, of
3001         the lines that compare equal.  From Mike Haertel.
3003 Tue Mar 10 10:51:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
3005         * tr.c: Remove initial capitals and periods from error messages.
3007 Sun Mar  8 22:03:45 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
3009         * sum.c (main): Add -r option for SYSV compat.
3011 Thu Feb 27 22:26:25 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
3013         * sort.c (compare): If -s given, leave lines in their original order.
3014         (main): Recognize -s.
3015         (usage): Document -s.
3016         From Mike Haertel.
3018 Tue Feb 18 20:29:45 1992  Randall Smith  (randy at geech.gnu.ai.mit.edu)
3020         * sort.c (sort): Check for complete parsing of buffer into
3021         lines before nixing temp files.
3023 Mon Feb 17 10:35:58 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3025         * sum.c (sysv_sum_file): Use %lu instead of %u to print a
3026         long.  Not that it matters for GNU . . .
3028         * tr.c (unquote, make_printable_str): Use \007 instead of ANSI \a.
3029         (append_normal_char, append_range, append_char_class,
3030         append_repeated_char, append_equiv_class, spec_init):
3031         Initialize `next' field of new `struct List_element'.
3032         From rommel@informatik.tu-muenchen.de (Kai-Uwe Rommel).
3034 Sat Feb  8 17:16:49 1992  David J. MacKenzie  (djm at apple-gunkies.gnu.ai.mit.edu)
3036         * join.c (get_line): Renamed from getline to avoid GNU libc conflict.
3038 Sun Feb  2 21:22:01 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3040         * Version 1.2.
3042         * nl.c: Support multiple files and "-" for stdin.
3043         (main): Check for read and write errors.
3044         (nl_file): New function.
3046 Wed Jan 29 10:09:10 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3048         * tr.c (main): -t option was called -b in getopt spec.
3049         (validate): Don't warn that set1 is longer than set2.
3051         * tr.c: Rename --sysv-string2-truncate to --truncate-string1.
3053 Fri Jan 17 16:29:05 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3055         * nl.c: New program from bin-src.
3057         * nl.c (main): Use a struct linebuffer for line_buf.
3058         (process_file): Use readline instead of fgets, to preserve NULs.
3059         (check_section): Use memcmp instead of strncmp.
3060         (proc_text): Print line_buf with fwrite instead of printf.
3062         * nl.c (main): Usage message if too many args given.  Check
3063         for error in closing input file.  Lengths of section delimiter
3064         strings were 1 too large.  Take separator_str into account in
3065         length of print_no_line_fmt.
3066         (build_print_fmt): Allocate space for print_fmt, in case
3067         separator_str is long.
3068         (proc_text): A blank line is one that contains nothing, not
3069         even nonprinting characters.
3071 Fri Jan 17 01:04:22 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3073         * All programs: Document `--' instead of `+' to introduce
3074         long-named options, in usage messages.
3076         * sum.c (bsd_sum_file): Renamed from sum_file.
3077         (sysv_sum_file): New function.
3078         (main): Recognize an option to select between the algorithms.
3080 Sun Jan  5 17:41:18 1992  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
3082         * pr.c (close_file, print_page): Fixed bug that had the command
3083         yes |head |pr -t printing "yyyyyyyyyy".
3084         * (print_page): Fixed bug that had pr -3 -a printing two too few
3085         trailer lines per page.
3086         * (main): Added restriction that -a and -m are incompatible.
3087         Although the POSIX spec doesn't explicitly say they shouldn't
3088         be used together, it says -a modifies the -column option and
3089         that -column shouldn't be used with -m.
3091 Thu Jan  2 15:23:59 1992  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
3093         * nl.c: Include regex.h after, not before, sys/types.h.
3095 Thu Jan  2 12:18:10 1992  Tom Lord  (lord at geech.gnu.ai.mit.edu)
3097         * sort.c (fillbuf) return bytes buffered instead of bytes read.
3099 Fri Dec 27 22:53:36 1991  Jim Kingdon  (kingdon at geech.gnu.ai.mit.edu)
3101         * sort.c (LINEALLOC): New #define.
3102         (struct lines): New field ``limit''.
3103         (initlines): Set it from new arg ``limit''.
3104         (sort, mergefps, checkfp): Pass new arg to initlines().
3105         (findlines): Don't realloc past lines->limit.
3107 Tue Dec 24 01:24:03 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3109         * tac.c, sort.c, csplit.c, system.h: Change POSIX ifdefs to
3110         HAVE_UNISTD_H and _POSIX_VERSION.
3112         * xwrite.c: Change POSIX ifdef to HAVE_UNISTD_H.
3114 Sat 14 Dec 1991 11:46:42  Jim Meyering  (meyering at wombat)
3116         * tr.c: Fixed an inaccurate comment on posix_pedantic.
3118 Thu 12 Dec 1991 21:15:20  Jim Meyering  (meyering at hal)
3120         * tr.c: Changed underscores to hyphens in long option name
3121         "sysv_string2_truncate".
3123 Wed Dec 11 13:33:34 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3125         * tac.c (main): Set obscure_syntax to tell re_search to
3126         allocate memory for the group registers.
3128 Fri Dec  6 18:26:27 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3130         * tac.c, sort.c, csplit.c [POSIX]:  Use sigaction instead of
3131         signal, which POSIX doesn't have.
3132         * sort.c: Replace inthandler and huphandler with sighandler.
3133         * csplit.c (main): Only handle signals if they were not being
3134         ignored.
3136         * tr.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
3138 Wed Dec  4 00:47:47 1991  Jim Meyering  (meyering at wombat)
3140         * tr.c (unquote): Reformat code so it doesn't go beyond column 80.
3141         * tr.c (squeeze_filter): Comment a little on why it's better
3142         to step through the input by two.
3143         * tr.c (set_initialize): Write a comment describing the function.
3144         * tr.c: Eliminated the variable `portability_warnings' and replaced
3145         references to it by references to `!posix_pedantic'.  One of the
3146         uses of portability_warnings had been wrong.
3148 Tue Dec  3 14:03:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3150         * tr.c: New program.
3152 Sun Dec  1 15:07:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3154         * linebuffer.[ch] (freebuffer): New function (used by cron).
3156 Thu Oct 17 22:30:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3158         * system.h, configure, Makefile.in: Don't include memory.h if
3159         STDC_HEADERS, removing need for MEMORY_H_MISSING.
3161 Thu 17 Oct 1991 16:53:07  Jim Meyering  (meyering at wombat)
3163         * pr.c (print_page): REALLY fixed `extra newline at EOF' problem.
3164         Somehow, part of my patch didn't make it last time.
3166 Sat Oct 12 12:04:47 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
3168         * tail.c (pipe_lines, pipe_bytes): Initialize `first->next'.
3170         * cmp.c (cmp): Print EOF message to stderr, not stdout, for
3171         POSIX 1003.2.11.2.
3173         * sort.c (xfwrite): fwrite never returns < 0, so check if
3174         number written is number we asked to write.
3175         (fillbuf, main): fread never returns < 0, so check ferror instead.
3176         From Rainer Orth.
3178 Tue Oct  8 18:07:08 1991  Jim Meyering  (meyering at churchy)
3180         * pr.c (print_page): Really fixed `extra newline at EOF' problem.
3181         * (store_columns): Fixed bug that caused `pr -b -2' to coredump
3182         on files of certain lengths.
3184 Fri Oct  4 22:30:25 1991  Jim Meyering  (meyering at churchy)
3186         * pr.c (print_page): Fixed to not add single spurious newline
3187         at EOF when using -t.
3189 Wed Oct  2 01:02:05 1991  David J. MacKenzie  (djm at apple-gunkies)
3191         * pr.c (print_page): Don't pad the page if -t given.
3193         * csplit.c (load_buffer), sort.c (mergefps): Use bcopy, not memcpy.
3195 Thu Sep 26 12:35:00 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
3197         * Version 1.1.
3199         * configure, system.h: Include memory.h if it works.
3201         * split.c: Allow `b' unit as well as `k' and `m'.
3203         * head.c, tail.c: Replace -b +blocks option with specifying
3204         units (b, k, or m) after the number.
3205         (parse_unit): New function.
3207         * fold.c (main): Check that -w arg is a number.
3209         * cut.c: +delimiter takes an arg.
3211 Mon Sep 16 14:52:38 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
3213         * pr.c (close_file): Don't close an already closed file.
3215 Thu Sep 12 00:14:43 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3217         * memchr.c: New file.
3218         * configure: Check if it's needed.
3220         * csplit.c, gcsplit.1: New program.
3222         * pr.c (cleanup): Only free buffers if they were allocated.
3224         * sort.c [!USG && !STDC_HEADERS]: Declare memchr.
3226 Wed Sep 11 20:54:16 1991  Jim Meyering  (meyering at churchy)
3228         * pr.c: The following 3 bugs appeared (at least) when printing
3229         a  single file with the options `-3 -f'.
3230         * (print_white_space): Single spaces were being replaced
3231         with tabs.
3232         * (print_page): Some lines were getting too much white space
3233         at the beginning because spaces_not_printed wasn't being reset
3234         to 0.
3235         * (read_line): The single space between a truncated column
3236         on its left and the column on its right was omitted.  Fixed
3237         so that previous value of input_position is restored before
3238         returning FALSE.
3240 Sat Sep  7 03:22:18 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3242         * configure: Only remove /etc from PATH when it's not part of
3243         a larger name.
3245 Wed Sep  4 17:09:24 1991  David J. MacKenzie  (djm at apple-gunkies)
3247         * linebuffer.c (readline): Fix incorrect recalculation of `end'.
3249         * head.c, tail.c: Replace `mode' variables and bitmasks with
3250         separate variables for each option.
3252 Mon Sep  2 04:00:37 1991  David J. MacKenzie  (djm at apple-gunkies)
3254         * wc.c: New program.
3256 Sun Sep  1 01:18:38 1991  David J. MacKenzie  (djm at apple-gunkies)
3258         * fold.c (fold_file): Read in an int, not a char, for EOF
3259         comparison.
3261         * configure: Check whether st_blksize is missing.
3263         * tac.c (save_stdin): Put copy of pipe input in TMPDIR if
3264         defined, instead of /tmp.
3266 Thu Aug 29 14:48:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3268         * xwrite.c [POSIX]: unistd.h might require sys/types.h.
3270 Wed Aug 28 11:57:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3272         * paste.c (main): Consider -d "" to be like -d "\0",
3273         for POSIX (if I read it right).
3275         * sort.c, join.c: New programs.
3277         * cut.c (set_field): Allow blanks as well as commas to
3278         separate numbers in ranges.
3280 Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
3282         * pr.c: Failure to open an input file is no longer a fatal error.
3283         A message is printed for each failed open.  When printing
3284         in parallel, each failed open results in one fewer output column.
3285         Added POSIX -r option to suppress the message.
3286         * pr.c: Added variables: failed_opens, ignore_failed_opens.
3287         These changes were based in part on work by David MacKenzie.
3289 Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
3291         * pr.c: Complain if user gives both -m and -[0-9]+ options.
3293 Wed Aug 21 22:04:57 1991  David J. MacKenzie  (djm at apple-gunkies)
3295         * Version 1.0.
3297 Mon Aug 19 00:16:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3299         * expand.c: Rename some variables.
3300         (expand): Don't access value off end of array.
3301         * unexpand.c: Rename some variables.
3302         (unexpand): Don't access value off end of array.
3303         Instead of copying tabs verbatim and flushing pending spaces
3304         when one is reached, count them as the proper number of
3305         pending spaces.  Instead of changing tabs to single spaces if
3306         the tabstop list is exhausted, print the rest of the line
3307         unchanged (for POSIX).
3309 Sat Aug 17 01:49:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3311         * cut.c (cut_file), paste.c (paste_parallel, paste_serial):
3312         Clear EOF and error conditions on stdin so it can be reused.
3314         * expand.c, unexpand.c (parse_tabstops): Allow blanks as well
3315         as commas to separate tabstops, for POSIX.
3316         * expand.c (expand), unexpand.c (unexpand): Don't line-buffer
3317         the output; send it directly to stdout.
3318         * unexpand.c (main): Make -t stupidly imply -a for POSIX.
3319         (unexpand): If a tab stop list was given and we move past its end,
3320         copy the rest of the line verbatim.
3322         * split.c (convint): New function to allow 'm' and 'k' after
3323         byte counts.
3324         (main): Use it.  Change -c option to -b for POSIX.
3326 Fri Aug  9 02:47:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3328         * pr.c: Protect isdigit with isascii, if required.
3330 Tue Aug  6 21:42:25 1991  David J. MacKenzie  (djm at wheat-chex)
3332         Most of the following is from Paul Eggert:
3333         * cat.c (main): If stdin is read, check close at end.
3334         * cmp.c (main): Check for stdin being closed.
3335         Check for close errors on stdin and stdout.
3336         (cmp): Return a value instead of exiting.
3337         * cut.c (cut_file): New function, from code in main.
3338         Check for read errors.
3339         (main): Check for close errors.
3340         * expand.c, unexpand.c (main): Check for close errors.
3341         (next_file): Go to next file if one can't be opened.
3342         Check for close errors.
3343         * head.c (main), tail.c (main): If stdin was read, check for
3344         close errors.
3345         * head.c (head_file), tail.c (tail_file): Check for close errors.
3346         * paste.c (main, paste_parallel, paste_serial), tac.c (main):
3347         Check for close errors.  Close stdin if it was read.
3348         * split.c (main): Check for close errors.
3350         * configure, Makefile.in's: Support +srcdir option.
3351         Make config.status.  Fix up clean targets.
3353 Wed Jul 31 01:32:59 1991  David J. MacKenzie  (djm at hal)
3355         * linebuffer.h (struct linebuffer): Add a field to indicate
3356         the number of valid chars in the line.
3357         * linebuffer.c (initbuffer, readline): Fill it in.
3358         * uniq.c, comm.c: Use it.
3360         * pr.c (main): Check stdin and stdout fclose for errors.
3361         (init_parameters): If there's no room for header and footer,
3362         omit them rather than dying (for POSIX).
3363         (init_header): Take a file descriptor as additional arg.
3364         (init_fps): Change callers.  Note when stdin is read.
3365         (open_file): For filename "-" use stdin.
3366         (close_file): Don't close stdin.  Check close for errors.
3367         (print_char, char_to_clump): Use isprint instead of explicit
3368         comparisons.
3370         * memcmp.c: New file (needed for comm).
3371         * bcopy.c: New file (needed for fold).
3372         * system.h: Don't define bcopy as memcpy.
3373         * configure: Check for bcopy and memcmp.
3375         * uniq.c (main): Use "-" instead of NULL to mean stdin or
3376         stdout.
3377         (check_file): Use "-" instead of NULL to mean stdin or stdout.
3378         Check readline return instead of for NUL character to
3379         detect eof.
3380         Check fclose for errors.
3381         (find_field): Use linebuffer length, not NULs, to detect end
3382         of line.
3383         (different): New function, replaces compare.  Uses memcmp
3384         instead of strncmp.
3385         (writeline): Use fwrite instead of fputs so NULs are preserved.
3387         * comm.c (compare_files): Return an error indication.
3388         Don't take a filename of NULL to mean stdin.
3389         Use memcmp instead of strcmp to allow for NULs.
3390         Check fclose for errors.
3391         (writeline): Use fwrite instead of fputs so NULs are preserved.
3393         * sum.c (sum_file): Take an arg indicating whether to print
3394         the filename, and don't take NULL meaning stdin.  Set a flag
3395         when we read stdin.  Check fclose return for errors.
3396         (main): If stdin was read, check fclose return for errors.
3397         Use filename of "-" if no args given.
3399 Thu Jul 25 15:17:10 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3401         * fold.c: Rewritten from scratch for POSIX.
3403 Wed Jul 24 01:55:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3405         * split.c (line_bytes_split): Use xmalloc instead of alloca.
3406         * system.h: Don't declare alloca.
3408         * tac.c, tail.c: Use SEEK_ instead of L_ for lseek.
3409         * system.h: Define SEEK_ macros if not defined.
3411         * pr.c: Rename variable `truncate' to avoid library function conflict.
3413 Tue Jul 23 13:21:48 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3415         * linebuffer.c, linebuffer.h: New files.
3416         * comm.c, uniq.c (initbuffer, readline): Functions
3417         removed (use versions in linebuffer.c).
3419 Mon Jul 22 13:23:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
3421         * sum.c (sumfile): Always print 5 digits for second number, too.
3422         Interpret "-" to mean stdin.
3424 Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
3426         * uniq.c: Use isblank instead of isspace, to support POSIX.2.
3427         * comm.c, pr.c, uniq.c (concat, fatal, error,
3428         pfatal_with_name, xmalloc, xrealloc): Functions removed.
3430 Sat Jul 13 02:04:53 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3432         * nl.c: Add long-named options.  Doc fixes.
3434 Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3436         * expand.c, unexpand.c [STDC_HEADERS]: Include stdlib.h.
3438         * xwrite.c [POSIX]: Include unistd.h.
3439         [STDC_HEADERS]: Don't declare errno.
3441 Sun Jun 30 23:35:16 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3443         * uniq.c: Add long-named options.  Remove marginally useful -z
3444         option (zero padded repeat counts).
3446 Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3448         * tail.c (tail_file), tac.c (save_stdin, tac_file), split.c
3449         (cwrite), head.c (head_file), cat.c (main): Check close return
3450         value for delayed error report due to NFS.
3452 Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3454         * cat.c: Replace "uchar" with "unsigned char", to avoid
3455         problems with various systems' typedefs.
3457 Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
3459         * cat.c (cat): Interpret ENOTTY return from FIONREAD ioctl to mean
3460         operation is unsupported, for HP-UX 7.0.
3462 Sun Apr 14 21:49:17 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
3464         * sum.c: Always print five digits for first number.
3466 Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
3468         * cat.c, cmp.c: Don't use fileno(); not needed.
3470 Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
3472         * tac.c, tail.c: Change _POSIX_SOURCE to POSIX.
3474 Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
3476         * cut.c (cut_file_bytes, cut_file_fields): Make inbufp and
3477         outbufp global.
3478         (enlarge_line): Adjust inbufp and outbufp.
3480 Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3482         * cat.c: Declare free returning void, not int, so it
3483         doesn't bomb on Xenix.
3485 Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
3487         * tac.c: Print error messages before calling cleanup, not after.
3489 Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3491         * tac.c (cleanup): Return SIGTYPE, not int.
3493 Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
3495         * cut.c (main, usage): Add -b and -n options for POSIX.
3496         (set_fields): Don't allow SPC or TAB as number separators.
3498         * paste.c (paste_parallel): If open of any file fails, quit
3499         (for POSIX).
3501 Mon Aug  6 22:14:13 1990  David J. MacKenzie  (djm at apple-gunkies)
3503         * pr.c: Add POSIX -F option (same as -f).
3505         * uniq.c (check_file): Allow '-' to mean stdin or stdout.
3507 Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3509         * head.c, tail.c: Change `chars' to `bytes' globally.
3510         (main, usage): Use POSIX.2 draft 10 option syntax.
3512 Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3514         * cat.c (main): Don't delay error messages, so they appear
3515         where expected.
3516         (main, simple_cat, cat): Make errors in input files nonfatal.
3518 Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3520         * cat.c: Remove -c option added for POSIX draft 9, since POSIX
3521         draft 10 removed it.
3523         * tac.c (tac_stdin): Use fstat instead of lseek to determine
3524         whether stdin is seekable, because lseek silently fails on
3525         some special files, like tty's.
3526         tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
3527         don't turn off -f for non-regular files (assume the user knows
3528         what he's doing; it might work for fifo's and sockets).
3530         * paste.c (main): If no files given, use stdin.
3531         Don't let collapse_escapes write on string constant (delim default).
3532         (paste_parallel): Don't close stdin.
3534         * cut.c (main): Use standard input for filename of "-".
3536         * comm.c (compare_files): Allow '-' to mean stdin.
3538 Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3540         * cut.c (enlarge_line): Take an arg giving the required amount
3541         of space.  Change callers.
3542         (main): Don't allow -t'<TAB>' without -f.
3543         Make `delim' unsigned to fix sign extension problem in comparison.
3545 Tue Jul 17 12:36:11 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
3547         * pr.c  Deleted excess whitespace from ends of lines.
3548                 Modified to work with current version of getopt, which
3549                 returns 1 instead of 0 for non-options.
3550                 Reversed the meaning of the -f option, to be compatable
3551                 with real pr.
3553 Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
3555         * cmp.c (main, usage): Rename -L option to -c and don't have
3556         it imply -l.
3557         (printc): Take an arg to specify number of chars to pad to,
3558         for column alignment.
3559         (cmp): Respect flag_print_chars in default output format.
3560         Align columns for cmp -cl.
3562 Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
3564         * cmp.c: For +show-chars, have getopt return 'L' so
3565         `flag_print_chars' gets set.
3567 Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
3569         * tac.c (main): Initialize fastmap and translate fields of
3570         regex before compiling it.
3572 Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3574         * tac.c: Change +regexp to +regex for consistency with GNU find.
3576 Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3578         * cat.c (cat): If FIONREAD is available, only use it if it is
3579         supported by the filesystem that the file is on.
3581 Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3583         * cat.c (main): Add a variable to control whether the check
3584         for input file == output file is made, because no values of
3585         st_dev and st_ino should be assumed to be available for this
3586         purpose.  Only do the check for regular files.
3588         * tac.c: Use bcopy instead of memcpy.
3590 Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
3592         * head.c: Use longs instead of ints for file offsets, for 16
3593         bit machines.
3595 Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3597         * cmp.c: Change some ints to longs for 16 bit machines.
3598         (bcmp_cnt): Make char-pointer counting slightly simpler.
3600 Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3602         * cat.c (main): Allow input file to be output file for devices
3603         (ttys, etc.).  Check whether input file is output file when
3604         reading standard input.  Print any error messages for standard
3605         input.
3607         * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
3608         machines as well as 32 bit ones.
3609         * cmp.c, tail.c: Use longs instead of ints for file offsets.
3611 Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3613         * cmp.c: Fix some exit statuses for POSIX.
3615 Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
3617         * tac.c: Use regular expressions as the record boundaries.
3618         Give better error messages.
3619         Reformat code and make it more readable.
3620         (main): Use getopt_long to parse options.
3621         (tac_stdin): Do not make a temporary file if standard input
3622         is a file.
3623         (tac_file): New function.
3624         (tac): Take an open file desc as an arg.
3625         (output): Rewrite to use its own efficient buffering.
3626         (xmalloc, xrealloc, xwrite): New functions.
3628 Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3630         * head.c, tail.c: Use `error' instead of `fatal_perror' and
3631         `nonfatal_perror'.  Remove some unnecessary info from messages.
3633 Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3635         * comm.c (main): Pass the list of files to compare_files as a
3636         char ** instead of a char *.
3637         (compare_files): Make arg a char **.
3639         * uniq.c: Declare some functions as void.
3640         Change global vars `countmode' and `mode' from ints to enums.
3641         (main): Use getopt to parse options and support POSIX options.
3642         Don't use integer_arg to parse numbers, since `-#' can't be
3643         parsed that way using getopt.
3644         (find_field): Use isspace for finding fields boundaries.
3646 Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
3648         * comm.c (main): Call usage if given bad option or wrong
3649         number of args.  Exit with 0 status normally.
3650         (usage): New function.
3651         Declare some other functions as void.
3653 Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
3655         * cmp.c (main, cmp, usage): Replace -q +quick option with -L
3656         +show-chars option to add ASCII representation of bytes to -l format.
3658 Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
3660         * cmp.c (cmp): Change EOF message for POSIX compatibility.
3661         For -l format, clear bits > FF.
3663 Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3665         * tail.c: Move global `errors' into main instead of having
3666         nonfatal_perror set it.
3667         (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
3668         Return an error status.
3669         (file_lines, start_chars, start_lines): Reverse the meaning of
3670         the return value.
3671         (tail_lines, tail_chars): Account for that reversal.
3673 Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3675         * head.c: Move global `errors' into main and have the various
3676         functions return an error status instead of setting it in
3677         nonfatal_perror.
3679 Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
3681         * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
3682           options specified), to compare the two blocks and count
3683           newlines simultaneously.
3684         * cmp.c New function: bcmp_cnt.
3686         * cmp.c (main): Test if output is redirected to /dev/null, and
3687           assume `-s' if this is so.
3689 Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3691         * cat.c: Change `argbad' from a char to a short, so it will
3692         work on machines with unsigned chars.
3694 Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
3696         * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
3697         Remove unneccessary variable `c1'.  If -l was given, increase
3698         `char_number' by the number of bytes read, after producing output,
3699         rather than by the offset of the first differing bytes, before
3700         producing output.
3701         Replace if-else-if constructions with case statements for clarity.
3702         (bcmp2): Rename `n' to `nread'.
3704 Wed Dec 20 01:32:06 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
3706         * nl.c (proc_text): Use re_search instead of re_match.
3708 Tue Dec 19 01:26:34 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
3710         * nl.c: Indent.  Un-nest statements.  Use GNU regexp functions
3711         instead of System V ones.  Move function declarations together.
3712         (quit): Remove useless function.
3713         (program_name): New variable for error messages.
3714         (main): Use perror in error message.
3715         (xmalloc): New function to replace myalloc.
3716         (myalloc): Function removed.
3717         Global: use program_name and xmalloc.
3719 Sun Dec 17 00:36:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
3721         * uniq.c: Declare some functions.
3722         (main): Initialize infile and outfile.  Call usage if given
3723         invalid args.  Normally exit with 0 status instead of garbage.
3724         (usage): New function to print usage message and exit.
3725         (check_file): Remove unused variable.
3726         (readline): Compare against EOF, not < 0.
3727         (xmalloc, xrealloc): Return char *, not int.
3728         Ok to return 0 if 0 bytes requested.
3729         (lb1, lb2): Remove unused global vars.
3730         (concat): Remove unused function.
3732 Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
3734         * comm.c: Remove unused global variables lb1, lb2.
3735         (main): Remove unneeded variable.
3736         (compare_files): Remove unused arg.
3737         (readline): un-nest assignment.  Test against EOF instead of < 0.
3738         (error): Print to stderr, not stdout.
3739         (xmalloc, xrealloc): Return char * instead of int.
3740         Returning 0 is ok if 0 bytes requested (ANSI C).
3743 Local Variables:
3744 mode: indented-text
3745 left-margin: 8
3746 version-control: never
3747 End: