home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnututil.zip / ChangeLog < prev    next >
Text File  |  1996-07-12  |  119KB  |  3,309 lines

  1. Thu Jul 11 22:04:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  2.  
  3.     * Version 1.19.
  4.  
  5.     * configure.in (VERSION): Bump to 1.19.
  6.  
  7. Wed Jul 10 22:57:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  8.  
  9.     * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
  10.     so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
  11.     those options on that system, sys/stat.h gets compile errors.
  12.     With help from Marcus Daniels.
  13.  
  14.     * getopt.c: Update from gettext-0.10.23.
  15.     * getopt1.c: Likewise.
  16.     * getopt.h: Likewise.
  17.  
  18. Tue Jul  9 18:07:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  19.  
  20.     * src/fmt.c (MAXCOST): Use `(unsigned long)1' rather than `(COST)1'
  21.     so the left operand of the << isn't signed.
  22.     From Kjetil Torgrim Homme.
  23.  
  24.     * po/Makefile.in.in (install-data): Don't install NLS files when
  25.     they're not requested.  From Ulrich Drepper.  Reported by
  26.     Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
  27.  
  28. Fri Jul  5 21:55:58 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  29.  
  30.     * po/Makefile.in.in ($(PACKAGE).pot): Merge from gettext-0.10.23.
  31.     * ABOUT-NLS: Likewise.
  32.     * intl/*: Likewise.
  33.     * aclocal.m4: Likewise.
  34.  
  35. Thu Jul  4 07:24:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  36.  
  37.     * src/uniq.c (usage): Remove space before newline in usage message.
  38.  
  39.     * src/md5sum.c (MIN_DIGEST_LINE_LENGTH): New macro.
  40.     [NEWLINE_REPLACEMENT_STRING*]: Remove macros.
  41.     (main): Output a leading backslash for a line describing a file
  42.     whose name contains a newline.  Then translate each NEWLINE byte
  43.     in the file name to the string, "\\n", and each backslash to "\\\\".
  44.     File names that don't contain NEWLINE aren't translated.
  45.     (split_3): Rewrite to handle file names with embedded newlines.
  46.     Miles Bader and Jim Blandy suggested this new encoding scheme.
  47.  
  48.     * src/md5sum.c (md5_file): Replace obsolete comment with a description
  49.     of the function.
  50.     (md5_check): Don't use "s"-adding trick to form the plural of
  51.     `checksum.'  That doesn't work well with translation.
  52.     Suggestions from Ulrich Drepper.
  53.     (split_3): Add missing semicolon so it compiles.  From Jim Blandy.
  54.  
  55. Wed Jul  3 23:21:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  56.  
  57.     * src/md5sum.c (split_3): Correct test for 35-byte line to accomodate
  58.     fact that leading blanks may be stripped.
  59.  
  60. Tue Jul  2 21:51:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  61.  
  62.     * configure.in (ALL_LINGUAS): Add dutch (nl).
  63.  
  64. Mon Jul  1 23:50:19 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  65.  
  66.     * src/md5sum.c [NEWLINE_REPLACEMENT_STRING]: Define.
  67.     (split_3): Translate NL bytes not to NUL, but to
  68.     NEWLINE_REPLACEMENT_STRING.
  69.     Suggested by Ulrich Drepper.
  70.     (main): Translate back to NL-containing filename.
  71.  
  72. Sun Jun 30 22:42:17 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  73.  
  74.     * src/md5sum.c (split_3): Take an additional parameter, S_LEN.
  75.     Adapt caller.
  76.     Map translated NEWLINE-containing filename back into the original
  77.     NEWLINE-containing name.
  78.     (md5_check): Translate NEWLINE bytes to NUL bytes in filename.
  79.  
  80. Sat Jun 29 18:59:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  81.  
  82.     * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so it
  83.     appears in the output of --version.  Reported by RMS.
  84.  
  85. Wed Jun 26 21:35:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  86.  
  87.     * src/Makefile.am (LDADD): Remove sort-specific hack to link
  88.     with -lm.
  89.     * aclocal.m4 (AM_FUNC_STRTOD): New macro.
  90.     * configure.in (AM_FUNC_STRTOD): Use it.
  91.     (AC_REPLACE_FUNCS): Remove strtod.
  92.     Suggested by Tom Tromey.
  93.  
  94.     * po/Makefile.in.in (install-data): Add `else true;' to avoid
  95.     letting failing if-condition cause make failure.
  96.     From Fred Fish (fnf@ninemoons.com).
  97.  
  98. Tue Jun 25 21:55:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  99.  
  100.     * Version 1.18a.
  101.  
  102. Tue Jun 18 20:43:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  103.  
  104.     * aclocal.m4: Update from gettext-0.10.20.
  105.     * ABOUT-NLS: Likewise.
  106.     * intl/*: Likewise.
  107.  
  108. Thu Jun 13 22:31:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  109.  
  110.     * configure.in (VERSION): Bump to 1.18a.
  111.  
  112.     * po/Makefile.in.in ($(PACKAGE).pot): Reapply change of May 30.
  113.     Depend on POTFILES only when using maintainer mode.
  114.  
  115.     * intl/*: Update from gettext-0.10.18.
  116.  
  117. Tue Jun 11 23:32:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  118.  
  119.     * Version 1.18.
  120.  
  121.     * po/Makefile.in.in: Update from gettext-0.10.17.
  122.     * intl/*: Likewise.
  123.     * ABOUT-NLS: Likewise.
  124.  
  125. Mon Jun 10 18:22:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  126.  
  127.     * Makefile.am (cvs-dist): Use -c option in cvs tag command.
  128.  
  129. Fri Jun  7 22:06:46 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  130.  
  131.     * configure.in (VERSION): Set to 1.18.
  132.  
  133.     * src/Makefile.am (sort_LDADD): Set this to -lm to get pow when using
  134.     the strtod supplied with this package.  Otherwise, linking failed on
  135.     Solaris-2.4 systems.  Reported by Wayne Stewart <wstewa@atl.com>.
  136.  
  137. Thu Jun  6 21:57:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  138.  
  139.     * po/Makefile.in.in: Update from gettext-0.10.16.
  140.     * intl/*: Likewise.
  141.     * ABOUT-NLS: Likewise.
  142.     * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
  143.     gettext-related ones.
  144.     Update from gettext-0.10.16.
  145.  
  146. Fri May 31 22:04:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  147.  
  148.     * Version 1.17.
  149.  
  150.     * Makefile.am (EXTRA_DIST): Set to texinfo.tex so that file is
  151.     distributed.
  152.  
  153. Thu May 30 00:07:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  154.  
  155.     * Version 1.16.
  156.  
  157.     * tail.c (main): Interpret the old-style +VALUE and -VALUE options
  158.     like -c VALUE and -c +VALUE (resp) when VALUE has one of the [bkm]
  159.     suffix multipliers.  This makes the code consistent with --help
  160.     output.  Reported by Karl Heuer.
  161.  
  162.     * sort.c (limfield): #ifdef-out a block of code that makes
  163.     GNU sort incompatible with Unix sort when a key-end spec refers
  164.     to the N'th character in a field that has fewer than N characters.
  165.     The POSIX spec doesn't appear to specify behavior for this case.
  166.     From Karl Heuer.
  167.  
  168.     * po/Makefile.in.in (stamp-cat-id): Avoid using temp filename
  169.     longer than 14 characters.
  170.     (mostlyclean): Likewise.
  171.     From Karl Heuer.
  172.  
  173.     * po/Makefile.in.in ($(PACKAGE).pot): Depend on POTFILES only
  174.     when using maintainer mode.  Reported by Karl Heuer.
  175.  
  176.     * po/Makefile.in.in (.po.mo): Reenable dependency and rule.
  177.     It is required when using native NLS, e.g. on Solaris.
  178.     From Marcus Daniels.
  179.  
  180.     * od.c (decode_one_format): Use %lu (not %d) printf format
  181.     corresponding to unsigned long, SIZE.
  182.  
  183.     * Version 1.15.
  184.  
  185.     * intl/Makefile.in (installcheck): New target.
  186.     * po/Makefile.in.in (installcheck): New target.
  187.  
  188.     * od.c (decode_one_format): Take another parameter.
  189.     Give a specific diagnostic for invalid format spec here rather
  190.     than an overly general one from caller's caller.
  191.     (decode_format_string): Update caller.
  192.     (main): Don't give diagnostic here when decode_format_string fails.
  193.     Remove assertions that could fail on some Crays because they don't
  194.     have a two-byte type.
  195.     Johan Danielsson (joda@pdc.kth.se) reported the failed assertions.
  196.  
  197. Mon May 27 17:43:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  198.  
  199.     * cat.c (main): Use STDIN_FILENO and STDOUT_FILENO instead of
  200.     less portable fileno (stdin) and fileno (stdout).
  201.     * sort.c (main): Use STDIN_FILENO instead of less portable
  202.     fileno (stdin).
  203.  
  204. Mon May 20 21:50:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  205.  
  206.     * Makefile.am (distcheck): Remove target and rule -- automake-0.33
  207.     adds it automatically.
  208.  
  209. Sun May 19 13:15:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  210.  
  211.     * configure.in (LINGUAS): Add ko.
  212.     * Makefile.am (distcheck): Remove @MAINT@ prefix from first command.
  213.  
  214. Thu May 16 22:18:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  215.  
  216.     * Makefile.am (distcheck): New target.  From Gord Matzigkeit.
  217.  
  218. Fri May 10 20:46:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  219.  
  220.     * po/Makefile.in.in (all-yes): Always depend on CATALOGS.  Otherwise
  221.     they won't be built and install could fail.  From Ulrich Drepper.
  222.     (.po.mo): Disable dependency and rule when not in maintainer mode.
  223.  
  224.     * aclocal.m4 (ud_WITH_NLS): Make DATADIRNAME and CATOBJEXT depend
  225.     on whether we're using GNU gettext.  From Ulrich Drepper.
  226.  
  227. Wed May  8 21:10:43 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  228.  
  229.     * intl/Makefile.in (distdir): Renamed from dist. For compatibility
  230.     with automake-0.32.
  231.     * po/Makefile.in.in (distdir): Likewise.
  232.  
  233.     * po/Makefile.in.in (all-yes): Depend on GMOFILES.
  234.     Depend on CATALOGS and GMOFILES files only in maintainer mode.
  235.  
  236. Tue May  7 22:10:20 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  237.  
  238.     * configure.in: Require autoconf-2.10.
  239.  
  240.     * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
  241.     * configure.in (jm_MAINTAINER_MODE): Use it.
  242.  
  243. Sat May  4 20:40:01 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  244.  
  245.     * configure.in (LINGUAS): Add de.
  246.     * po/de.po: New file.
  247.  
  248.     * memcasecmp.c [IN_CTYPE_DOMAIN]: Rename from ISASCII.
  249.     * regex.c [IN_CTYPE_DOMAIN]: Likewise.
  250.     * system.h [IN_CTYPE_DOMAIN]: Likewise.
  251.  
  252. Sun Apr 28 17:10:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  253.  
  254.     * fmt.c (copy_rest): Don't copy past end of prefix.  Output
  255.     trailing spaces if the prefix had any.  Before, fmt would
  256.     improperly output NUL bytes.  The command
  257.     perl -e 'print "| S";' |fmt -p' |  '|tr '\0' @
  258.     output `|@S'.  Reported by Franτois Pinard.
  259.  
  260.     * sort.c (main): Give a better diagnostic for `sort -0'.
  261.     Reported by Karl Berry.
  262.  
  263.     * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
  264.     Otherwise, some systems lose because the value AC_C_INLINE choses
  265.     with plain `cc' is different from that chosen when using the ANSI-mode
  266.     C compiler.  From Kaveh Ghazi.
  267.  
  268. Tue Apr 23 22:05:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  269.  
  270.     * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
  271.     * configure.in: Use it.
  272.     * lib/Makefile.am (tu_SOURCES): Remove getopt.c and getopt1.c.
  273.     (EXTRA_DIST): Add getopt.c and getopt1.c
  274.  
  275.     * src/*.c, src/*.h: Update Copyright years to include 1996.
  276.  
  277. Sun Apr 21 08:04:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  278.  
  279.     * getline.c: New version from gettext-0.10.12.
  280.     * getline.h: Likewise.
  281.     * configure.in (AC_CHECK_FUNCS): Add getdelim.
  282.     Suggested by Ulrich Drepper.
  283.  
  284.     * md5sum.c (md5_check): Remove spurious newline at end of error
  285.     format string.
  286.  
  287.     * od.c (decode_one_format): Use printf's L modifier for long doubles,
  288.     not `l'.  From Eric Backus.
  289.  
  290.     * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
  291.  
  292.     * od.c: Include <values.h>.
  293.     [!BITSPERBYTE]: Define.
  294.     [OFF_T_MAX]: Use BITSPERBYTE, not 8, and cast the result to off_t.
  295.     * configure.in (AC_CHECK_HEADERS): Add values.h.
  296.  
  297. Fri Apr 19 23:48:53 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  298.  
  299.     * Makefile.am (cvs-dist): New rule.  Based on the one from
  300.     Tom Tromey's automake.
  301.  
  302. Thu Apr 18 22:13:14 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  303.  
  304.     * tail.c (main): Make code clearer:  use new variable `n_files' in
  305.     place of `argc - optind'.  Use `file' instead of `argv + optind'.
  306.  
  307. Sat Apr 13 13:08:29 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  308.  
  309.     * lib/Makefile.am (noinst_HEADERS): Include memcasecmp.h,
  310.     not memcasecmp.c.
  311.  
  312.     * memcasecmp.c: Unprotoize.
  313.     [ISASCII]: Define.
  314.     [ISUPPER]: Define.
  315.  
  316.     * join.c (decode_field_spec): Rename local variable `valid'
  317.     to invalid (and reverse sense) to avoid conflict with the
  318.     macro definition in /usr/include/locale.h on SunOS 4.1.3.
  319.  
  320. Tue Apr  9 22:43:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  321.  
  322.     * uniq.c: Add new option --ignore-case (-i).
  323.     Include memcasecmp.h.
  324.     (different): Compare with memcasecmp if ignoring case.
  325.     (main): Handle 'i'.
  326.  
  327.     * join.c (memcasecmp): Remove static definition of function.
  328.     Include memcasecmp.h instead.
  329.  
  330.     * memcasecmp.c: New file.
  331.     * memcasecmp.h: New file.
  332.     * lib/Makefile.am (tu_SOURCES): Add memcasecmp.c.
  333.     (noinst_HEADERS): Add memcasecmp.h.
  334.  
  335. Thu Apr  4 17:05:33 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  336.  
  337.     * tr.c: The following commands all failed unnecessarily.
  338.     tr -cs '[:upper:]' '[X*]'
  339.     tr -dcs '[:lower:]' n-rs-z
  340.     tr -ds '[:xdigit:]' [:alnum:]'
  341.     tr -dcs '[:alnum:]' [:digit:]'
  342.     tr -dc '[:upper:]'
  343.     Reported by Ross Ridge (ross@worf.mks.com).
  344.     (validate): Add missing conjunct (translating) in test for
  345.     `translating and complementing character classes' error.  Before,
  346.     valid uses of tr could fail.  E.g. `tr -dcs '[:cntrl:]' '[:alnum:]''.
  347.     (homogeneous_spec_list): New function.
  348.     (validate): Use it to relax the old (overly restrictive) restriction
  349.     that prohibited use of complemented character classes when translating.
  350.     Now, that is allowed as long as the translation maps many to one.
  351.     (get_spec_stats): Rename and redefine global has_char_class from
  352.     has_upper_or_lower.
  353.  
  354. Wed Apr  3 07:08:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  355.  
  356.     * aclocal.m4: Update NLS macros from gettext-0.10.11.
  357.  
  358.     * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
  359.     when srcdir != builddir.  From Kaveh Ghazi.
  360.  
  361. Wed Mar 27 23:33:36 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  362.  
  363.     * cksum.c (cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
  364.     to be POSIX compliant.  From Stephen Gildea <gildea@x.org>.
  365.  
  366. Sun Mar 24 08:47:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  367.  
  368.     * join.c (main): Use EXIT_FAILURE, not 2, as exit code in error call.
  369.     * od.c (skip, main): Likewise.
  370.     * tr.c (main): Likewise.
  371.  
  372.     * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c fold.c head.c
  373.     join.c md5sum.c nl.c od.c paste.c pr.c split.c sum.c tac.c tail.c
  374.     tr.c unexpand.c uniq.c wc.c: Exit with status EXIT_SUCCESS or
  375.     EXIT_FAILURE, rather than 0 or 1.
  376.  
  377. Sat Mar 23 23:14:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  378.  
  379.     * system.h [EXIT_FAILURE]: Undefine and define to 1 also if it
  380.     is defined to zero.  Suggested by Paul Eggert.
  381.  
  382.     * sort.c [SORT_FAILURE]: New macro.
  383.     Be careful to exit with 1 only when -c is used and the
  384.     input is not properly sorted.  In all other cases, use
  385.     SORT_FAILURE as required by POSIX.
  386.     (main): Change some `error (1, ...' to use SORT_FAILURE.
  387.     Upon successful termination, exit with EXIT_SUCCESS instead of `0'.
  388.     Replace all uses of `2' (as exit code) with SORT_FAILURE.
  389.  
  390. Thu Mar 21 22:47:50 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  391.  
  392.     * csplit.c: Include assert.h, but disable assertions.
  393.     (process_line_count): Replace if-abort with a slightly relaxed
  394.     assertion.  Before, `echo |csplit - 1 1' would abort.
  395.     Reported by Samuli.Karkkainen@hut.fi.
  396.     (parse_patterns): Disallow uses like `csplit FILE 0' with zero
  397.     line number, `csplit FILE 2 1' with decreasing line numbers, and
  398.     warn about uses like `csplit FILE 3 3' that have equal line numbers.
  399.  
  400.     * sort.c (main): Declare to be of type int, not void.
  401.     From Peter Seebach <seebs@taniemarie.solon.com>.
  402.     * cat.c cksum.c comm.c csplit.c cut.c expand.c fold.c head.c join.c
  403.     nl.c paste.c pr.c split.c sum.c tac.c tail.c tr.c unexpand.c uniq.c
  404.     wc.c (main): Likewise.
  405.  
  406. Sat Mar 16 16:30:07 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  407.  
  408.     * configure.in (PACKAGE_VERSION): New macro.
  409.     * acconfig.h (PACKAGE_VERSION): Add it.
  410.     * src/Makefile.am: Remove rules for generating version.c.
  411.     Remove references to version.o, version.h, and stamp-v.
  412.     * version.c: Remove file.
  413.     * version.h: Remove file.
  414.     * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c fold.c
  415.     head.c join.c md5sum.c nl.c od.c paste.c pr.c sort.c split.c
  416.     sum.c tac.c tail.c tr.c unexpand.c uniq.c wc.c: Don't include
  417.     version.h.
  418.     (main): Use PACKAGE_VERSION instead of version_string.
  419.  
  420. Mon Mar 11 16:07:08 CST 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  421.  
  422.     * sort.c (write_bytes): Renamed from xfwrite.
  423.     Remove SIZE parameter.  It was always 1. Update all callers.
  424.     Rename NELEM parameter to N_BYTES and change its type to size_t.
  425.  
  426. Sat Mar  9 13:30:12 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  427.  
  428.     * cat.c cksum.c comm.c csplit.c cut.c expand.c fmt.c
  429.     fold.c head.c join.c md5sum.c nl.c od.c paste.c pr.c sort.c
  430.     split.c sum.c tac.c tail.c tr.c unexpand.c uniq.c wc.c (main):
  431.     Initialize for internationalized message support: call setlocale,
  432.     bindtextdomain, and textdomain.
  433.     * system.h: Add definitions and includes for NLS.
  434.     * Makefile.am (SUBDIRS): Add intl and po.
  435.     * src/Makefile.am (datadir): Define.
  436.     (localedir): Define.
  437.     (DEFS): Add LOCALEDIR definition.
  438.     (LDADD): Add @INTLLIBS@.
  439.     * aclocal.m4: Add NLS-related macro definitions from
  440.     gettext distribution.
  441.     * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
  442.     HAVE_STPCPY): New macros.
  443.     Add PACKAGE and VERSION.
  444.     * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
  445.     (VERSION): Likewise.
  446.     (ALL_LINGUAS): Define.
  447.     (AC_CHECK_HEADERS): Add float.h.
  448.     (ud_GNU_GETTEXT): Use it.
  449.     Link an nls file.
  450.     (AC_OUTPUT): Reflect addition of two new directories, intl and po.
  451.     Create po/Makefile.
  452.     From Franτois Pinard.
  453.  
  454.     * tr.c (star_digits_closebracket): Declare formal param, IDX,
  455.     and local I to be of type size_t (rather than int) to avoid
  456.     warnings from gcc -Wall.
  457.  
  458. Wed Feb 28 20:32:48 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  459.  
  460.     * src/Makefile.am: Adapt for automake-0.30.
  461.     (noinst_HEADERS): Rename from HEADERS.
  462.     (INCLUDES): Remove -I.. and -I$(srcdir).  automake-0.30 adds these
  463.     to DEFS automatically.
  464.     * lib/Makefile.am: (noinst_HEADERS): Rename from HEADERS.
  465.  
  466. Wed Feb 21 18:56:27 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  467.  
  468.     * join.c (xfields) [without -t]: Ignore leading blanks.
  469.     From David Dyck    (dcd@tc.fluke.COM).
  470.  
  471. Sun Feb 18 12:07:27 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  472.  
  473.     * join.c [TOLOWER]: Define.
  474.     (usage): Briefly describe new --ignore-case (-i) option.
  475.     (memcasecmp): New function.
  476.     (main): Set IGNORE_CASE for -i.
  477.     (keycmp): Compare with memcasecmp if IGNORE_CASE is set.
  478.     Suggestion and an initial patch from Alberto Accomazzi
  479.     <alberto@cfa0.harvard.edu>.
  480.  
  481. Sat Feb 17 18:54:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  482.  
  483.     * sort.c: Add -z option.  Change all occurrences of '\n' to `eolchar'.
  484.     (usage): Describe it.
  485.     (main): Set eolchar to 0 for -z.
  486.     From Mark W. Eichin <eichin@cygnus.com>.
  487.  
  488. Fri Feb 16 21:44:14 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  489.  
  490.     * join.c (main): Mark two strings for translation.
  491.     * md5sum.c (md5_check): Mark a string for translation.
  492.     From Franτois Pinard.
  493.  
  494. Mon Feb 12 21:12:28 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  495.  
  496.     Update for automake-0.29.
  497.     * Makefile.am (CONFIG_HEADER): Don't define.  Automake now does it.
  498.     * src/Makefile.am: Likewise.
  499.     * lib/Makefile.am: Likewise.
  500.     * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
  501.     * man/Makefile.am (man_MANS): Renamed from MANS.
  502.  
  503.     * fmt.c [TRUE]: Undefine before defining to avoid warning on NeXT.
  504.     [FALSE]: Likewise.
  505.     From Derek Clegg (dclegg@next.com).
  506.  
  507. Sat Feb  3 16:20:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  508.  
  509.     * Version 1.14.
  510.  
  511. Wed Jan 31 23:26:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  512.  
  513.     * tail.c (dump_remainder): Flush stdout when tailing-forever on
  514.     multiple files.  From Carlos Canau <Carlos.Canau@relay.puug.pt>.
  515.  
  516. Fri Jan  5 18:30:28  1996 Jim Meyering  (meyering@na-net.ornl.gov)
  517.  
  518.     * aclocal.m4: For SVR4 systems, use -Xc -D_POSIX_C_SOURCE in CFLAGS,
  519.     not just -Xc.  From Franτois Pinard.
  520.  
  521.     * doc/Makefile.am (DIST_OTHER): Don't set to mdate-sh.  mdate-sh is
  522.     distributed automatically.  From Tom Tromey.
  523.  
  524. Thu Jan  4 20:32:52 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  525.  
  526.     * nl.c: Include rx.h after limit.h (not before) to avoid warning
  527.     about the redeclaration of RE_DUP_MAX in limit.h.  rx.h protects
  528.     its definition.  From Kaveh Ghazi.
  529.  
  530.     * src/Makefile.am (DIST_OTHER): Include md5-test.rfc so make check
  531.     works again.  Reported by Franτois Pinard and Kaveh Ghazi.
  532.  
  533.     * rx.c [SYNTAX]: Rename from SYNTAX_TABLE.
  534.     [SYNTAX_TABLE]: Remove extern dcl of re_syntax_table.
  535.     (RE_SEARCH_2_FN): Cast string1 and string2 to avoid pointer type
  536.     mismatch errors from e.g. SunOS's /bin/cc.
  537.     Reported by Kaveh Ghazi.
  538.  
  539. Wed Jan  3 23:34:39 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  540.  
  541.     * configure.in (VERSION): Set variable directly rather than from
  542.     a separate file.
  543.     * Makefile.am (DIST_OTHER): Remove VERSION.
  544.     * src/Makefile.am (version.c): Depend on Makefile, not ../VERSION.
  545.     (stamp-v): New target; depend on Makefile.
  546.     (DISTCLEANFILES): Add stamp-v, version.c.
  547.  
  548. Tue Jan  2 00:08:08 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  549.  
  550.     * sort.c (keycompare): Rewrite cases handling ignored characters
  551.     so that they really are ignored.  Reported by Carl Johnson
  552.     <carlj@cjlinux.home.org>.
  553.  
  554. Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
  555.  
  556.     * configure.in: Touch stamp-h only if config.h is remade.
  557.  
  558.     * csplit.c (extract_regexp) [!WITH_REGEX]: Intialize
  559.     syntax_parens field.
  560.  
  561. Mon Dec 18 21:42:44 1995  Jim Meyering  (meyering@comco.com)
  562.  
  563.     Use automake to generate Makefile.in files.
  564.     * Makefile.am: New file.
  565.     * doc/Makefile.am: New file.
  566.     * lib/Makefile.am: New file.
  567.     * man/Makefile.am: New file.
  568.     * src/Makefile.am: New file.
  569.  
  570. Thu Dec 14 21:13:22 1995  Jim Meyering  (meyering@comco.com)
  571.  
  572.     * fmt.c (main): Use xstrtol instead of atoi.
  573.  
  574.     * fold.c (main): Use xstrtol instead of atoi.
  575.     (fold_file): Make a couple locals `int', not size_t, and cast
  576.     fwrite's third parameter to size_t.
  577.  
  578.     * nl.c (main): Use xstrtol instead of atoi.
  579.     Rename misleading --first-page=N option to --starting-line-number=N.
  580.     (usage): Update.
  581.  
  582.     * uniq.c (main): Use xstrtol instead of atoi.
  583.  
  584. Fri Dec  8 20:48:00 1995  Jim Meyering  (meyering@comco.com)
  585.  
  586.     * aclocal.m4 (fp_C_PROTOTYPES): Set ANSI2KNR to ./ansi2knr.
  587.  
  588. Thu Dec  7 19:55:03 1995  Jim Meyering  (meyering@comco.com)
  589.  
  590.     * aclocal.m4 (ud_WITH_REGEX): New macro.
  591.     * configure.in: Use it.
  592.     * rx.c, rx.h: New files.
  593.     * lib/Makefile.in (REGEX): Set to @REGEXOBJ@, not regex.o.
  594.     (SOURCES, DISTFILES): Add rx.c, rx.h.
  595.     * acconfig.h (WITH_REGEX): Add it.
  596.     * csplit.c [!WITH_REGEX]: Include rx.h.
  597.     * nl.c [!WITH_REGEX]: Likewise.
  598.     * tac.c [!WITH_REGEX]: Likewise.
  599.     From Ulrich Drepper and Franτois Pinard.
  600.  
  601. Tue Dec  5 17:49:53 1995  Jim Meyering  (meyering@comco.com)
  602.  
  603.     * sort.c (main): Diagnose invalid arguments to -k, then fail.
  604.  
  605.     * sort.c (numcompare): Properly handle all cases in which signs differ.
  606.     From Karl Heuer.
  607.  
  608.     * Makefile.in (mandir): @mandir@ is just $(prefix)/man.
  609.     Append `/man1'.  Reported by Karl Heuer.
  610.  
  611.     * sum.c (bsd_sum_file): Remove misleading comment.  From Karl Heuer.
  612.  
  613.     * src/Makefile.in [.c._o]: Don't create $<-tmp.  From Kaveh Ghazi.
  614.  
  615. Fri Dec  1 01:02:36 1995  Jim Meyering  (meyering@comco.com)
  616.  
  617.     * lib/Makefile.in (default): New target.
  618.  
  619.     * sort.c (numcompare): Properly order `-' and valid integers;
  620.     treat `-' as if it were zero.  Reported by Ross Alexander
  621.     <r.alexander@auckland.ac.nz>.
  622.  
  623.     * Makefile.in (DISTFILES): Remove unused mkdep-Makefile.
  624.     (.PHONY): Depend on default.
  625.  
  626. Wed Nov 29 21:50:53 1995  Jim Meyering  (meyering@comco.com)
  627.  
  628.     * aclocal.m4 (jm_PROG_C_MKDEP): Remove, for now.
  629.     (jm_AUTODEPS): Likewise.
  630.     (jm_WITH_GNU_MAKE): Likewise.
  631.     * configure.in (jm_AUTODEPS): Remove.
  632.  
  633.     * sort.c (begfield): Replace loop with equivalent if-else.
  634.     (limfield): Fix bug that made field specs like -k1.5 return a
  635.     pointer into LINE beyond the first field.
  636.     Don't try to trim trailing blanks here; it's not
  637.     possible because we don't know where the field begins.
  638.     Replace loop with equivalent if-else.
  639.     (trim_trailing_blanks): New function.
  640.     (findlines): Call it.
  641.     (keycompare): Likewise.
  642.     (main): Don't decrement T2 corresponding to `x' in field
  643.     specs like -ku.v,w.x.
  644.  
  645. Sun Nov 26 15:50:23 1995  Jim Meyering  (meyering@comco.com)
  646.  
  647.     * csplit.c [!UINT_MAX]: Define.
  648.     [!INT_MAX]: Define.
  649.     Include xstrtoul.h.
  650.     (string_to_number): Remove function.
  651.     (check_for_offset): Use xstrtoul instead of string_to_number.
  652.     (parse_repeat_count): Likewise.
  653.     (parse_patterns): Likewise.
  654.     (main): Likewise.
  655.  
  656. Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)
  657.  
  658.     * Makefile.in (all et. al.): If make was invoked with -k and a
  659.     sub-make fails, fail after the loop rather than exiting right away.
  660.     Otherwise, make's -k option could be ineffective.
  661.  
  662. Sat Nov 18 12:04:30 1995  Jim Meyering  (meyering@comco.com)
  663.  
  664.     * src/Makefile.in (version.c): Depend on ../VERSION, not Makefile.
  665.  
  666.     Update for autoconf-2.5:
  667.     * src/Makefile.in (libdir): Set to @libdir@.
  668.     (bindir): Set to @bindir@.
  669.     * doc/Makefile.in (infodir): Set to @infodir@.
  670.     * man/Makefile.in (exec_prefix): Remove it.
  671.     (mandir): Set to @mandir@.
  672.     (bindir): Remove it.
  673.  
  674. Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)
  675.  
  676.     * Makefile.in (default): New default target.  Depend on `all' to
  677.     work around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
  678.     <luik@isa.de>.
  679.  
  680. Wed Nov 15 23:48:31 1995  Jim Meyering  (meyering@comco.com)
  681.  
  682.     * mkdep-Makefile (.deps/empty.P): Depend on BUILT-HEADERS.
  683.  
  684.     * aclocal.m4 (jm_PROG_C_MKDEP): Rename from jm_PROG_MKDEP.
  685.     * src/Makefile.in (C_MKDEP): Rename from MKDEP.
  686.     * lib/Makefile.in (C_MKDEP): Likewise.
  687.     * mkdep-Makefile (C_MKDEP): Likewise.
  688.     Add comments.
  689.  
  690.     * csplit.c [__P]: Don't define it here.
  691.     * pr.c [__P]: Don't define it here.
  692.     * fmt.c [__P]: Don't define it here.
  693.     * system.h [__P]: Define it here.
  694.  
  695.     * aclocal.m4 (jm_AUTODEPS): Rename from jm_WITH_AUTODEPS.
  696.     Revamp, with suggestions from Franc,ois Pinard.
  697.     (jm_WITH_GNU_MAKE): New macro.
  698.     (jm_PROG_MKDEP): New macro.
  699.     * configure.in (jm_PROG_MKDEP): Use it.
  700.     * src/Makefile.in (MKDEP): Set it.
  701.     * lib/Makefile.in (MKDEP): Likewise.
  702.     * mkdep-Makefile: Use MKDEP, not DEP_CC.
  703.     (DEP_CFLAGS): Remove it.
  704.  
  705. Tue Nov 14 23:10:54 1995  Jim Meyering  (meyering@comco.com)
  706.  
  707.     * sort.c: Add support for sorting numbers in scientific notation.
  708.     Include xstrtod.h.
  709.     (struct keyfield): Add field: general_numeric.
  710.     (usage): Describe -g option.
  711.     (general_numcompare): New function.
  712.     (keycompare): Use new comparison function when general_numeric
  713.     flag is set.
  714.     (set_ordering): Honor `g' flag.
  715.     (main): Initialize and use new field.
  716.     From Marcus Daniels <marcus@sysc.pdx.edu>.
  717.  
  718.     * configure.in (AC_REPLACE_FUNCS): Add strtod.
  719.     * lib/Makefile.in (SOURCES): Add xstrtod.c.
  720.     (OBJECTS): Add xstrtod.o.
  721.     (DISTFILES): Add xstrtod.h.
  722.  
  723.     * csplit.c (cleanup): Don't exit.
  724.     (interrupt_handler): Rewrite to reset default signal handler
  725.     then repost caught signal.
  726.     (xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
  727.     process_line_count, process_regexp, create_output_file,
  728.     close_output_file): Call cleanup_fatal, not cleanup.
  729.     Add const attribute to lots of parameters.
  730.     (cleanup_fatal): Renamed from cleanup.  Call cleanup, then exit.
  731.     Update callers.
  732.  
  733.     * tac.c: (cleanup): Don't exit.
  734.     (cleanup_fatal): New function.  Call cleanup, then exit.
  735.     (sighandler): New function.
  736.     (cleanup_fatal): Renamed from cleanup.  Call cleanup, then exit.
  737.     Update callers.
  738.     (tac_stdin): Set up sighandler as signal handler, not `cleanup'.
  739.  
  740. Sat Nov 11 15:46:02 1995  Jim Meyering  (meyering@comco.com)
  741.  
  742.     * od.c (skip): Cast fseek's offset argument to `long'.
  743.     Erik Bennett <bennett@cvo.oneworld.com> reported that this is
  744.     necessary on BSDI systems.  And if offset doesn't fit in a long,
  745.     then try using lseek instead.
  746.  
  747.     * sort.c (xmalloc): Declare static.
  748.     (xrealloc): Likewise.
  749.  
  750.     * tac.c (cleanup): Add signal number parameter.
  751.     Update callers.
  752.  
  753.     * cat.c (main): Don't die when dev/ino of input and output are
  754.     the same and the file descriptors correspond to stdin and stdout.
  755.     This is necessary on at least Digital UNIX (aka OSF1) 3.2C.
  756.     Otherwise, running `cat << X > $$' would fail with `cat: -: input
  757.     file is output file'.  From Jarkko Hietaniemi <jhi@epsilon.hut.fi>.
  758.  
  759.     * Makefile.in (DISTFILES): Add @README_ALPHA@.
  760.     (config.status) Depend on VERSION.
  761.     * configure.in: Set README_ALPHA if the version number ends in [a-z].
  762.  
  763. Fri Nov 10 21:13:42 1995  Jim Meyering  (meyering@comco.com)
  764.  
  765.     * fold.c (usage): Clarify meaning of --spaces.  From Karl Berry.
  766.  
  767.     src/Makefile.in (.c._c): Don't redirect directly to $@.
  768.     (._c._o, .c._o): Remove temporary src file.
  769.  
  770. Tue Nov  7 23:55:24 1995  Jim Meyering  (meyering@comco.com)
  771.  
  772.     * VERSION: New file.
  773.     * configure.in (VERSION): New variable.
  774.     (PACKAGE): New variable.
  775.  
  776.     * Makefile.in (DISTFILES): Add VERSION.
  777.     (distdir): Use @PACKAGE@-@VERSION@, not distname.
  778.     Remove all references to distname.
  779.     * src/Makefile.in (version.c): Generate it.
  780.     (SOURCES): Remove now-generated version.c.
  781.     (distclean): Delete version.c.
  782.     * doc/Makefile.in (version.texi): Use @PACKAGE@-@VERSION@,
  783.     not version.c
  784.  
  785.     * */Makefile.in (distdir): Use @PACKAGE@-@VERSION@, not distname.
  786.     Remove all references to distname.
  787.  
  788.     * split.c: New option: --verbose.
  789.     (main): Recognize it.
  790.     (usage): Document it.
  791.     From Marty Leisner <leisner@sdsp.mc.xerox.com>.
  792.  
  793. Sun Nov  5 06:59:27 1995  Jim Meyering  (meyering@comco.com)
  794.  
  795.     * src/Makefile.in: Reflect protoization of csplit.c, fmt.c, pr.c,
  796.     and unexpand.c.
  797.  
  798.     * pr.c: Protoize.
  799.     (store_columns): Remove spurious 2nd argument in call to read_line.
  800.     [__P]: Define.  Use it in prototyped forward decls.
  801.  
  802.     * csplit.c: Move prototypes after struct declarations.
  803.     Remove prototypes for xmalloc, xrealloc.
  804.     Protect prototypes with __P.
  805.     (new_control_record): Cast arg 1 to realloc.
  806.  
  807.     * fmt.c [__P]: Test PROTOTYPES, not __STDC__.
  808.     Protoize.
  809.  
  810. Sat Nov  4 23:51:30 1995  Jim Meyering  (meyering@comco.com)
  811.  
  812.     * csplit.c (close_output_file): Set output_stream to NULL so we
  813.     don't recurse endlessly between this function and cleanup.
  814.  
  815.     * unexpand.c: Reorder functions to obviate forward dcls.  Remove
  816.     forward dcls.  Protoize.  Add `const' attribute to some parameters.
  817.  
  818. Mon Oct 30 23:15:56 1995  Jim Meyering  (meyering@comco.com)
  819.  
  820.     * wc.c: Reorder functions to obviate forward dcls.  Remove
  821.     forward dcls.  Protoize.  Add `const' attribute to some parameters.
  822.     * uniq.c: Likewise.
  823.     * split.c: Likewise.
  824.  
  825.     * split.c (isdigits, convint): Remove these.
  826.     (main): Use xstrtol instead.
  827.  
  828. Sun Oct 29 14:04:36 1995  Jim Meyering  (meyering@comco.com)
  829.  
  830.     * paste.c (main): Move function body to end of file.
  831.     Remove forward dcls and protoize.
  832.     * sum.c (main): Likewise.
  833.     * nl.c: Protoize.  Reorder functions to obviate forward dcls.
  834.     Remove forward dcls.
  835.     * tac.c: Likewise.
  836.     * src/Makefile.in (OBJECTS): Reflect that all of the above
  837.     now use prototypes.
  838.  
  839.     * sum.c (bsd_sum_file): Give file name parameter const attribute.
  840.     (sysv_sum_file): Likewise.
  841.  
  842.     * tac.c (xwrite): Give output buffer parameter const attribute.
  843.     (output): Likewise for both parameters.
  844.     (tac): Likewise for file name parameter.
  845.     (tac_file): Likewise.
  846.  
  847. Sat Oct 28 16:02:39 1995  Jim Meyering  (meyering@comco.com)
  848.  
  849.     * md5sum.c (md5_check): Use the same message format when there is
  850.     a single file and it gets a read error or checksum mismatch as when
  851.     there are more.  Write that warning to standard error, not standard
  852.     output.  Suggestions from Greg Troxel (gdt@b-sgi.bbn.com).
  853.  
  854. Thu Oct 26 00:11:35 1995  Jim Meyering  (meyering@comco.com)
  855.  
  856.     * sort.c (xtmpfopen): New function to set proper permissions on
  857.     temporary files.  Use it instead of xfopen. Reported by Erik Corry
  858.     (erik@kroete2.freinet.de).
  859.  
  860. Mon Oct 23 23:17:04 1995  Jim Meyering  (meyering@comco.com)
  861.  
  862.     * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
  863.     * configure.in: Use it.
  864.  
  865.     * lib/Makefile.in (INCLUDE, COMPILE): New variables.
  866.     (.c.o): Rewrite to be more like src/Makefile.in.
  867.  
  868.     * src/Makefile.in (distclean): Remove .deps.
  869.     Include @top_srcdir@/mkdep-Makefile.
  870.  
  871.     * mkdep.Makefile: New file.
  872.     * Makefile.in (DISTFILES): Add mkdep-Makefile.
  873.     * doc/Makefile.in (mostlyclean): Also remove *.info.
  874.  
  875. Thu Oct 19 17:38:28 1995  Jim Meyering  (meyering@comco.com)
  876.  
  877.     * od.c: Indent cpp directives.
  878.  
  879.     * tr.c (BEGIN_STATE): Use INT_MAX - 1 so as not to interfere
  880.     with large repeat counts.
  881.     (struct E_string): New struct.
  882.     (find_closing_delim): Take E_string arg rather than char* and length.
  883.     (find_bracketed_repeat): Likewise.
  884.     (star_digits_closebracket): New function.
  885.     (append_char_class): No longer give diagnostic.
  886.     (append_equiv_class): Likewise.
  887.     (build_spec_list): Give them here instead, allowing string1 like
  888.     [:*][:upper:] that got errors before.
  889.     Take E_string arg rather than char*.
  890.     Convert switch stmts into if-then so as to use ES_MATCH.
  891.  
  892. Tue Oct 17 22:48:00 1995  Jim Meyering  (meyering@comco.com)
  893.  
  894.     * cat.c: Protoize.  Reorder functions to obviate forward dcls.
  895.     Remove forward dcls.
  896.     * expand.c: Likewise.
  897.     * fold.c: Likewise.
  898.     * head.c: Likewise.
  899.     * od.c: Likewise.
  900.     * sort.c: Likewise.
  901.     * tail.c: Likewise.
  902.  
  903.     * src/Makefile.in (OBJECTS): Reflect that all of the above
  904.     now use prototypes.
  905.  
  906.     * head.c: Add `const' attribute to dcls of lots of formals.
  907.  
  908.     * sort.c: Add `const' attribute to dcls of lots of formals.
  909.     Move struct dcls to precede dcls of file-scope variables.
  910.     (monthtab, keyhead): Separate variable dcls from type dcls.
  911.  
  912. Fri Oct 13 20:38:39 1995  Jim Meyering  (meyering@comco.com)
  913.  
  914.     * join.c (add_field_list): Allow SPACE and TAB as well as `,' as
  915.     list item separators, per POSIX spec.
  916.     (prjoin): Rewrite loop that iterates over field specs.
  917.     Handle case in which file spec is 0.
  918.  
  919. Sun Oct  8 22:41:15 1995  Jim Meyering  (meyering@comco.com)
  920.  
  921.     * strpbrk.c: New file.
  922.     * lib/Makefile.in (SOURCES): Add strpbrk.c.
  923.     Remove bcopy.c.
  924.  
  925. Sat Oct  7 22:27:01 1995  Jim Meyering  (meyering@comco.com)
  926.  
  927.     * join.c (add_field): No longer return a value.
  928.     (decode_field_spec): New function.
  929.     (add_field_list): Rewrite to be more strict.
  930.     Before, `,1.2' was accepted as valid.
  931.     (main): Use xstrtol instead atoi.
  932.     Combine nearly identical -a and -v cases.
  933.     Close input files.
  934.  
  935. Fri Oct  6 23:10:01 1995  Jim Meyering  (meyering@comco.com)
  936.  
  937.     * join.c (main): Report `too few/many non-option arguments'
  938.     then print --help output rather than just the latter.
  939.     Properly interpret obsolescent usage like `join -o 2.1 2.1 2.2'.
  940.     (usage): Describe POSIX -1, -2 options and deprecate -j* ones
  941.  
  942.     * join.c (usage): Move to precede all other functions.
  943.  
  944.     * join.c: Protoize.
  945.  
  946. Tue Oct  3 22:44:05 1995  Jim Meyering  (meyering@comco.com)
  947.  
  948.     * csplit.c, sort.c, tac.c: Test SA_INTERRUPT, not _POSIX_VERSION,
  949.     to determine whether `sigaction' functions are available.
  950.     Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu>.
  951.     Fix suggested by Karl Berry.
  952.  
  953.     * md5sum.c (main): Declare counter, N_STRINGS, to be an integral
  954.     type, not `char'.
  955.  
  956.     * cut.c: Convert many declarations using `int' to use `unsigned int'
  957.     to avoid warnings from `gcc -Wall' about comparing signed and
  958.     unsigned types.
  959.     (set_fields): Use memset (not open coded loop) to initialize array.
  960.  
  961. Thu Sep 28 23:16:05 1995  Jim Meyering  (meyering@comco.com)
  962.  
  963.     * Version 1.13.
  964.  
  965.     * Makefile.in (DISTFILES): Remove README.alpha for major release.
  966.  
  967.     * od.c (decode_one_format): Remove spurious semicolon.
  968.     From John Kodis (kodis@daacdev1.stx.com).
  969.  
  970. Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)
  971.  
  972.     * man/Makefile.in (install-data, uninstall): Use sed not basename.
  973.     The GNU Coding Standard suggests that only a select set of
  974.     relatively standard utilities be used in Makefiles.  basename is
  975.     not among them.  Suggested by Ulrich Drepper.
  976.  
  977. Sun Sep 24 08:36:47 1995  Jim Meyering  (meyering@comco.com)
  978.  
  979.     * cksum.c: Protoize.
  980.     * cut.c: Protoize.
  981.  
  982.     * src/Makefile.in (OBJECTS): Reflect that cksum.c and cut.c use
  983.     prototypes.
  984.     (cksum): Depend on cksum$O.
  985.     (cut): Depend on cut$O.
  986.  
  987. Sat Sep 23 15:43:46 1995  Jim Meyering  (meyering@comco.com)
  988.  
  989.     * Version 1.12.2.
  990.  
  991.     * Makefile.in (DISTFILES): Add README.alpha.
  992.  
  993.     * lib/Makfile.in: (GETOPT, MEMCHR, REGEX): New variables.
  994.     (OBJECTS): Use them instead of hardcoding object file names.
  995.     Suggested by Ulrich Drepper.
  996.  
  997.     * md5sum.c (md5_check): Distinguish between open/read failure
  998.     and checksum mismatch.
  999.  
  1000. Mon Sep 18 23:15:05 1995  Jim Meyering  (meyering@comco.com)
  1001.  
  1002.     * md5sum.c: Protoize.
  1003.     * src/Makefile.in (OBJECTS): Change md5sum.o to md5sum$O.
  1004.     (join.o, md5sum$O, sort.o) Depend on ../lib/long-options.h.
  1005.     (md5sum): Depend on md5sum$O.
  1006.  
  1007.     * md5sum.c (main, usage): Remove -h, -s, -v short options.
  1008.     Rename --verbose to --warn, --quiet to --status.
  1009.     (main): Handle --help and --version using parse_long_options.
  1010.     (md5_check): Check ferror.
  1011.  
  1012.     * sort.c (tempname): Replace `16' with a more readable expansion.
  1013.     Make sure that counter never exceeds 99999.
  1014.     (checkfp): Rearrange loop to avoid duplicate test.
  1015.     Move a couple dcls from function scope into inner block.
  1016.  
  1017. Tue Aug  8 21:49:27 1995  Jim Meyering  (meyering@comco.com)
  1018.  
  1019.     * md5sum.c (main): Fail if either --verbose or --quiet is specified
  1020.     when not verifying checksums.
  1021.  
  1022.     * md5sum.c (md5_check): Fail if no valid line is found.
  1023.     Don't use the word `fail' unless there were failures --
  1024.     instead, say `all N tests passed.'
  1025.  
  1026.     * md5sum.c (main) [handling --string option]: Don't output
  1027.     nonstandard `b' binary flag.  From Greg Troxel (gdt@bbn.com).
  1028.     * md5-test.rfc: Remove now-inconsistant `b' marker.
  1029.     (usage): Clarify help message.  With suggestions from Greg Troxel.
  1030.  
  1031. Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)
  1032.  
  1033.     * sort.c (mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
  1034.     compiler warning.  From Ulrich Drepper.
  1035.  
  1036.     * pr.c (read_line) [lint]: Initialize CHARS to avoid spurious
  1037.     compiler warning.  From Ulrich Drepper.
  1038.  
  1039.     * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
  1040.     From Franc,ois.
  1041.  
  1042. Mon Aug  7 00:02:59 1995  Jim Meyering  (meyering@comco.com)
  1043.  
  1044.     * system.h (_): Define macro -- as empty for now.
  1045.     * src/*.c: Annotate localizable strings with _(...).  From Franc,ois.
  1046.  
  1047. Sat Aug  5 23:51:25 1995  Jim Meyering  (meyering@comco.com)
  1048.  
  1049.     * Version 1.12.1.
  1050.  
  1051.     * configure.in: Add fp_C_PROTOTYPES.
  1052.  
  1053. Fri Aug  4 23:21:46 1995  Jim Meyering  (meyering@comco.com)
  1054.  
  1055.     * src/Makefile.in (DISTFILES): Include ansi2knr.c and ansi2knr.1.
  1056.     Add suffixes, dependencies, and rules to convert ANSI source to K&R
  1057.     when required.  Mark tr.o and comm.o as the only such files (for now).
  1058.  
  1059.     * tr.c: Protoize.
  1060.     * comm.c: Protoize.
  1061.  
  1062.     * Makefile.in (DISTFILES): Add aclocal.m4 and acconfig.h.
  1063.     (configure): Depend on aclocal.m4.
  1064.     (stamp.h.in): Depend on aclocal.m4 and acconfig.h.
  1065.  
  1066. Sun Jul 30 00:01:58 1995  Jim Meyering  (meyering@comco.com)
  1067.  
  1068.     * md5sum.c (md5_check): Use getline instead of fgets.
  1069.  
  1070.     * lib/Makefile.in: (SOURCES): Add getline.c.
  1071.     (OBJECTS): Add getline.o.
  1072.     (DISTFILES): Add getline.h.
  1073.     (getline.o): Depend on getline.h.
  1074.  
  1075.     * md5.c [memcpy]: Define to bcopy if needed.
  1076.     (md5_buffer): Explicitely cast SWAP expressions to unsigned
  1077.     to avoid warning.
  1078.  
  1079.     * lib/Makefile.in (strtoul.o): Depend on strtol.c.
  1080.  
  1081.     * sort.c (check): Print `disorder on...' message on standard error,
  1082.     not stdout.  This is a minor concession to POSIX which says
  1083.     `no output shall be produced...'.
  1084.  
  1085.     * sort.c (main): Fix -k so it works. -k 2,3 was being treated
  1086.     like -k 2.  Reported by Marcus Daniels <marcus@sysc.pdx.edu>.
  1087.  
  1088. Wed Jul 26 22:54:48 1995  Jim Meyering  (meyering@comco.com)
  1089.  
  1090.     * man/Makefile.in (install, uninstall): Strip off `.1', not just `1'
  1091.     before applying $(transform) to manual name.  From Karl Berry.
  1092.  
  1093.     * md5sum.c (have_read_stdin): New global variable.
  1094.     (md5_file, md5_check): Set it.
  1095.     (main): Use it.
  1096.  
  1097.     * md5sum.c [OPENOPTS]: Depend explicitly on BINARY.
  1098.     (md5_file): Take a new parameter, MD5_RESULT, and no longer
  1099.     generate output.
  1100.     (md5_check): Invoke md5_file instead of calling fopen directly.
  1101.     When giving a diagnostic for a line with invalid format, also report
  1102.     the line number.
  1103.     (main): Generate output after a successful md5_file call.
  1104.     [in many places]: Upon detection of an error, rather than exiting
  1105.     immediately, issue a diagnostic, note that an error occurred and
  1106.     exit later.
  1107.  
  1108. Mon Jul 24 21:48:26 1995  Jim Meyering  (meyering@comco.com)
  1109.  
  1110.     * tail.c (tail_bytes) [from_start]: For regular files, seek
  1111.     relative to the initial input file pointer position, not
  1112.     necessarily from the beginning of the file.
  1113.     [!from_start]: Don't back up past the initial position of the
  1114.     input file pointer.
  1115.     (tail_lines): Call file_lines only if FD refers to a regular file
  1116.     with its file pointer positioned at beginning of file.  Otherwise,
  1117.     call pipe_lines.  This is a kludge.  Once there's a decent test
  1118.     suite, fix this properly.
  1119.     Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k
  1120.     would output both lines of the input file even though the first had
  1121.     already been read.  Reported by John Roll (john@panic.harvard.edu).
  1122.  
  1123.     * md5sum.c [_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower.
  1124.  
  1125.     * csplit.c (main): When too few arguments are given, don't just
  1126.     issue the usage message; also report why.
  1127.  
  1128. Sat Jul 22 00:16:01 1995  Jim Meyering  (meyering@comco.com)
  1129.  
  1130.     * md5sum.c (md5_check): New function -- extracted from main.
  1131.  
  1132. Fri Jul 21 01:21:49 1995  Jim Meyering  (meyering@comco.com)
  1133.  
  1134.     * md5sum.c (md5_file): New function -- extracted from main.
  1135.     (main): Call the new function instead of doing all that in an
  1136.     if-stmt. Always use "%s" format rather than raw filename as
  1137.     format argument in printf-style functions like error.  Otherwise,
  1138.     filenames containing `%' are likely to lose.
  1139.     Remove all mention of `old format'.
  1140.     (split_3): No longer parse the `new format.'  There is only one
  1141.     valid format now: the compatible one.
  1142.  
  1143.     * lib/Makefile.in: (SOURCES): Add md5.c.
  1144.     (OBJECTS): Add md5.o.
  1145.     (DISTFILES): Add md5.h.
  1146.     (md5.o): Depend on md5.h.
  1147.  
  1148.     * system.h [!EXIT_FAILURE, !EXIT_SUCCESS]: Define them.
  1149.     * lib/md5.c (md5_stream): Check for read failure and return
  1150.     indication of success rather than second argument.
  1151.     * lib/md5.h (md5_stream): Update prototype.
  1152.     [__P]: Define macro.
  1153.     * md5sum.c: Use EXIT_FAILURE and EXIT_SUCCESS.
  1154.     (main): Report an error if md5_stream fails.  Otherwise, running
  1155.     `md5sum dir-on-mounted-filesystem' always reported the checksum
  1156.     for an empty file.  Now it gets the `is a directory' error.
  1157.     Greg McGary (gkm@magilla.cichlid.com) reported that the released
  1158.     version got stuck in an infinite loop with such arguments.
  1159.  
  1160.     * lib/md5.c: New file.
  1161.     * lib/md5.h: New file.
  1162.     * md5sum.c: Rewritten to use library interface.
  1163.     From Ulrich Drepper.
  1164.  
  1165. Sun Jul 16 18:42:34 1995  Jim Meyering  (meyering@comco.com)
  1166.  
  1167.     * configure.in: Add AC_C_INLINE: md5sum.c uses inline keyword.
  1168.  
  1169. Tue Jul 11 21:56:02 1995  Jim Meyering  (meyering@comco.com)
  1170.  
  1171.     * md5sum.c Add #else block after #ifdef VMS.
  1172.     (main): Rename local variable.
  1173.     Detect and report failed fclose calls on stdout and checkfile_stream.
  1174.  
  1175.     * tr.c (unqote): Comment out unreachable break stmts.
  1176.     (append_range): Declare FIRST and LAST parameters to be unsigned int,
  1177.     not size_t.
  1178.     (find_closing_delim): Clean up interface, separating boolean success
  1179.     indicator and index.
  1180.     (find_bracketed_repeat): Likewise.
  1181.     (build_spec_list): Adapt to use new interfaces.
  1182.     Declare CLOSING_DELIM_IDX and CLOSING_BRACKET_IDX to be of
  1183.     type size_t, not int.
  1184.     (main): Declare NR and CHARS_READ to be of type long, not int.
  1185.  
  1186.     * sort.c (main): Comment out unreachable break stmt.
  1187.  
  1188.     * tail.c (tail): Explicitly cast to long the N_UNITS argumennt in
  1189.     call to tail_lines.  Otherwise, NetBSD lost because N_UNITS (of type
  1190.     off_t, a 64-bit type on NetBSD) wasn't converted to the target type,
  1191.     long.  Reported by Dan Hagerty (hag@gnu.ai.it.edu).
  1192.  
  1193.     * comm.c: Reorder functions so main is last, so no forward dcls
  1194.     are needed.
  1195.  
  1196. Sun Jul  9 11:41:15 1995  Jim Meyering  (meyering@comco.com)
  1197.  
  1198.     * sort.c (main): When using obsolescent +pos -pos syntax, allow
  1199.     omission of field spec only when character offset is specified.
  1200.     Otherwise, -. +. would be accepted.
  1201.  
  1202. Sat Jul  8 13:48:06 1995  Jim Meyering  (meyering@comco.com)
  1203.  
  1204.     * sort.c (main): Allow field spec, M, to be omitted in +M.N or -M.N
  1205.     position specification.  For compatibility with existing practice
  1206.     (what vendors?), omitting M is now equivalent to specifying `0' for M,
  1207.     but only when using the +pos -pos syntax, not with the -k option.
  1208.     From Rick Sladkey (jrs@world.std.com).
  1209.  
  1210. Thu Jul  6 23:44:20 1995  Jim Meyering  (meyering@comco.com)
  1211.  
  1212.     * od.c (dump): Correct loop-termination criterion.
  1213.     Before, running `printf 1234| ./od --width=4 --read-bytes=4'
  1214.     printed output for 8 bytes -- the last four were garbage.
  1215.     This happened only when the dump limit, N, was specified (with
  1216.     --read-bytes=N) and N was a multiple of bytes_per_block
  1217.     (usually 16, but 4 in this example).  From Andreas Schwab.
  1218.  
  1219. Sun Jul  2 22:12:40 1995  Jim Meyering  (meyering@comco.com)
  1220.  
  1221.     * lib/Makefile.in (check): Depend on libtu.a.
  1222.  
  1223.     * md5sum.c (split_3): Rewrite to parse Plumb/Lankester format as well.
  1224.     (main): Print each sum line in (de facto) standard Plumb/Lankester
  1225.     format.
  1226.     New option: --quiet.
  1227.     Check option no longer takes an argument.
  1228.     When checking, exit status reflects success.
  1229.  
  1230. Sat Jun 24 16:18:01 1995  Jim Meyering  (meyering@comco.com)
  1231.  
  1232.     * md5sum.c [__GNUC__]: Don't conditionalize use of "inline".
  1233.     Autoconf (via config.h) defines it away for compilers that don't
  1234.     grok it.
  1235.  
  1236.     * cat.c, comm.c, join.c, sort.c, uniq.c: Undefine min/max before
  1237.     defining to avoid redefinition warning on some systems.
  1238.  
  1239.     * csplit.c (read_input): Rename paramater MAX to MAX_N_BYTES.
  1240.     This avoids potential conflict with max macro from some system's
  1241.     header files when using bad pre-ANSI compilers.
  1242.  
  1243.     * uniq.c (usage): Fix typo in text of --help output.
  1244.     From Steve McConnel <steve@acadcomp.sil.org>
  1245.  
  1246.     * md5sum.c [uint32]: When testing for 32-bit arithmetic type,
  1247.     also check `unsigned long', as a concession to systems with
  1248.     int's smaller than 32 bits.
  1249.  
  1250.     * configure.in (AC_REPLACE_FUNCS): Remove memcmp (again!) since
  1251.     AC_FUNC_MEMCMP already handles it.  This avoids warnings from
  1252.     ranlib on nextstep systems.  From Kaveh Ghazi.
  1253.  
  1254.     * csplit.c (interrupt_handler): Declare to have a single integer
  1255.     parameter.  Otherwise, some compilers fail with a type mismatch
  1256.     error in sa_handler assignment.
  1257.  
  1258.     * fmt.c [word]: Redefine.  Otherwise, systems (Unicos for one) with
  1259.     headers that typedef `word' get syntax errors because of the
  1260.     variable by the same name.
  1261.  
  1262.     * join.c [join]: Redefine to avoid conflict with prototype in some
  1263.     system header file.  Also for Unicos.
  1264.  
  1265.     * md5sum.c (main): Remove spurious colon in getopt spec string.
  1266.     From Ken Pizzini <kenp@spry.com>.
  1267.  
  1268. Tue Jun 20 06:59:16 1995  Jim Meyering  (meyering@comco.com)
  1269.  
  1270.     * md5sum.c (md5_file): Initialize two elements of LEN portably,
  1271.     rather than with ANSI aggregate initialization.  Reported by
  1272.     Edzer Pebesma <Edzer.Pebesma@rivm.nl>.
  1273.  
  1274. Sun Jun 18 09:15:57 1995  Jim Meyering  (meyering@comco.com)
  1275.  
  1276.     * Version 1.12.
  1277.  
  1278.     * md5sum.c (process_buffer): Copy values from struct into
  1279.     individual local variables before performing computation on them,
  1280.     then copy results back into returned struct.  Solely for better
  1281.     optimization by compilers that can't keep struct members in
  1282.     registers.  From Ulrich Drepper.
  1283.  
  1284. Thu Jun 15 22:09:14 1995  Jim Meyering  (meyering@comco.com)
  1285.  
  1286.     * md5sum.c: Remove unnecessary uses of `defined' in #if* tests.
  1287.     Don't use #elif.  Some older compilers don't grok it.
  1288.     (split_3): New function to parse out sum, flag, and filename
  1289.     when reading check file.
  1290.     (hex_digits): Remove length parameter since string parameter is
  1291.     now nul-terminated.
  1292.     (main): Don't allocate separate arrays for filename and sum
  1293.     when checking.  Get pointers into line buffer with split_3 instead
  1294.     of using sscanf.
  1295.     (main): Treat `no file args' just like `-' when not checking
  1296.     or using strings.
  1297.     (hex_digits): Unprotoize.
  1298.  
  1299.     * md5sum.c (main): Don't use a separate loop to convert to lower
  1300.     case.  Suggested by Ulrich Drepper.
  1301.     (CLOSE): New macro.
  1302.     (md5_file): Use it.
  1303.     From Ulrich Drepper.
  1304.  
  1305.     * md5sum.c: Don't include values.h.
  1306.     [__P]: Undefine it.
  1307.  
  1308.     * md5sum.c: [UNIX || unix]: Also test __UNIX__, __unix__,
  1309.     and _POSIX_VERSION.  Reported by Arne H. Juul.
  1310.  
  1311. Tue Jun 13 21:20:10 1995  Jim Meyering  (meyering@comco.com)
  1312.  
  1313.     * tr.c [NDEBUG]: Define it to disable assertions.  Some systems
  1314.     have a broken <assert.h> header.
  1315.     (is_char_class_member): Set a variable in each branch of switch
  1316.     stmt and return that value after the switch (rather than returning
  1317.     directly from every branch).
  1318.     (unquote): More int->size_t changes.
  1319.     (build_spec_list): More int->size_t changes.
  1320.     Be very careful about comparison now that variables are unsigned:
  1321.     Use i + 2 < len rather than i < len - 2.  The latter didn't work
  1322.     for len < 2.  Caught early thanks to a thorough regression test
  1323.     suite.
  1324.  
  1325. Mon Jun 12 23:07:59 1995  Jim Meyering  (meyering@comco.com)
  1326.  
  1327.     * sort.c (xfclose): Don't try to flush stdin, only stdout.
  1328.     Otherwise, at least Ultrix-4.3's fflush would return EOF.
  1329.     Reported by Jim Blandy (jimb@cyclic.com).
  1330.  
  1331.     * tr.c (non_neg_strtol): Don't compare signed and unsigned.
  1332.     [struct Spec_list] (indefinite_repeat_element): New member.
  1333.     Use size_t rather than int or unsigned long where reasonable.
  1334.     (get_spec_status): Make interface cleaner.
  1335.     (get_s1_spec_status): New function.
  1336.     (get_s2_spec_status): New function.
  1337.     (validate): Use new functions instead of get_spec_status.
  1338.  
  1339. Sun Jun 11 00:39:50 1995  Jim Meyering  (meyering@comco.com)
  1340.  
  1341.     * md5sum.c: New file.  From Ulrich Drepper.
  1342.     * md5-test.rfc: New file.
  1343.     * Makefile.in: (PROGS): Add md5sum.
  1344.     (check): Run a recursive make in each subdirectory.
  1345.     * man/Makefile.in: (MANFILES): Add md5sum.1.
  1346.     * src/Makefile.in: (SOURCES): Add md5sum.c.
  1347.     (OBJECTS): Add md5sum.o.
  1348.     (PROGS): Add md5sum.
  1349.     (check): Add basic checks for md5sum.
  1350.     (md5sum): Add dependency and link rule.
  1351.     (DISTFILES): Add md5-test.rfc.
  1352.  
  1353.     * tr.c (look_up_char_class, append_char_class, append_equiv_class):
  1354.     Use const attribute when appropriate.
  1355.  
  1356. Sun May 28 14:48:58 1995  Jim Meyering  (meyering@comco.com)
  1357.  
  1358.     * join.c: Overhauled to make -a1 and -a2 options work.
  1359.     Passed all tests in a fairly thorough test suite.
  1360.     Reported by Michael Hasselberg (mikelh@zonta.ping.de).
  1361.  
  1362. Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)
  1363.  
  1364.     * tail.c (main): Remove dcl of and statements that set now-unused
  1365.     variable.
  1366.  
  1367.     * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
  1368.     Without this, SunOS doesn't get type for memchr.
  1369.     Reported by Kaveh Ghazi.
  1370.  
  1371. Thu May 25 00:06:50 1995  Jim Meyering  (meyering@comco.com)
  1372.  
  1373.     * tail.c (tail_lines): Change one more `long' to `off_t'.
  1374.     Otherwise, tail didn't work on NetBSD.  From Arne H. Juul.
  1375.  
  1376.     * csplit.c [struct control]: Change type of `repeat' to unsigned
  1377.     long to avoid conversion warning.
  1378.  
  1379. Sun May 21 07:50:00 1995  Jim Meyering  (meyering@comco.com)
  1380.  
  1381.     * Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.
  1382.  
  1383.     * xstrtol.c (__strtol): Remove prototype altogether.
  1384.     Move inclusion of xstrtol.h back so that it follows system headers.
  1385.  
  1386.     * Version 1.11.2.
  1387.  
  1388. Sat May 20 06:44:14 1995  Jim Meyering  (meyering@comco.com)
  1389.  
  1390.     * join.c (ADD_FIELD): Declare in K&R style, not ANSI.
  1391.     From Kaveh Ghazi.
  1392.  
  1393.     * xstrtol.c: Define NDEBUG for systems with losing assert.h.
  1394.     (__strtol): Add __unsigned to prototype and use __P.
  1395.     Move inclusion of xstrtol.h to precede prototype.
  1396.     From Kaveh Ghazi.
  1397.  
  1398.     * memmove.c: Include config.h for definition of const.
  1399.     From Kaveh Ghazi.
  1400.  
  1401.     * All Makefile.in (install-exec, install-exec): New targets.
  1402.     From Karl Berry.
  1403.  
  1404.     * tr.c (look_up_char_class): Take a string length argument -- required
  1405.     because the argument is a string that is *not* NUL-terminated.
  1406.     Use strncmp, not strcmp and add string lengths comparison.
  1407.     (append_char_class): Update caller.  Before this change,
  1408.     tr '[:upper:]' '[:lower:]' read one uninitialized byte.
  1409.     From Andreas Schwab.
  1410.  
  1411.     * split.c (next_file_name): Move dcls of file-scope variables into
  1412.     this function.  Don't rely on arithmetic being two's complement.
  1413.  
  1414.     * paste.c [CLOSED, ENDLIST]: Don't cast constants to FILE pointers.
  1415.     Instead, declare two FILE structs and use their addresses.
  1416.  
  1417.     * csplit.c (record_line_starts): Remove set-but-not-used,
  1418.     file-scope variable.
  1419.  
  1420. Sat May 13 08:57:20 1995  Jim Meyering  (meyering@comco.com)
  1421.  
  1422.     * all source files (usage): Include one- or two-line synopsis
  1423.     in --help output.  From Karl Berry.
  1424.  
  1425.     * lib/Makefile.in [.c.o]: Remove -I. since safe-l?stat.h are no
  1426.     longer used.
  1427.  
  1428. Wed May 10 22:26:35 1995  Jim Meyering  (meyering@comco.com)
  1429.  
  1430.     * Version 1.11.1
  1431.  
  1432. Sun May  7 13:35:49 1995  Jim Meyering  (meyering@comco.com)
  1433.  
  1434.     * all Makefile.in (maintainer-clean): Renamed from realclean
  1435.     per GNU Standards.
  1436.  
  1437. Thu May  4 23:15:58 1995  Jim Meyering  (meyering@comco.com)
  1438.  
  1439.     * sort.c (main): Use stat, not safe_stat.  The latter was unnecessary.
  1440.     Don't include safe-stat.h.
  1441.  
  1442.     * lib/Makefile.in (DISTFILES): Remove safe-xstat.hin.
  1443.     Remove all associated rules.  safe-l?stat.h are no longer used.
  1444.  
  1445.     * sort.c Don't hard-code /tmp.
  1446.     [DEFAULT_TMPDIR]: Use this instead.
  1447.     * tac.c (save_stdin): Likewise.
  1448.  
  1449.     * sort.c (set_ordering): Properly parse arguments like `+x.yn'.
  1450.     Reported by John Salmon (johns@mullet.anu.edu.au).
  1451.     Patch from Mike Haertel.
  1452.  
  1453. Wed Apr 26 23:48:13 1995  Jim Meyering  (meyering@comco.com)
  1454.  
  1455.     * sort.c (tempname): AND-off high bits of pid so that its decimal
  1456.     string representation is no longer than five digits.
  1457.     From Hans Verkuil (hans@wyst.hobby.nl).
  1458.  
  1459. Thu Apr 20 23:09:33 1995  Jim Meyering  (meyering@comco.com)
  1460.  
  1461.     * expand.c (add_tabstop): Give correct size when reallocating
  1462.     tab_list buffer.  From Geoff Odhner (geoff@franklin.com).
  1463.     Reproduce with expand --t=`perl -e "print join (',', (1..300));"`.
  1464.  
  1465. Tue Apr 18 22:57:43 1995  Jim Meyering  (meyering@comco.com)
  1466.  
  1467.     * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
  1468.     unnecessary conflicts for people using version control software
  1469.     like RCS and CVS.
  1470.     (AC_ARG_PROGRAM): Use it.
  1471.  
  1472. Thu Apr 13 23:22:57 1995  Jim Meyering  (meyering@comco.com)
  1473.  
  1474.     * head.c: Remove block of redundant comments describing options.
  1475.     (usage): Remove reference to -l option.  It's not valid.
  1476.  
  1477.     * od.c (write_block): Declare index I as unsigned int, not int.
  1478.     (get_lcm): Likewise.
  1479.     (dump_strings): Likewise.
  1480.     (main): Likewise.
  1481.     (dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
  1482.     (dump_strings): Declare bufsize to be of type size_t, not int.
  1483.  
  1484.     * split.c (next_file_name): Don't reuse X as an index.
  1485.     Declare new variable I instead.
  1486.  
  1487. Sat Mar 25 15:07:23 1995  Jim Meyering  (meyering@comco.com)
  1488.  
  1489.     * csplit.c: Declare as `unsigned int' all variables that were
  1490.     just `unsigned'.
  1491.     (make_filename): Change type of arg to unsigned int.
  1492.     (split_file): Change type of indices to unsigned int.
  1493.  
  1494. Thu Mar 16 22:05:05 1995  Jim Meyering  (meyering@comco.com)
  1495.  
  1496.     * od.c (main): Detect and fail when argument to -N is too large
  1497.     to fit in an off_t.
  1498.  
  1499. Sun Mar 12 12:02:39 1995  Jim Meyering  (meyering@comco.com)
  1500.  
  1501.     * configure.in (AC_REPLACE_FUNCS): Add memcmp.c.
  1502.     Remove check for sizeof long.
  1503.  
  1504.     * linebuffer.h: Undefine __P before defining it.
  1505.     * long-options.h: Likewise.
  1506.     * xstrtol.h: Likewise.
  1507.  
  1508.     * memcpy.c: New file.
  1509.     * lib/Makefile.in (SOURCES): Add memcpy.c.
  1510.  
  1511. Fri Mar 10 21:14:11 1995  Jim Meyering  (meyering@comco.com)
  1512.  
  1513.     * src/*.c: Update Copyright dates.
  1514.  
  1515. Sat Feb 11 07:31:08 1995  Jim Meyering  (meyering@comco.com)
  1516.  
  1517.     * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
  1518.     Separate errno declaration from STDC_HEADERS.
  1519.  
  1520.     * wc.c (wc): For efficiency, handle separately the cases in which
  1521.     words need not be counted.  Suggested by Karl Heuer.
  1522.  
  1523.     * wc.c (wc): Don't overcount the number of bytes when reading
  1524.     from a regular file on stdin with file pointer not at BOF.
  1525.     From Karl Heuer <karl@gnu.ai.mit.edu>.  Before, the command
  1526.     `(dd ibs=99k skip=1; wc -c) < /etc/group' made wc wrongly output
  1527.     the size of the file.  Now it outputs `0'.
  1528.  
  1529. Sat Jan 28 07:07:23 1995  Jim Meyering  (meyering@comco.com)
  1530.  
  1531.     * cat.c (cat): Use memmove rather than bcopy.
  1532.     * csplit.c (load_buffer): Use memcpy rather than bcopy.
  1533.     (extract_regexp): Use strrchr, not rindex.
  1534.     * fmt.c (isopen, isclose, isperiod): Use strchr, not index.
  1535.     (flush_paragraph): Use memmove instead of bcopy.
  1536.     * fold.c (fold_file): Use memmove instead of bcopy.
  1537.     * od.c (decode_format_string): Use memmove instead of bcopy.
  1538.     [EQUAL_BLOCKS]: Use memcmp, not bcmp.
  1539.     (parse_old_offset): Use strchr, not index.
  1540.     (dump): Use memset, not bzero.
  1541.     * sort.c (checkfp, mergefps): Use memcpy instead of bcopy.
  1542.     (fillbuf): Use memmove instead of bcopy.
  1543.     * split.c (main): Use memset, not bzero.
  1544.     (line_bytes_split): Use memmove instead of bcopy.
  1545.     * tac.c (tac): Use memmove instead of bcopy.
  1546.     (output): Use memcpy instead of bcopy.
  1547.     * tail.c (pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
  1548.     * tr.c (substr): Use memcpy instead of bcopy.
  1549.     (card_of_complement, set_initialize): Use memset, not bzero.
  1550.  
  1551.     * tr.c (substr): Don't allocate a byte for trailing NUL in result
  1552.     since the result needn't be NUL-terminated.  Don't NUL terminate it.
  1553.  
  1554.     * configure.in (AC_REPLACE_FUNCS): Check for memmove and memcpy,
  1555.     not bcopy.
  1556.     (AC_CHECK_FUNCS): Add strchr and strrchr.
  1557.  
  1558.     * lib/Makefile.in (SOURCES): Add memmove.c and memcpy.c.
  1559.     * memmove.c: New file.
  1560.     * memcpy.c: New file.
  1561.  
  1562. Tue Jan 24 22:18:19 1995  Jim Meyering  (meyering@comco.com)
  1563.  
  1564.     * fmt.c (copy_rest): Replace `||' with `&&'.  Before, a paragraph
  1565.     not followed by a newline would be followed by data copied from
  1566.     uninitialized storage.  Repeat by `printf abc|fmt|od -ac'.
  1567.     Reported by Franc,ois Pinard.
  1568.  
  1569.     * od.c: Rename macros with FP_ prefix.  Use FLOAT_ instead.
  1570.     AIX-2.2.1 declares a typedef, FP_DOUBLE, that conflicted.
  1571.     Be careful to use off_t instead of explicit `unsigned long'.
  1572.     Otherwise, systems like 4.4BSD lose on calls to fseek that
  1573.     expect off_t (which is long long on that system).
  1574.     (parse_old_offset): Use xstrtoul
  1575.     (main): Likewise.
  1576.  
  1577.     * src/Makefile.in (od.o, tail.o): Depend on ../lib/strtol.h.
  1578.  
  1579. Mon Dec 19 22:13:55 1994  Jim Meyering  (meyering@comco.com)
  1580.  
  1581.     * tail.c (numerous functions): Give char* filename arguments the
  1582.     const attribute.
  1583.  
  1584.     * lib/Makefile.in (SOURCES): Remove xwrite.c.  It was no longer used.
  1585.     Add xstrtol.c and xstrtoul.c.
  1586.     (OBJECTS): Likewise for .o files.
  1587.     (DISTFILES): Add error.h and xstrtol.h and xstrtoul.h.
  1588.  
  1589.     * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
  1590.     (distclean): Remove references to safe-l?stat.c.
  1591.     Remove all related rules and dependencies.
  1592.  
  1593.     * src/Makefile.in: $(OBJECTS): Depend on ../lib/error.h.
  1594.  
  1595. Thu Dec 15 23:14:04 1994  Jim Meyering  (meyering@comco.com)
  1596.  
  1597.     * tail.c (tail_file): Fix call to error with %s in format, but
  1598.     no corresponding argument.
  1599.  
  1600.     * src/*.c: Include "error.h" instead of simply declaring
  1601.     `void error ();'.
  1602.     * od.c (main): Use %lu, not %d for unsigned long.
  1603.     (my_strtoul, uint_fatal_error): Remove functions.  Use xstrtoul
  1604.     and STRTOL_FATAL_ERROR instead.
  1605.  
  1606. Sun Dec 11 17:24:09 1994  Jim Meyering  (meyering@comco.com)
  1607.  
  1608.     * sort.c (main): Fix interpretation of field offsets when specified
  1609.     via -k option.  They were being interpreted as zero-indexed.  POSIX
  1610.     says they are 1-based indices.  From Rik Faith <faith@cs.unc.edu>.
  1611.     (keycompare): Don't ignore characters at the end of words when
  1612.     otherwise they would compare equal.  From Rik Faith.
  1613.  
  1614.     * tail.c (<most functions>): Change the type of n_units/n_lines/n_bytes
  1615.     to off_t because n_bytes is used as the option to fseek and off_t may
  1616.     be long long (e.g. on BSD4.4).  The only place where a 32-bit limit is
  1617.     imposed is in the string-to-integer converstion of xstrtol.
  1618.     (main): Use xstrtol instead of manual string to integer conversion.
  1619.  
  1620.     * csplit.c (get_format_width, get_format_prec): Use ISDIGIT instead of
  1621.     comparisons against '0' and '9'.
  1622.  
  1623.     * tr.c [!ULONGMAX]: Define it.
  1624.     [!LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
  1625.  
  1626.     * full-write.c: Declare (or not) errno based on definedness or
  1627.     errno, not STDC_HEADERS.
  1628.     * safe-read.c: Likewise.
  1629.     * xwrite.c: Likewise.
  1630.  
  1631. Thu Nov 17 06:37:33 1994  Jim Meyering  (meyering@comco.com)
  1632.  
  1633.     * tail.c (dump_remainder): Flush standard output just before
  1634.     sleeping so that `tail -f' will output partial lines sooner.
  1635.     This applies only when following the end of a single file.
  1636.     From Leonard N. Zubkoff <lnz@dandelion.com>.
  1637.  
  1638.     * tail.c (file_lines, pipe_lines, pipe_bytes, start_bytes,
  1639.     start_lines, dump_remainder): Use STDOUT_FILENO instead of `1' in
  1640.     XWRITE calls.
  1641.     * tac.c (output): Use STDOUT_FILENO instead of `1' in xwrite call.
  1642.     * system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Define if
  1643.     not already defined.
  1644.  
  1645. Wed Nov 16 07:01:38 1994  Jim Meyering  (meyering@comco.com)
  1646.  
  1647.     * tr.c: Include <getopt.h> instead of "getopt.h".
  1648.  
  1649.     * sort.c (tempname): Merge two very similar sprintf stmts into one.
  1650.  
  1651.     * tail.c: Use BUFSIZ instead of BUFSIZE.
  1652.  
  1653.     * cut.c: Declare DELIM to be `int' rather than unsigned char.
  1654.  
  1655.     * fmt.c: Use index, not strchr -- per GNU Standards.
  1656.     Reported by Kaveh Ghazi.
  1657.     Always include <config.h>.
  1658.     (main): Include program name in --version output.
  1659.  
  1660. Sun Nov 06 00:17:21 1994  Jim Meyering  (meyering@comco.com)
  1661.  
  1662.     * Version 1.11.
  1663.  
  1664. Sat Nov 05 15:14:44 1994  Jim Meyering  (meyering@comco.com)
  1665.  
  1666.     * memcmp.c, srtoul.c: Use up-to-date versions.
  1667.     Reported by Franc,ois Pinard.
  1668.  
  1669.     * src/Makefile.in (DEFS): Remove -Dlint... again.
  1670.  
  1671.     * src/Makefile.in (PROGS): Add fmt!
  1672.     Reported by Andreas Stolcke (stolcke@ICSI.Berkeley.EDU).
  1673.  
  1674. Fri Nov 04 17:26:16 1994  Jim Meyering  (meyering@comco.com)
  1675.  
  1676.     * Version 1.10.
  1677.  
  1678. Thu Nov 03 23:23:08 1994  Jim Meyering  (meyering@comco.com)
  1679.  
  1680.     * linebuffer.h: Use __P instead of _P since the latter conflicts
  1681.     with a definition in some <ctype.h>.  From Kaveh Ghazi.
  1682.  
  1683. Wed Nov 02 17:36:34 1994  Jim Meyering  (meyering@comco.com)
  1684.  
  1685.     * tr.c: Add const attribute where appropriate.
  1686.  
  1687.     * tail.c (BUFSIZ): Use definition from <stdio.h>.
  1688.  
  1689. Tue Nov 01 23:54:09 1994  Jim Meyering  (meyering@comco.com)
  1690.  
  1691.     * tail.c (XWRITE): Allow n_bytes == 0 but call fwrite only if
  1692.     n_bytes is positive.  Turn off assertions.  `tail /dev/null' was
  1693.     getting a failed assertion.  Reported by Doug McLaren
  1694.     (dougmc@comco.com).
  1695.  
  1696.     * cut.c (cut_bytes): Print at least a newline for every line of input.
  1697.     (cut_fields): Print a newline even for lines whose only selected
  1698.     field is empty.  But print nothing when using -s without -f1.
  1699.     And print nothing for empty input.  Reported by
  1700.     Richard_Sharman@software.mitel.com.
  1701.  
  1702. Tue Nov 01 06:05:23 1994  Jim Meyering  (meyering@comco.com)
  1703.  
  1704.     * fmt.c: Change #ifdef __STDC__ to #if defined (__STDC__) && __STDC__.
  1705.     * linebuffer.h: Likewise.
  1706.  
  1707. Mon Oct 31 06:53:32 1994  Jim Meyering  (meyering@comco.com)
  1708.  
  1709.     * configure.in (AC_REPLACE_FUNCS): Remove memcmp since AC_FUNC_MEMCMP
  1710.     already handles it.  From Kaveh Ghazi.
  1711.  
  1712.     * {lib,src}/Makefile.in (DEFS): Don't use -Dlint.  Some systems
  1713.     get failures when it's defined.  From Kaveh Ghazi.
  1714.  
  1715.     * cat.c (cat): Conditionalize test for errno == ENOSYS.  It's not
  1716.     defined on some Next and Alliant systems.  From Kaveh Ghazi.
  1717.  
  1718.     * sort.c join.c (main): Include version.h and call parse_long_options
  1719.     with the proper number of arguments.  Reported by Franc,ois Pinard.
  1720.  
  1721. Sun Oct 30 01:30:41 1994  Jim Meyering  (meyering@comco.com)
  1722.  
  1723.     * (configure.in): Add AC_OFF_T and rearrange by type along the
  1724.     same lines as autoscan.
  1725.  
  1726.     * fmt.c, fmt.1: New files.
  1727.     Both from Ross Paterson (rap@doc.ic.ac.uk).
  1728.  
  1729.     * Makefile.in (PROGS): Add fmt.
  1730.     * src/Makefile.in (SOURCES, OBJECTS): Add fmt.c and fmt.o respectively.
  1731.     (fmt): Add a link rule.
  1732.     * man/Makefile.in (MANFILES): Add fmt.1.
  1733.  
  1734. Sat Oct 08 10:44:30 1994  Jim Meyering  (meyering@comco.com)
  1735.  
  1736.     * Makefile.in (All of them): Update from the ones in sh-utils.
  1737.     From now on, rules and definitions that are comon to the fileutils,
  1738.     textutils, and sh-utils will get ChangeLog entries only in the
  1739.     sh-utils.
  1740.  
  1741. Tue Oct 04 20:42:46 1994  Jim Meyering  (meyering@comco.com)
  1742.  
  1743.     * od.c (my_strtoul): Set errno to zero before calling strtoul.
  1744.     Otherwise, od can fail complaining about a valid integer argument.
  1745.     From Andreas Schwab.
  1746.  
  1747. Sun Oct 02 17:57:09 1994  Jim Meyering  (meyering@comco.com)
  1748.  
  1749.     * tr.c (main): Give an error and fail when squeezing repeats
  1750.     and no non-options are given.  Reported by Tony Robinson
  1751.     (ajr@eng.cam.ac.uk).
  1752.  
  1753.     * sort.c (main): Temporarily copy each input file that might be
  1754.     another name for the output file.  When in doubt (e.g. a pipe),
  1755.     copy.  This allows the dangerous (historical -- in cnews) idiom
  1756.     `cat file | sort -o file' to work properly.  Don't rely on this
  1757.     behavior in new shell scripts.  From Paul Eggert (eggert@twinsun.com).
  1758.  
  1759. Mon Sep 26 18:01:47 1994  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  1760.  
  1761.     * lib/xwrite.c safe-read.c memchr.c linebuffer.c full-write.c:
  1762.     Remove CONFIG_BROKETS ifdef.
  1763.     * src/Makefile.in lib/Makefile.in: Don't define it.
  1764.  
  1765. Sat Sep 24 21:26:27 1994  Jim Meyering  (meyering@comco.com)
  1766.  
  1767.     * full-write.c (full_write): Declare argument LEN to be size_t.
  1768.  
  1769. Mon Sep 12 13:35:27 1994  Jim Meyering  (meyering@comco.com)
  1770.  
  1771.     * tail.c (tail_file): [For multiple files only]: Report truncation
  1772.     of monitored file and reset current file size.  From Franc,ois Pinard.
  1773.  
  1774. Sat Aug 27 16:57:20 1994  Jim Meyering  (meyering@comco.com)
  1775.  
  1776.     * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
  1777.     From Franc,ois Pinard.
  1778.  
  1779. Tue Jul 26 11:33:53 1994  Jim Meyering  (meyering@comco.com)
  1780.  
  1781.     * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
  1782.     decides whether to include <fcntl.h>.  From Francois Pinard.
  1783.  
  1784. Wed Jul 13 12:33:34 1994  Jim Meyering  (meyering@comco.com)
  1785.  
  1786.     * tr.c (substr): Fix off-by-one allocation error.
  1787.  
  1788. Wed Jun 22 01:02:50 1994  Jim Meyering  (meyering@comco.com)
  1789.  
  1790.     * tac.c (tac_file): Use O_RDONLY instead of zero in call to open.
  1791.     (tac): Fix typo that had `1' as arg #2 of error after failed read.
  1792.     Use errno instead.  From Michael I Bushnell <mib@gnu.ai.mit.edu>.
  1793.  
  1794. Thu May 26 08:46:32 1994  Jim Meyering  (meyering@comco.com)
  1795.  
  1796.     * configure.in [INSTALL]: Revert change of March 25.  autoconf
  1797.     has been fixed.
  1798.  
  1799. Mon Apr 11 17:25:43 1994  Jim Meyering  (meyering@comco.com)
  1800.  
  1801.     * join.c (prline): Remove unused function.  Indent.
  1802.  
  1803. Fri May  6 05:44:24 1994  Jim Meyering  (meyering@comco.com)
  1804.  
  1805.     * tail.c (tail_forever): Don't print headers when asked not to.
  1806.     From Karsten Thygesen <karthy@kom.auc.dk>.
  1807.  
  1808.     * wc.c (wc): Optimize for the case when only bytes are being counted
  1809.     and the input is not a regular file.  From Jeff Moore <jbm@mordor.com>.
  1810.  
  1811. Sun Apr 24 10:54:08 1994  Jim Meyering  (meyering@comco.com)
  1812.  
  1813.     * configure.in [AC_SIZEOF_TYPE]: Update for autoconf-1.9.
  1814.     * memchr.c: Test SIZEOF_LONG instead of LONG_64_BITS.
  1815.  
  1816. Mon Apr 11 17:55:52 1994  Jim Meyering  (meyering@comco.com)
  1817.  
  1818.     * csplit.c (struct control): Add new field, repeat_forever.
  1819.     Remove now-unneeded definition of INT_MAX.
  1820.     (process_regexp): Test repeat_forever instead of comparing `repeat'
  1821.     to INT_MAX.
  1822.     (split_file): Don't even reference `repeat' count if repeat_forever
  1823.     is set.
  1824.     (new_control_record): Initialize repeat_forever field.
  1825.     (parse_repeat_count): Set it instead of setting repeat count to
  1826.     INT_MAX.
  1827.     (process_line_count): Abort for internal error instead of calling
  1828.     handle_line_error.
  1829.  
  1830.     * long-options.c (parse_long_options): Take a new argument indicating
  1831.     the utility name (e.g. "join", not "gjoin") for version output.
  1832.     Print both the utility and the package names, e.g. `join - GNU
  1833.     textutils-1.9.1' instead of just the package name.
  1834.  
  1835.     * join.c (main): Call parse_long_options with program name arg.
  1836.     * sort.c (main): Ditto.
  1837.  
  1838.     * All source except sort.c and join.c (main): Change --version output
  1839.     to include utility name as well as package name and version info.
  1840.  
  1841. Wed Mar 30 08:53:21 1994  Jim Meyering  (meyering@comco.com)
  1842.  
  1843.     * configure.in: Use AC_SET_MAKE.
  1844.     * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
  1845.  
  1846. Mon Mar 28 09:55:05 1994  Jim Meyering  (meyering@comco.com)
  1847.  
  1848.     * tr.c (main): In addition to the --help usage pointer, give an
  1849.     explicit error message for too many arguments.
  1850.  
  1851. Fri Mar 25 18:11:19 1994  Jim Meyering  (meyering@comco.com)
  1852.  
  1853.     * configure.in: Use AC_VERBOSE, AC_CHECKING, and AC_WARN instead
  1854.     of explicit echo commands.
  1855.     [INSTALL]: When AC_PROG_INSTALL resorts to setting this to
  1856.     `./install.sh', make it `../install.sh' instead since that
  1857.     script will be invoked only from subdirectories.
  1858.     [AC_SIZEOF_TYPE]: Use this instead of deprecated AC_LONG_64_BITS.
  1859.  
  1860.     * cat.c (cat): The command `:|cat -s' failed on Irix5 because
  1861.     ioctl (d, FIONREAD,... now returns ENOSYS for pipes -- under Irix4
  1862.     it returned EINVAL.  Detect this.
  1863.     (main) [lint]: Initialize variables to suppress `used before
  1864.     initialized' warnings.
  1865.  
  1866.     * csplit.c: Change long option name from --suffix to --suffix-format.
  1867.  
  1868.     * od.c (skip): Correct a comment.
  1869.     (main): Don't output anything to stdout if the sole input file
  1870.     doesn't exist.  Reported by Bauke Jan Douma <bjd@dds.hacktic.nl>.
  1871.  
  1872.     * od.c (dump) [lint]: Initialize a variable to suppress `used before
  1873.     initialized' warning.
  1874.     (main) [lint]: Ditto.
  1875.     * paste.c (paste_parallel) [lint]: Ditto.
  1876.  
  1877. Fri Jan 28 11:02:21 1994  Jim Meyering  (meyering@comco.com)
  1878.  
  1879.     * configure.in: Don't set LDFLAGS since linking now uses both
  1880.     LDFLAGS and CFLAGS.
  1881.  
  1882. Wed Jan 18 16:14:00 1994  Jim Meyering  (meyering@comco.com)
  1883.  
  1884.     * unexpand.c (unexpand): Don't segfault when given a name of a
  1885.     nonexistent file.
  1886.     * expand.c (expand): Ditto.
  1887.     Both from Bauke Jan Douma <bjd@dds.hacktic.nl>.
  1888.  
  1889. Thu Jan 13 17:27:38 1994  Jim Meyering  (meyering@comco.com)
  1890.  
  1891.     * src/Makefile.in: Change all link commands to use both $(CFLAGS)
  1892.     and $(LDFLAGS).
  1893.  
  1894.     * csplit.c (load_buffer): Rather than incrementing buffer size,
  1895.     double it each time we fail to find a newline.  Otherwise, csplit
  1896.     would run out of memory when processing files with very long lines.
  1897.  
  1898. Mon Jan 10 01:20:38 1994  Jim Meyering  (meyering@comco.com)
  1899.  
  1900.     * man/Makefile.in (manprefix): Use binprefix as the default.
  1901.  
  1902. Sat Jan 08 22:22:45 1994  Jim Meyering  (meyering@comco.com)
  1903.  
  1904.     * cat.c: Use full_write and safe_read instead of write and read resp.
  1905.     * csplit.c: Ditto.
  1906.     * head.c: Ditto.
  1907.     * split.c: Ditto.
  1908.     * tac.c: Ditto.
  1909.  
  1910.     * sum.c: Use safe_read instead of read.
  1911.     * tr.c: Ditto.
  1912.     * wc.c: Ditto.
  1913.  
  1914.     * tail.c: Replace calls to xwrite with calls to fwrite.
  1915.     Use fopen/fclose instead of open/close.
  1916.     (write_header): Use a single call to printf instead of four to xwrite.
  1917.     Use safe_read instead of read.
  1918.     * head.c: Ditto.
  1919.  
  1920. Tue Dec 28 15:49:32 1993  Jim Meyering  (meyering@comco.com)
  1921.  
  1922.     * install.sh: New file.
  1923.     Makefile.in [DISTFILES]: Add it.
  1924.  
  1925. Wed Dec 22 18:52:44 1993  Jim Meyering  (meyering@comco.com)
  1926.  
  1927.     * memcmp.c: Use the latest version from the GNU C library.
  1928.  
  1929.     * cut.c [ADD_RANGE_PAIR]: New macro.
  1930.     (set_fields): Collect the list of all selected ranges before
  1931.     allocating and initializing the boolean lookup table.
  1932.     (cut_bytes, cut_fields): Complete rewrite.  Avoid copying
  1933.     into buffer whenever possible.  Properly handle input without
  1934.     trailing newline.
  1935.     (getstr): New function.  Copied from getline.c, but with minor changes.
  1936.  
  1937.     * sort.c (main): Properly handle -Tdir.
  1938.     Before, `sort -T/var/tmp' gave `sort: unrecognized option `-v''.
  1939.     Reported by Kristoffer Rose (kris@diku.dk).
  1940.  
  1941.     * cut.c (main): Give separate errors for `-s without -f'
  1942.     and `-d without -f'.
  1943.     (main): Now -d '' means `use the NUL byte as the delimiter'.
  1944.     Before, it got an error.
  1945.  
  1946. Mon Dec 20 23:29:30 1993  Jim Meyering  (meyering@comco.com)
  1947.  
  1948.     * configure.in [test for 8-bit clean memcmp]: Add a test to detect
  1949.     losing memcmp from SunOS4.1.x.  From Robert H. de Vries
  1950.     <robert@and.nl>.
  1951.  
  1952. Sat Dec 18 01:12:24 1993  Jim Meyering  (meyering@comco.com)
  1953.  
  1954.     * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
  1955.     so it goes in config.status.  This eliminates unnecessary second run
  1956.     of configure.
  1957.  
  1958. Thu Dec 02 23:53:03 1993  Jim Meyering  (meyering@comco.com)
  1959.  
  1960.     * configure.in (AC_HAVE_FUNCS): Add isascii.
  1961.     * system.h [!defined (isascii) || defined (STDC_HEADERS)]: This failed
  1962.     on AIX PS/2 1.3 systems because isascii is a function and it is used
  1963.     in definitions (with the necessary side effect of assigning to a
  1964.     global variable) of the is* macros.  Also test HAVE_ISASCII and
  1965.     redefine ISASCII(c) instead of isascii.
  1966.     Reported by Minh Tran-Le (tranle@intellicorp.com).
  1967.  
  1968. Fri Nov 19 22:41:48 1993  Jim Meyering  (meyering@comco.com)
  1969.  
  1970.      * configure.in: Don't run the test for 8-bit clean memcmp if we
  1971.      already know we'll be using our replacement.
  1972.  
  1973. Fri Nov 12 00:44:49 1993  Jim Meyering  (meyering@comco.com)
  1974.  
  1975.     * Version 1.9.1.
  1976.  
  1977.     * tac.c (usage): Fix typo in long usage.
  1978.     * sort.c (usage): Likewise.
  1979.     From Philippe.Schnoebelen@imag.fr.
  1980.  
  1981.     * cut.c [FATAL_ERROR]: New macro.
  1982.     (main): Call both error and usage (2) through FATAL_ERROR in
  1983.     many places.  Before, only `error (2...' was called.
  1984.     (invalid_list): Removed.  This function is subsumed by FATAL_ERROR.
  1985.  
  1986.     * cut.c (cut_fields): Properly handle input lacking a terminating
  1987.     newline.  Before, the command  `printf "a\tb" |cut -f 1' generated
  1988.     no output.
  1989.  
  1990. Tue Nov 09 17:26:25 1993  Jim Meyering  (meyering@comco.com)
  1991.  
  1992.     od.c (usage): Change --backward-compatible to --traditional in
  1993.     the long usage message.
  1994.  
  1995. Sun Nov 07 00:50:05 1993  Jim Meyering  (meyering@comco.com)
  1996.  
  1997.     * Version 1.9.
  1998.  
  1999. Sat Nov 06 22:51:31 1993  Jim Meyering  (meyering@comco.com)
  2000.  
  2001.     * cut.c (cut_fields): Revert July 27 change.  Instead, strip off
  2002.     trailing delimiter unless given a range of fields like `3-' that
  2003.     extends to end of line.
  2004.     (set_fields): Moved local `eol_range_start' to file-scope.
  2005.     Reported by Arne H. Juul (arnej@solan.unit.no).
  2006.  
  2007. Tue Nov 02 00:53:41 1993  Jim Meyering  (meyering@comco.com)
  2008.  
  2009.     * fold.c (fold_file): Don't get stuck in an endless loop when
  2010.     width is smaller than 8 and there are TABs in the input.
  2011.  
  2012. Sat Oct 30 15:31:28 1993  Jim Meyering  (meyering@comco.com)
  2013.  
  2014.     * join.c: Remove now-unused dcls of show_help and show_version.
  2015.  
  2016. Fri Oct 29 13:58:50 1993  Jim Meyering  (meyering@comco.com)
  2017.  
  2018.     * csplit.c [INT_MAX]: Make sure it's defined.
  2019.     [not HAVE_LIMITS_H]: Don't include limits.h.
  2020.     From Kaveh R. Ghazi (ghazi@noc.rutgers.edu).
  2021.  
  2022. Wed Oct 27 01:13:52 1993  Jim Meyering  (meyering@comco.com)
  2023.  
  2024.     * Version 1.8.1.
  2025.  
  2026. Mon Oct 25 20:16:33 1993  Jim Meyering  (meyering@comco.com)
  2027.  
  2028.     * sort.c: Accept but ignore -y0 for compatibility with Solaris 2.
  2029.     From Chuck Hedrick (hedrick@klinzhai.rutgers.edu).
  2030.  
  2031.     * sort.c (main): Handle --help and --version options.
  2032.     * Makefile.in (sort.o): Depend on long-options.h.
  2033.  
  2034. Sun Oct 24 00:31:02 1993  Jim Meyering  (meyering@comco.com)
  2035.  
  2036.     * csplit.c, cut.c, expand.c, fold.c, head.c, nl.c, od.c, paste.c,
  2037.     split.c, tac.c, tail.c, unexpand.c, uniq.c: Use the preferred
  2038.     `--longopt=arg' syntax in --help message rather than `--longopt arg'.
  2039.     From Francois Pinard.
  2040.  
  2041.     * tail.c: Don't include <signal.h>.  It hasn't been necessary
  2042.     since the Dec 12, 1992 change.
  2043.  
  2044.     * join.c (main): Accept `-v 1' again.  Adding the --version
  2045.     long option had broken it, although -v1 still worked.  Call
  2046.     parse_long_options instead of adding "help" and "version"
  2047.     to join's longopt strct.
  2048.     * Makefile.in [SOURCES, OBJECTS, DISTFILES]: Add long-options.c
  2049.     and long-options.h.
  2050.     * (join): Depend on and link with long-options.o.
  2051.     * (join.o): Depend on long-options.h.
  2052.  
  2053.     * od.c: Change --compatible (-C) to --backward-compatible (-B).
  2054.  
  2055.     * csplit.c: Change --abandon-null-files to --elide-empty-files.
  2056.  
  2057. Sat Oct 23 01:00:12 1993  Jim Meyering  (meyering@comco.com)
  2058.  
  2059.     * tr.c (get_next, string2_extend): Add default: label to switch stmt.
  2060.  
  2061.     * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
  2062.     join.c, nl.c, od.c, paste.c, pr.c, split.c, sum.c, tac.c, tail.c,
  2063.     tr.c, unexpand.c, uniq.c, wc.c (usage): Add long --help.
  2064.     Exit successfully for --help, non-zero for usage error.
  2065.     From Francois Pinard.
  2066.  
  2067.     * configure.in: Add AC_STAT_MACROS_BROKEN.
  2068.     * system.h [AC_STAT_MACROS_BROKEN]: Test it.
  2069.  
  2070. Fri Oct 22 23:26:17 1993  Jim Meyering  (meyering@comco.com)
  2071.  
  2072.     * linebuffer.c, memchr.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include
  2073.     <config.h> or "config.h".
  2074.     * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
  2075.     join.c, nl.c, od.c, paste.c, pr.c, sort.c, split.c, sum.c, tac.c,
  2076.     tail.c, tr.c, unexpand.c, uniq.c, version.c, wc.c: Ditto.
  2077.  
  2078.     * configure.in: Use AC_CONFIG_HEADER.
  2079.     * Makefile.in [DIST]: Add config.h.in.
  2080.  
  2081.     * Makefile.in: Convert so make may be run from subdirectories.
  2082.     Add dependencies on config.h.
  2083.     * src/Makefile.in: Ditto.
  2084.     * lib/Makefile.in: Ditto.
  2085.     * man/Makefile.in: Ditto.
  2086.  
  2087. Wed Oct 20 20:05:48 1993  Jim Meyering  (meyering@comco.com)
  2088.  
  2089.     * memchr.c (memchr): Do the 32-bit assignment only if !LONG_64_BITS.
  2090.     In the 64-bit assignment, be careful to cast the shift operand to
  2091.     long.
  2092.     Abort if sizeof (unsigned long) > 8.
  2093.  
  2094. Tue Oct 19 22:37:58 1993  Jim Meyering  (meyering@comco.com)
  2095.  
  2096.     * csplit.c: Allow repeat counts to be specified via `{*}'.
  2097.     New option --suffix=format.  Supercedes --digits option.
  2098.     New option --abandon-null-files.
  2099.     From Ronald F. Guilmette (rfg@netcom.com).
  2100.  
  2101.     * csplit.1: Updated.
  2102.     From Ronald F. Guilmette.
  2103.  
  2104.     * csplit.c: Remove register keyword (replace with `int' in two cases).
  2105.  
  2106.     * csplit.c: [MAX]: Macro renamed from max and moved to top of file.
  2107.     (bytes_to_octal_digits): New static array.
  2108.     (get_format_flags): Combine '+' and ' ' cases of switch stmt.
  2109.     Return count if for loop terminates.
  2110.     (get_format_width): Use `bytes_to_octal_digits' instead of just 11.
  2111.     (get_format_prec): Make sure is_negative is defined before used.
  2112.     (get_format_conv_type): Give a different error message if there
  2113.     is no conversion specifier.
  2114.     Test ISPRINT (ch) instead of `ch < '~' && ch > ' ''.
  2115.     (max_out): Use `%%' rather than `%' in format string.
  2116.  
  2117. Sat Oct 16 10:45:17 1993  Jim Meyering  (meyering@comco.com)
  2118.  
  2119.     * pr.c (main): When argc == 1, don't try to xmalloc (0).
  2120.  
  2121. Tue Oct 12 00:53:26 1993  Jim Meyering  (meyering@comco.com)
  2122.  
  2123.     * xwrite.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
  2124.     or "config.h".
  2125.  
  2126. Sat Oct 09 23:37:43 1993  Jim Meyering  (meyering@comco.com)
  2127.  
  2128.     * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
  2129.  
  2130. Thu Sep  9 21:52:10 1993  Jim Meyering  (meyering@comco.com)
  2131.  
  2132.     * src/*.c: Print version on standard output, not stderr.
  2133.  
  2134.     * configure.in: Add AC_LONG_64_BITS.
  2135.     * memchr.c: Use #ifdef LONG_64_BITS instead of
  2136.     `if (sizeof(longword) > 4)'.
  2137.  
  2138. Tue Jul 27 22:19:39 1993  Jim Meyering  (meyering@comco.com)
  2139.  
  2140.     * cat.c (cat): Don't fail just because ioctl (d, FIONREAD,... can't
  2141.     always handle devices.  Ignore errno == EINVAL and errno == ENODEV.
  2142.     `cat -v /dev/null' was failing on many systems.
  2143.  
  2144.     * cut.c (cut_fields): Don't strip off trailing delimiter e.g.
  2145.     `echo 'a:b:c:' | cut -d: -f3-' should print `c:', not just `c'.
  2146.     From William Dowling <will@franklin.com>.
  2147.  
  2148. Thu May 27 01:37:51 1993  Jim Meyering  (meyering@comco.com)
  2149.  
  2150.     * Version 1.8.
  2151.  
  2152.     * memchr.c: De-ansify the fixed version from glibc.
  2153.     It is supposed to work on systems with 64-bit long ints.
  2154.  
  2155. Mon May 24 00:32:43 1993  Jim Meyering  (meyering@comco.com)
  2156.  
  2157.     * Version 1.7.
  2158.  
  2159. Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
  2160.  
  2161.     * Version 1.6.
  2162.  
  2163. Fri May 21 22:57:53 1993  Jim Meyering  (meyering@comco.com)
  2164.  
  2165.     * pr.c (cols_ready_to_print): New function.  It replaces a global
  2166.     variable by the same name and computes on the fly the value that
  2167.     was supposed to be maintained through that variable.  This should
  2168.     put to rest the `pr -2a' bug.
  2169.     (main): Don't let getopt_long reorder arguments so we can
  2170.     distinguish between `pr -1 -2' and `pr -12'.  Rework handling of
  2171.     -n and +n options.
  2172.  
  2173.     * fold.c: Declare xmalloc.
  2174.  
  2175. Wed May 19 19:12:18 1993  Karl Berry  (karl@owl.hq.ileaf.com)
  2176.  
  2177.     * sort.c (main): fflush before exit, so a closed stdout doesn't lose.
  2178.  
  2179. Tue May 18 23:49:26 1993  Jim Meyering (meyering@comco.com)
  2180.  
  2181.     * mkinstalldirs: New file.
  2182.     * Makefile.in (installdirs): Use it to create installation directories.
  2183.  
  2184. Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
  2185.  
  2186.     * all source: With --version, print version and exit immediately.
  2187.  
  2188. Thu May 13 01:03:16 1993  Jim Meyering  (meyering@comco.com)
  2189.  
  2190.     * Makefile.in (installdirs): New rules for creating installation
  2191.     directories. (install): depend on it.
  2192.  
  2193.     * tail.c (main): Remove --compatible since `+1f' may be used
  2194.     to get the BSD `-0f' behavior portably.
  2195.  
  2196.     * fold.c (main): Turn -N arguments, where N is a digit, into -wN.
  2197.     From Ian Lance Taylor (ian@cygnus.com).
  2198.  
  2199. Mon May 10 22:33:44 1993  Jim Meyering  (meyering@comco.com)
  2200.  
  2201.     * tail.c (main): New option -C, --compatible to make `tail -0f'
  2202.     work like `tail +1f' for compatibility with BSD tail.
  2203.  
  2204. Thu May  6 23:28:56 1993  Jim Meyering  (meyering@comco.com)
  2205.  
  2206.     * pr.c (print_page): Decrement cols_ready_to_print even when
  2207.     lines_to_print == 0.  The command `echo |pr -2ta' *still* didn't
  2208.     terminate.  Add parentheses for clarity.
  2209.  
  2210. Mon May  3 23:57:47 1993  Jim Meyering  (meyering@comco.com)
  2211.  
  2212.     * Version 1.5.
  2213.  
  2214.     * od.c (main): Remove set-but-not-used variable, `usage_error'.
  2215.  
  2216.     * split.c (main): Call usage with an argument.
  2217.  
  2218. Sun May  2 16:05:04 1993  Jim Meyering  (meyering@comco.com)
  2219.  
  2220.     * configure.in: Reverse if-else branches in AC_TEST_PROGRAM test
  2221.     for 8-bit clean memcmp.
  2222.  
  2223.     * cat.c (usage, main): Remove unused argument.
  2224.  
  2225.     * csplit.c (remove_line): Remove set-but-not-used variable, `line_got.'
  2226.     (check_for_offset): Remove unused argument `argnum.'
  2227.  
  2228.     * configure.in: Add AC_SIZE_T.
  2229.  
  2230. Sat May  1 09:03:19 1993  Jim Meyering  (meyering@comco.com)
  2231.  
  2232.     * uniq.c (main): Interpret non-option arguments with a leading `+'
  2233.     only if we haven't seen `--'.
  2234.  
  2235.     * tr.c (main): Change variable name to avoid shadowed dcl.
  2236.     * wc.c (write_counts): Ditto.
  2237.  
  2238.     * sum.1: Make documentation agree with the code.
  2239.  
  2240.     * od.c: Depend only on HAVE_LONG_DOUBLE for long double support.
  2241.  
  2242. Fri Apr 30 20:16:03 1993  Jim Meyering  (meyering@comco.com)
  2243.  
  2244.     * configure.in [AC_HAVE_HEADERS]: Add limits.h.
  2245.  
  2246.     * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
  2247.  
  2248.     * od.c (parse_old_offset): Don't use prototype in function
  2249.     definition.  Remove unnecessary conjunct from test for hexadecimal
  2250.     prefix.
  2251.  
  2252.     * od.c: Depend on __GNUC__ || HAVE_LONG_DOUBLE rather than __STDC__
  2253.     for long double support;  there are compilers (Stardent Vistra svr4)
  2254.     without long double but still define __STDC__.
  2255.  
  2256. Thu Apr 29 02:01:27 1993  Jim Meyering  (meyering@comco.com)
  2257.  
  2258.     * src/*.c and man/*.c except for sort: Add --help and --version
  2259.     options.
  2260.  
  2261.     * pr.c: Convert to use getopt_long.
  2262.  
  2263.     * lib/memcmp.c: Use version from glibc.
  2264.     [WORDS_BIGENDIAN]: Test this instead of the using glibc's
  2265.     __BYTE_ORDER macro.
  2266.     * configure.in: Use AC_WORDS_BIGENDIAN to set it.
  2267.  
  2268.     * od.c (parse_old_offset): Allow `0X' as well as `0x' prefix to
  2269.     indicate hex.
  2270.  
  2271.     * Makefile.in (dist): Depend on Makefile so that changes to
  2272.     Makefile.in (like adding new files to DISTRIB) are reflected
  2273.     in the new distribution.
  2274.  
  2275. Fri Apr 23 21:53:47 1993  Jim Meyering  (meyering@comco.com)
  2276.  
  2277.     * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
  2278.     other options so users can use them to override DEFS.
  2279.     * src/Makefile.in [.c.o]: Add -I$(srcdir) for version.h.
  2280.  
  2281.     * Makefile.in [CFLAGS, LDFLAGS]: Don't set to -g explicitely;
  2282.     configure's AC_SUBST will set these.
  2283.  
  2284.     * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
  2285.     [targets that cd then run make in subdirectories]: Don't depend
  2286.     on `cd ..';  use a subshell instead.
  2287.  
  2288.     * Makefile.in [info, install-info, dvi, check, installcheck]:
  2289.     New targets but no rules; comply with standards.
  2290.  
  2291.     * configure.in [CFLAGS]: Default to -g -O if CC is gcc and the user
  2292.     hasn't specified CFLAGS.
  2293.     [LDFLAGS]: Substitute into Makefile.
  2294.  
  2295. Tue Mar 30 21:36:11 1993  Jim Meyering  (meyering@comco.com)
  2296.  
  2297.     * od.c: New option --compatible, -C.
  2298.     (parse_old_offset): New function.
  2299.     * od.1: Document new option.
  2300.  
  2301. Mon Mar 29 21:27:56 1993  Jim Meyering  (meyering@comco.com)
  2302.  
  2303.     * cut.c, expand.c, join.c, nl.c: Always call error with errno
  2304.     (not zero) after failed fclose or non-zero ferror.
  2305.  
  2306. Sun Mar 28 16:59:31 1993  Mike Haertel  (mike@cs.uoregon.edu)
  2307.  
  2308.     * configure.in: Add check for working memcmp; use GNU's if
  2309.     the system's doesn't grok the 8th bit.
  2310.     * memcmp.c: Fix it so it groks the 8th bit.
  2311.     TODO: We really need to provide a fast memcmp, since most
  2312.     machines will have a broken memcmp.  Probably should get
  2313.     the one from glibc.
  2314.     * sort.c (mergefps): Maintain keybeg and keylim when copying
  2315.     the current line to `saved'.
  2316.     (numcompare): Skip white space here since -n no longer implies -b.
  2317.     (getmonth): Skip white space here since -M no longer implies -b.
  2318.     (compare): Completely overhauled to make the 8th bit work right,
  2319.     also to properly handle the global reverse option.
  2320.     (set_ordering): -n no longer implies -b, according to Posix.
  2321.     For consistency, -M also no longer implies -b.
  2322.     (main): Correct treatment of -r and global keys.
  2323.     (findlines): Clear keybeg and keylim if no keys are used.
  2324.     (sort): Avoid overwriting tempfiles[] array bounds.
  2325.  
  2326. Sun Mar 21 22:29:29 1993  Jim Meyering  (meyering@comco.com)
  2327.  
  2328.     * pr.c (close_file): Reverse May 13, '92 change, but add the condition
  2329.     that cols_ready_to_print not be decremented when printing across.
  2330.     The command `echo |pr -2ta' didn't terminate.
  2331.     (print_page): Rewrite conditional (that had side effects in second
  2332.     conjunct) using nested if statements to make it clear that we do
  2333.     indeed want those semantics.
  2334.  
  2335. Tue Jan 19 13:35:24 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  2336.  
  2337.     * Version 1.4.
  2338.  
  2339.     * system.h: Try BBSIZE if BSIZE isn't defined.
  2340.     From Tony Robinson <ajr@eng.cam.ac.uk>.
  2341.  
  2342. Sat Dec 12 12:37:00 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  2343.  
  2344.     * tail.c (tail_forever): Use an array of file descriptors
  2345.     instead of forking processes.
  2346.     (dump_remainder): Return number of bytes read.
  2347.     (tail_file): Fill in the new array.
  2348.     From Ian Lance Taylor.
  2349.  
  2350. Fri Dec 11 17:18:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  2351.  
  2352.     * system.h: Only define index, bcmp, etc. if not already defined.
  2353.  
  2354. Tue Dec  8 10:31:14 1992  Jim Meyering  (meyering@idefix.comco.com)
  2355.  
  2356.     * tr.c (is_char_class_member): Remove unreached return after abort.
  2357.  
  2358. Sun Dec  6 22:34:52 1992  Jim Meyering  (meyering@idefix.comco.com)
  2359.  
  2360.     * csplit, cut.c, expand.c, fold.c, head.c, join.c, od.c, pr.c,
  2361.     sort.c, split.c, tail.c, tr.c, unexpand.c, uniq.c:  Remove inclusion
  2362.     of <ctype.h> and definitions of is* ctype macros to system.h.
  2363.     Change a few more uses of is* ctype macros to (protected) upper
  2364.     case versions.
  2365.  
  2366.     * system.h: Add isascii-protected ctype IS* macros.
  2367.  
  2368. Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
  2369.  
  2370.     * all files using getopt.h: Convert static declarations of
  2371.     struct option to use new macros from getopt.h: no_argument,
  2372.     required_argument, and optional_argument.
  2373.  
  2374. Tue Dec 01 10:57:24 1992  Jim Meyering  (meyering@idefix.comco.com)
  2375.  
  2376.     * od.c, pr.c, sort.c: Make uses of ctype.h macros consistent.
  2377.  
  2378.     * tr.c (main): Close stdin and stdout and check return status.
  2379.  
  2380. Tue Nov 24 09:26:08 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2381.  
  2382.     * system.h, csplit.c: Use HAVE_FCNTL_H and HAVE_STRING_H
  2383.     instead of USG.
  2384.  
  2385. Tue Nov 24 08:42:30 1992  Jim Meyering  (meyering@idefix.comco.com)
  2386.  
  2387.     * tr.c: Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that
  2388.     use isascii if it is defined.
  2389.     (is_char_class_member, make_printable_char, make_printable_str,
  2390.     non_neg_strtol): Use new macros instead of lower case ones
  2391.     from <ctype.h>.
  2392.  
  2393.     * od.c (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
  2394.     macros like pr.c.  Suggested by David J. MacKenzie.
  2395.  
  2396.     * od.c (print_ascii, dump_strings): Check for isascii before isprint.
  2397.     (dump_strings): Free malloc'd buffer before returning.
  2398.     (skip): Return non-zero if an error occurred, zero otherwise.
  2399.     Exit only if asked to skip beyond end of combined input.
  2400.     (check_and_close): New function.
  2401.     (skip, read_block, read_char): Call check_and_close when done
  2402.     processing the file associated with in_stream.
  2403.     (skip, read_block, read_char): Set have_read_stdin.
  2404.     (main): Close stdin (if it was ever read) and check for errors
  2405.     just before exiting.
  2406.     (write_block, dump_strings, dump): Don't test return value from
  2407.     functions that operate on streams.  Rely on later ferror tests.
  2408.  
  2409. Sat Nov 21 12:41:49 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2410.  
  2411.     * sort.c (main, usage): Add -T option.
  2412.  
  2413. Thu Nov 19 14:33:40 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2414.  
  2415.     * tail.c (tail_forever, sigusr1, kill_kids): New functions to
  2416.     do -f on multiple files.
  2417.     (main): Call tail_forever.
  2418.     From Ian Lance Taylor.
  2419.  
  2420. Tue Nov 10 14:29:11 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2421.  
  2422.     * cut.c (cut_fields): Add cast.
  2423.  
  2424.     * od.c (decode_one_format): Remove '#' from pre_fmt_string;
  2425.     many systems don't support it.
  2426.     Conditionalize long double support on __STDC__, not __GNUC__.
  2427.     From Ian Lance Taylor.
  2428.  
  2429. Mon Nov  9 00:24:41 1992  Jim Meyering  (meyering@idefix.comco.com)
  2430.  
  2431.     * sort.c (numcompare, keycompare): Add parentheses suggested
  2432.     by gcc -Wall.  Put braces around individual monthtab initializers.
  2433.  
  2434.     * cksum.c: Declare error.  Make checksum table `const.'
  2435.  
  2436.     * pr.c: Remove comment and dcl of unused variable, `print_a_number'.
  2437.  
  2438.     * split.c (main): Add `default: abort();' to enumeration switch.
  2439.  
  2440.     * All files: Make all functions and extern variables static.
  2441.     Make all longopts arrays const as well as static.
  2442.     Make a couple statically initialized aggregates `const.'
  2443.  
  2444. Sun Nov  8 19:46:59 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2445.  
  2446.     * od.c (main): Make old-style format options accumulate.
  2447.     From Jim Meyering.
  2448.  
  2449. Sat Nov  7 00:26:14 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2450.  
  2451.     * tr.c (look_up_char_class): Add cast.
  2452.  
  2453.     * nl.c (build_type_arg), csplit.c (extract_regexp), tac.c (main):
  2454.     Add `const' to variable receiving value from re_compile_pattern.
  2455.  
  2456.     * wc.c (wc): If doing only -c, use st_size for regular files.
  2457.  
  2458.     * fold.c (fold_file): Was folding 1 column too early.
  2459.     From Eric Backus <ericb@lsid.hp.com>.
  2460.  
  2461.     * memset.c: New file.
  2462.  
  2463. Fri Nov  6 20:14:51 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2464.  
  2465.     * cksum.c: New file.
  2466.  
  2467. Tue Oct 13 16:24:06 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2468.  
  2469.     * tac.c (tac_stdin): Handle SIGPIPE.
  2470.     * sort.c (main): Handle SIGTERM.
  2471.  
  2472.     * od.c: New file.
  2473.  
  2474.     * system.h [USG || STDC_HEADERS]: Define bcmp.
  2475.  
  2476. Sat Oct  3 20:41:24 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2477.  
  2478.     * sort.c (main): Handle SIGPIPE.  From trq@dionysos.thphys.ox.ac.uk.
  2479.  
  2480. Tue Sep 29 01:10:05 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2481.  
  2482.     * paste.c (main): Don't write on a string constant.
  2483.  
  2484. Mon Aug 24 00:02:45 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  2485.  
  2486.     * tr.c: Minor cleanup.  Replaced some assert(0) with abort().
  2487.  
  2488. Tue Jul  7 02:14:19 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2489.  
  2490.     * cmp.c, cmp.1: Move to diff distribution.
  2491.  
  2492. Fri Jul  3 16:37:59 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2493.  
  2494.     * system.h: Change FOO_MISSING to HAVE_FOO.
  2495.  
  2496. Wed May 13 20:05:41 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  2497.  
  2498.     * pr.c (COLUMN): Add structure member to remember filename.
  2499.     (main, init_fps, open_file, close_file): Use it.
  2500.  
  2501.     (close_file): Don't decrement cols_ready_to_print when closing
  2502.     a file.  From cdl@mpl.UCSD.EDU (Carl Lowenstein).
  2503.  
  2504. Mon May 11 19:17:33 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  2505.  
  2506.     * cmp.c: --show-chars -> --print-chars.
  2507.  
  2508.     * pr.c: Rename some variables.
  2509.  
  2510. Sat May  9 18:39:47 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2511.  
  2512.     * system.h: Define DEV_BSIZE if not defined.
  2513.  
  2514. Wed Apr 22 02:15:09 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  2515.  
  2516.     * system.h, tac.c: SIGTYPE -> RETSIGTYPE.
  2517.  
  2518. Fri Apr 17 10:42:23 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2519.  
  2520.     * sort.c (main): Don't stop processing args when we hit "-";
  2521.     treat it like a regular filename.
  2522.     From ian@airs.com (Ian Lance Taylor).
  2523.  
  2524.     * pr.c (print_page): Fix off by one line count when ^L is in input.
  2525.     From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de).
  2526.  
  2527. Mon Apr  6 20:52:29 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  2528.  
  2529.     * tr.c (validate): Change error message so it doesn't mention
  2530.     actual name of --truncate-set1 option.  From David MacKenzie.
  2531.  
  2532. Sun Apr  5 14:22:42 1992  Jim Meyering  (meyering@hal.gnu.ai.mit.edu)
  2533.  
  2534.     * tr.c (string2_extend, validate): Give an error message when
  2535.     translating without --truncate-set1, with empty string2, and
  2536.     with non-empty string1.  "tr 1 ''" produced a failed assertion.
  2537.  
  2538. Mon Mar 30 02:20:56 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2539.  
  2540.     * system.h: Change how ST_BLKSIZE is calculated to allow for
  2541.     non-POSIX systems that don't define BSIZE in sys/param.h.
  2542.  
  2543. Sat Mar 28 11:18:01 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2544.  
  2545.     * sum.c (main, bsd_sum_file): Don't print filename if BSD
  2546.     algorithm is used and only one file was given.
  2547.  
  2548. Wed Mar 25 11:34:41 1992  Jim Meyering  (meyering@wombat.gnu.ai.mit.edu)
  2549.  
  2550.     * tr.c (get_spec_stats): Fix assertion to allow ranges like a-a
  2551.     with starting character equal to ending character.  This is
  2552.     contrary to the POSIX spec, but what is already implemented
  2553.     in find_closing_delim.
  2554.  
  2555. Mon Mar 16 00:15:11 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2556.  
  2557.     * Version 1.3.
  2558.  
  2559.     * sort.c (numcompare, checkfp): Add parens to placate gcc2.
  2560.  
  2561.     * sort.c (mergefps): For -u, output the first, not last, of
  2562.     the lines that compare equal.  From Mike Haertel.
  2563.  
  2564. Tue Mar 10 10:51:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2565.  
  2566.     * tr.c: Remove initial capitals and periods from error messages.
  2567.  
  2568. Sun Mar  8 22:03:45 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  2569.  
  2570.     * sum.c (main): Add -r option for SYSV compat.
  2571.  
  2572. Thu Feb 27 22:26:25 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2573.  
  2574.     * sort.c (compare): If -s given, leave lines in their original order.
  2575.     (main): Recognize -s.
  2576.     (usage): Document -s.
  2577.     From Mike Haertel.
  2578.  
  2579. Tue Feb 18 20:29:45 1992  Randall Smith  (randy at geech.gnu.ai.mit.edu)
  2580.  
  2581.     * sort.c (sort): Check for complete parsing of buffer into
  2582.     lines before nixing temp files.
  2583.  
  2584. Mon Feb 17 10:35:58 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2585.  
  2586.     * sum.c (sysv_sum_file): Use %lu instead of %u to print a
  2587.     long.  Not that it matters for GNU . . .
  2588.  
  2589.     * tr.c (unquote, make_printable_str): Use \007 instead of ANSI \a.
  2590.     (append_normal_char, append_range, append_char_class,
  2591.     append_repeated_char, append_equiv_class, spec_init):
  2592.     Initialize `next' field of new `struct List_element'.
  2593.     From rommel@informatik.tu-muenchen.de (Kai-Uwe Rommel).
  2594.  
  2595. Sat Feb  8 17:16:49 1992  David J. MacKenzie  (djm at apple-gunkies.gnu.ai.mit.edu)
  2596.  
  2597.     * join.c (get_line): Renamed from getline to avoid GNU libc conflict.
  2598.  
  2599. Sun Feb  2 21:22:01 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2600.  
  2601.     * Version 1.2.
  2602.  
  2603.     * nl.c: Support multiple files and "-" for stdin.
  2604.     (main): Check for read and write errors.
  2605.     (nl_file): New function.
  2606.  
  2607. Wed Jan 29 10:09:10 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2608.  
  2609.     * tr.c (main): -t option was called -b in getopt spec.
  2610.     (validate): Don't warn that set1 is longer than set2.
  2611.  
  2612.     * tr.c: Rename --sysv-string2-truncate to --truncate-string1.
  2613.  
  2614. Fri Jan 17 16:29:05 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2615.  
  2616.     * nl.c: New program from bin-src.
  2617.  
  2618.     * nl.c (main): Use a struct linebuffer for line_buf.
  2619.     (process_file): Use readline instead of fgets, to preserve NULs.
  2620.     (check_section): Use memcmp instead of strncmp.
  2621.     (proc_text): Print line_buf with fwrite instead of printf.
  2622.  
  2623.     * nl.c (main): Usage message if too many args given.  Check
  2624.     for error in closing input file.  Lengths of section delimiter
  2625.     strings were 1 too large.  Take separator_str into account in
  2626.     length of print_no_line_fmt.
  2627.     (build_print_fmt): Allocate space for print_fmt, in case
  2628.     separator_str is long.
  2629.     (proc_text): A blank line is one that contains nothing, not
  2630.     even nonprinting characters.
  2631.  
  2632. Fri Jan 17 01:04:22 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2633.  
  2634.     * All programs: Document `--' instead of `+' to introduce
  2635.     long-named options, in usage messages.
  2636.  
  2637.     * sum.c (bsd_sum_file): Renamed from sum_file.
  2638.     (sysv_sum_file): New function.
  2639.     (main): Recognize an option to select between the algorithms.
  2640.  
  2641. Sun Jan  5 17:41:18 1992  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
  2642.  
  2643.     * pr.c (close_file, print_page): Fixed bug that had the command
  2644.     yes |head |pr -t printing "yyyyyyyyyy".
  2645.     * (print_page): Fixed bug that had pr -3 -a printing two too few
  2646.     trailer lines per page.
  2647.     * (main): Added restriction that -a and -m are incompatible.
  2648.     Although the POSIX spec doesn't explicitly say they shouldn't
  2649.     be used together, it says -a modifies the -column option and
  2650.     that -column shouldn't be used with -m.
  2651.  
  2652. Thu Jan  2 15:23:59 1992  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  2653.  
  2654.     * nl.c: Include regex.h after, not before, sys/types.h.
  2655.  
  2656. Thu Jan  2 12:18:10 1992  Tom Lord  (lord at geech.gnu.ai.mit.edu)
  2657.  
  2658.     * sort.c (fillbuf) return bytes buffered instead of bytes read.
  2659.  
  2660. Fri Dec 27 22:53:36 1991  Jim Kingdon  (kingdon at geech.gnu.ai.mit.edu)
  2661.  
  2662.     * sort.c (LINEALLOC): New #define.
  2663.     (struct lines): New field ``limit''.
  2664.     (initlines): Set it from new arg ``limit''.
  2665.     (sort, mergefps, checkfp): Pass new arg to initlines().
  2666.     (findlines): Don't realloc past lines->limit.
  2667.  
  2668. Tue Dec 24 01:24:03 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2669.  
  2670.     * tac.c, sort.c, csplit.c, system.h: Change POSIX ifdefs to
  2671.     HAVE_UNISTD_H and _POSIX_VERSION.
  2672.  
  2673.     * xwrite.c: Change POSIX ifdef to HAVE_UNISTD_H.
  2674.  
  2675. Sat 14 Dec 1991 11:46:42  Jim Meyering  (meyering at wombat)
  2676.  
  2677.     * tr.c: Fixed an inaccurate comment on posix_pedantic.
  2678.  
  2679. Thu 12 Dec 1991 21:15:20  Jim Meyering  (meyering at hal)
  2680.  
  2681.     * tr.c: Changed underscores to hyphens in long option name
  2682.     "sysv_string2_truncate".
  2683.  
  2684. Wed Dec 11 13:33:34 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2685.  
  2686.     * tac.c (main): Set obscure_syntax to tell re_search to
  2687.     allocate memory for the group registers.
  2688.  
  2689. Fri Dec  6 18:26:27 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2690.  
  2691.     * tac.c, sort.c, csplit.c [POSIX]:  Use sigaction instead of
  2692.     signal, which POSIX doesn't have.
  2693.     * sort.c: Replace inthandler and huphandler with sighandler.
  2694.     * csplit.c (main): Only handle signals if they were not being
  2695.     ignored.
  2696.  
  2697.     * tr.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  2698.  
  2699. Wed Dec  4 00:47:47 1991  Jim Meyering  (meyering at wombat)
  2700.  
  2701.     * tr.c (unquote): Reformat code so it doesn't go beyond column 80.
  2702.     * tr.c (squeeze_filter): Comment a little on why it's better
  2703.     to step through the input by two.
  2704.     * tr.c (set_initialize): Write a comment describing the function.
  2705.     * tr.c: Eliminated the variable `portability_warnings' and replaced
  2706.     references to it by references to `!posix_pedantic'.  One of the
  2707.     uses of portability_warnings had been wrong.
  2708.  
  2709. Tue Dec  3 14:03:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2710.  
  2711.     * tr.c: New program.
  2712.  
  2713. Sun Dec  1 15:07:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2714.  
  2715.     * linebuffer.[ch] (freebuffer): New function (used by cron).
  2716.  
  2717. Thu Oct 17 22:30:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2718.  
  2719.     * system.h, configure, Makefile.in: Don't include memory.h if
  2720.     STDC_HEADERS, removing need for MEMORY_H_MISSING.
  2721.  
  2722. Thu 17 Oct 1991 16:53:07  Jim Meyering  (meyering at wombat)
  2723.  
  2724.     * pr.c (print_page): REALLY fixed `extra newline at EOF' problem.
  2725.     Somehow, part of my patch didn't make it last time.
  2726.  
  2727. Sat Oct 12 12:04:47 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  2728.  
  2729.     * tail.c (pipe_lines, pipe_bytes): Initialize `first->next'.
  2730.  
  2731.     * cmp.c (cmp): Print EOF message to stderr, not stdout, for
  2732.     POSIX 1003.2.11.2.
  2733.  
  2734.     * sort.c (xfwrite): fwrite never returns < 0, so check if
  2735.     number written is number we asked to write.
  2736.     (fillbuf, main): fread never returns < 0, so check ferror instead.
  2737.     From Rainer Orth.
  2738.  
  2739. Tue Oct  8 18:07:08 1991  Jim Meyering  (meyering at churchy)
  2740.  
  2741.     * pr.c (print_page): Really fixed `extra newline at EOF' problem.
  2742.     * (store_columns): Fixed bug that caused `pr -b -2' to coredump
  2743.     on files of certain lengths.
  2744.  
  2745. Fri Oct  4 22:30:25 1991  Jim Meyering  (meyering at churchy)
  2746.  
  2747.     * pr.c (print_page): Fixed to not add single spurious newline
  2748.     at EOF when using -t.
  2749.  
  2750. Wed Oct  2 01:02:05 1991  David J. MacKenzie  (djm at apple-gunkies)
  2751.  
  2752.     * pr.c (print_page): Don't pad the page if -t given.
  2753.  
  2754.     * csplit.c (load_buffer), sort.c (mergefps): Use bcopy, not memcpy.
  2755.  
  2756. Thu Sep 26 12:35:00 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  2757.  
  2758.     * Version 1.1.
  2759.  
  2760.     * configure, system.h: Include memory.h if it works.
  2761.  
  2762.     * split.c: Allow `b' unit as well as `k' and `m'.
  2763.  
  2764.     * head.c, tail.c: Replace -b +blocks option with specifying
  2765.     units (b, k, or m) after the number.
  2766.     (parse_unit): New function.
  2767.  
  2768.     * fold.c (main): Check that -w arg is a number.
  2769.  
  2770.     * cut.c: +delimiter takes an arg.
  2771.  
  2772. Mon Sep 16 14:52:38 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  2773.  
  2774.     * pr.c (close_file): Don't close an already closed file.
  2775.  
  2776. Thu Sep 12 00:14:43 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2777.  
  2778.     * memchr.c: New file.
  2779.     * configure: Check if it's needed.
  2780.  
  2781.     * csplit.c, gcsplit.1: New program.
  2782.  
  2783.     * pr.c (cleanup): Only free buffers if they were allocated.
  2784.  
  2785.     * sort.c [!USG && !STDC_HEADERS]: Declare memchr.
  2786.  
  2787. Wed Sep 11 20:54:16 1991  Jim Meyering  (meyering at churchy)
  2788.  
  2789.     * pr.c: The following 3 bugs appeared (at least) when printing
  2790.     a  single file with the options `-3 -f'.
  2791.     * (print_white_space): Single spaces were being replaced
  2792.     with tabs.
  2793.     * (print_page): Some lines were getting too much white space
  2794.     at the beginning because spaces_not_printed wasn't being reset
  2795.     to 0.
  2796.     * (read_line): The single space between a truncated column
  2797.     on its left and the column on its right was omitted.  Fixed
  2798.     so that previous value of input_position is restored before
  2799.     returning FALSE.
  2800.  
  2801. Sat Sep  7 03:22:18 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2802.  
  2803.     * configure: Only remove /etc from PATH when it's not part of
  2804.     a larger name.
  2805.  
  2806. Wed Sep  4 17:09:24 1991  David J. MacKenzie  (djm at apple-gunkies)
  2807.  
  2808.     * linebuffer.c (readline): Fix incorrect recalculation of `end'.
  2809.  
  2810.     * head.c, tail.c: Replace `mode' variables and bitmasks with
  2811.     separate variables for each option.
  2812.  
  2813. Mon Sep  2 04:00:37 1991  David J. MacKenzie  (djm at apple-gunkies)
  2814.  
  2815.     * wc.c: New program.
  2816.  
  2817. Sun Sep  1 01:18:38 1991  David J. MacKenzie  (djm at apple-gunkies)
  2818.  
  2819.     * fold.c (fold_file): Read in an int, not a char, for EOF
  2820.     comparison.
  2821.  
  2822.     * configure: Check whether st_blksize is missing.
  2823.  
  2824.     * tac.c (save_stdin): Put copy of pipe input in TMPDIR if
  2825.     defined, instead of /tmp.
  2826.  
  2827. Thu Aug 29 14:48:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2828.  
  2829.     * xwrite.c [POSIX]: unistd.h might require sys/types.h.
  2830.  
  2831. Wed Aug 28 11:57:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2832.  
  2833.     * paste.c (main): Consider -d "" to be like -d "\0",
  2834.     for POSIX (if I read it right).
  2835.  
  2836.     * sort.c, join.c: New programs.
  2837.  
  2838.     * cut.c (set_field): Allow blanks as well as commas to
  2839.     separate numbers in ranges.
  2840.  
  2841. Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
  2842.  
  2843.     * pr.c: Failure to open an input file is no longer a fatal error.
  2844.     A message is printed for each failed open.  When printing
  2845.     in parallel, each failed open results in one fewer output column.
  2846.     Added POSIX -r option to suppress the message.
  2847.     * pr.c: Added variables: failed_opens, ignore_failed_opens.
  2848.     These changes were based in part on work by David MacKenzie.
  2849.  
  2850. Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
  2851.  
  2852.     * pr.c: Complain if user gives both -m and -[0-9]+ options.
  2853.  
  2854. Wed Aug 21 22:04:57 1991  David J. MacKenzie  (djm at apple-gunkies)
  2855.  
  2856.     * Version 1.0.
  2857.  
  2858. Mon Aug 19 00:16:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2859.  
  2860.     * expand.c: Rename some variables.
  2861.     (expand): Don't access value off end of array.
  2862.     * unexpand.c: Rename some variables.
  2863.     (unexpand): Don't access value off end of array.
  2864.     Instead of copying tabs verbatim and flushing pending spaces
  2865.     when one is reached, count them as the proper number of
  2866.     pending spaces.  Instead of changing tabs to single spaces if
  2867.     the tabstop list is exhausted, print the rest of the line
  2868.     unchanged (for POSIX).
  2869.  
  2870. Sat Aug 17 01:49:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2871.  
  2872.     * cut.c (cut_file), paste.c (paste_parallel, paste_serial):
  2873.     Clear EOF and error conditions on stdin so it can be reused.
  2874.  
  2875.     * expand.c, unexpand.c (parse_tabstops): Allow blanks as well
  2876.     as commas to separate tabstops, for POSIX.
  2877.     * expand.c (expand), unexpand.c (unexpand): Don't line-buffer
  2878.     the output; send it directly to stdout.
  2879.     * unexpand.c (main): Make -t stupidly imply -a for POSIX.
  2880.     (unexpand): If a tab stop list was given and we move past its end,
  2881.     copy the rest of the line verbatim.
  2882.  
  2883.     * split.c (convint): New function to allow 'm' and 'k' after
  2884.     byte counts.
  2885.     (main): Use it.  Change -c option to -b for POSIX.
  2886.  
  2887. Fri Aug  9 02:47:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2888.  
  2889.     * pr.c: Protect isdigit with isascii, if required.
  2890.  
  2891. Tue Aug  6 21:42:25 1991  David J. MacKenzie  (djm at wheat-chex)
  2892.  
  2893.     Most of the following is from Paul Eggert:
  2894.     * cat.c (main): If stdin is read, check close at end.
  2895.     * cmp.c (main): Check for stdin being closed.
  2896.     Check for close errors on stdin and stdout.
  2897.     (cmp): Return a value instead of exiting.
  2898.     * cut.c (cut_file): New function, from code in main.
  2899.     Check for read errors.
  2900.     (main): Check for close errors.
  2901.     * expand.c, unexpand.c (main): Check for close errors.
  2902.     (next_file): Go to next file if one can't be opened.
  2903.     Check for close errors.
  2904.     * head.c (main), tail.c (main): If stdin was read, check for
  2905.     close errors.
  2906.     * head.c (head_file), tail.c (tail_file): Check for close errors.
  2907.     * paste.c (main, paste_parallel, paste_serial), tac.c (main):
  2908.     Check for close errors.  Close stdin if it was read.
  2909.     * split.c (main): Check for close errors.
  2910.  
  2911.     * configure, Makefile.in's: Support +srcdir option.
  2912.     Make config.status.  Fix up clean targets.
  2913.  
  2914. Wed Jul 31 01:32:59 1991  David J. MacKenzie  (djm at hal)
  2915.  
  2916.     * linebuffer.h (struct linebuffer): Add a field to indicate
  2917.     the number of valid chars in the line.
  2918.     * linebuffer.c (initbuffer, readline): Fill it in.
  2919.     * uniq.c, comm.c: Use it.
  2920.  
  2921.     * pr.c (main): Check stdin and stdout fclose for errors.
  2922.     (init_parameters): If there's no room for header and footer,
  2923.     omit them rather than dying (for POSIX).
  2924.     (init_header): Take a file descriptor as additional arg.
  2925.     (init_fps): Change callers.  Note when stdin is read.
  2926.     (open_file): For filename "-" use stdin.
  2927.     (close_file): Don't close stdin.  Check close for errors.
  2928.     (print_char, char_to_clump): Use isprint instead of explicit
  2929.     comparisons.
  2930.  
  2931.     * memcmp.c: New file (needed for comm).
  2932.     * bcopy.c: New file (needed for fold).
  2933.     * system.h: Don't define bcopy as memcpy.
  2934.     * configure: Check for bcopy and memcmp.
  2935.  
  2936.     * uniq.c (main): Use "-" instead of NULL to mean stdin or
  2937.     stdout.
  2938.     (check_file): Use "-" instead of NULL to mean stdin or stdout.
  2939.     Check readline return instead of for NUL character to
  2940.     detect eof.
  2941.     Check fclose for errors.
  2942.     (find_field): Use linebuffer length, not NULs, to detect end
  2943.     of line.
  2944.     (different): New function, replaces compare.  Uses memcmp
  2945.     instead of strncmp.
  2946.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  2947.  
  2948.     * comm.c (compare_files): Return an error indication.
  2949.     Don't take a filename of NULL to mean stdin.
  2950.     Use memcmp instead of strcmp to allow for NULs.
  2951.     Check fclose for errors.
  2952.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  2953.  
  2954.     * sum.c (sum_file): Take an arg indicating whether to print
  2955.     the filename, and don't take NULL meaning stdin.  Set a flag
  2956.     when we read stdin.  Check fclose return for errors.
  2957.     (main): If stdin was read, check fclose return for errors.
  2958.     Use filename of "-" if no args given.
  2959.  
  2960. Thu Jul 25 15:17:10 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2961.  
  2962.     * fold.c: Rewritten from scratch for POSIX.
  2963.  
  2964. Wed Jul 24 01:55:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2965.  
  2966.     * split.c (line_bytes_split): Use xmalloc instead of alloca.
  2967.     * system.h: Don't declare alloca.
  2968.  
  2969.     * tac.c, tail.c: Use SEEK_ instead of L_ for lseek.
  2970.     * system.h: Define SEEK_ macros if not defined.
  2971.  
  2972.     * pr.c: Rename variable `truncate' to avoid library function conflict.
  2973.  
  2974. Tue Jul 23 13:21:48 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2975.  
  2976.     * linebuffer.c, linebuffer.h: New files.
  2977.     * comm.c, uniq.c (initbuffer, readline): Functions
  2978.     removed (use versions in linebuffer.c).
  2979.  
  2980. Mon Jul 22 13:23:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  2981.  
  2982.     * sum.c (sumfile): Always print 5 digits for second number, too.
  2983.     Interpret "-" to mean stdin.
  2984.  
  2985. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  2986.  
  2987.     * uniq.c: Use isblank instead of isspace, to support POSIX.2.
  2988.     * comm.c, pr.c, uniq.c (concat, fatal, error,
  2989.     pfatal_with_name, xmalloc, xrealloc): Functions removed.
  2990.  
  2991. Sat Jul 13 02:04:53 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  2992.  
  2993.     * nl.c: Add long-named options.  Doc fixes.
  2994.  
  2995. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  2996.  
  2997.     * expand.c, unexpand.c [STDC_HEADERS]: Include stdlib.h.
  2998.  
  2999.     * xwrite.c [POSIX]: Include unistd.h.
  3000.     [STDC_HEADERS]: Don't declare errno.
  3001.  
  3002. Sun Jun 30 23:35:16 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3003.  
  3004.     * uniq.c: Add long-named options.  Remove marginally useful -z
  3005.     option (zero padded repeat counts).
  3006.  
  3007. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3008.  
  3009.     * tail.c (tail_file), tac.c (save_stdin, tac_file), split.c
  3010.     (cwrite), head.c (head_file), cat.c (main): Check close return
  3011.     value for delayed error report due to NFS.
  3012.  
  3013. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3014.  
  3015.     * cat.c: Replace "uchar" with "unsigned char", to avoid
  3016.     problems with various systems' typedefs.
  3017.  
  3018. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3019.  
  3020.     * cat.c (cat): Interpret ENOTTY return from FIONREAD ioctl to mean
  3021.     operation is unsupported, for HP-UX 7.0.
  3022.  
  3023. Sun Apr 14 21:49:17 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
  3024.  
  3025.     * sum.c: Always print five digits for first number.
  3026.  
  3027. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  3028.  
  3029.     * cat.c, cmp.c: Don't use fileno(); not needed.
  3030.  
  3031. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3032.  
  3033.     * tac.c, tail.c: Change _POSIX_SOURCE to POSIX.
  3034.  
  3035. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  3036.  
  3037.     * cut.c (cut_file_bytes, cut_file_fields): Make inbufp and
  3038.     outbufp global.
  3039.     (enlarge_line): Adjust inbufp and outbufp.
  3040.  
  3041. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3042.  
  3043.     * cat.c: Declare free returning void, not int, so it
  3044.     doesn't bomb on Xenix.
  3045.  
  3046. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  3047.  
  3048.     * tac.c: Print error messages before calling cleanup, not after.
  3049.  
  3050. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3051.  
  3052.     * tac.c (cleanup): Return SIGTYPE, not int.
  3053.  
  3054. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  3055.  
  3056.     * cut.c (main, usage): Add -b and -n options for POSIX.
  3057.     (set_fields): Don't allow SPC or TAB as number separators.
  3058.  
  3059.     * paste.c (paste_parallel): If open of any file fails, quit
  3060.     (for POSIX).
  3061.  
  3062. Mon Aug  6 22:14:13 1990  David J. MacKenzie  (djm at apple-gunkies)
  3063.  
  3064.     * pr.c: Add POSIX -F option (same as -f).
  3065.  
  3066.     * uniq.c (check_file): Allow '-' to mean stdin or stdout.
  3067.  
  3068. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3069.  
  3070.     * head.c, tail.c: Change `chars' to `bytes' globally.
  3071.     (main, usage): Use POSIX.2 draft 10 option syntax.
  3072.  
  3073. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3074.  
  3075.     * cat.c (main): Don't delay error messages, so they appear
  3076.     where expected.
  3077.     (main, simple_cat, cat): Make errors in input files nonfatal.
  3078.  
  3079. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3080.  
  3081.     * cat.c: Remove -c option added for POSIX draft 9, since POSIX
  3082.     draft 10 removed it.
  3083.  
  3084.     * tac.c (tac_stdin): Use fstat instead of lseek to determine
  3085.     whether stdin is seekable, because lseek silently fails on
  3086.     some special files, like tty's.
  3087.     tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
  3088.     don't turn off -f for non-regular files (assume the user knows
  3089.     what he's doing; it might work for fifo's and sockets).
  3090.  
  3091.     * paste.c (main): If no files given, use stdin.
  3092.     Don't let collapse_escapes write on string constant (delim default).
  3093.     (paste_parallel): Don't close stdin.
  3094.  
  3095.     * cut.c (main): Use standard input for filename of "-".
  3096.  
  3097.     * comm.c (compare_files): Allow '-' to mean stdin.
  3098.  
  3099. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3100.  
  3101.     * cut.c (enlarge_line): Take an arg giving the required amount
  3102.     of space.  Change callers.
  3103.     (main): Don't allow -t'<TAB>' without -f.
  3104.     Make `delim' unsigned to fix sign extension problem in comparison.
  3105.  
  3106. Tue Jul 17 12:36:11 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
  3107.  
  3108.     * pr.c  Deleted excess whitespace from ends of lines.
  3109.         Modified to work with current version of getopt, which
  3110.         returns 1 instead of 0 for non-options.
  3111.         Reversed the meaning of the -f option, to be compatable
  3112.         with real pr.
  3113.  
  3114. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  3115.  
  3116.     * cmp.c (main, usage): Rename -L option to -c and don't have
  3117.     it imply -l.
  3118.     (printc): Take an arg to specify number of chars to pad to,
  3119.     for column alignment.
  3120.     (cmp): Respect flag_print_chars in default output format.
  3121.     Align columns for cmp -cl.
  3122.  
  3123. Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
  3124.  
  3125.     * cmp.c: For +show-chars, have getopt return 'L' so
  3126.     `flag_print_chars' gets set.
  3127.  
  3128. Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
  3129.  
  3130.     * tac.c (main): Initialize fastmap and translate fields of
  3131.     regex before compiling it.
  3132.  
  3133. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3134.  
  3135.     * tac.c: Change +regexp to +regex for consistency with GNU find.
  3136.  
  3137. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3138.  
  3139.     * cat.c (cat): If FIONREAD is available, only use it if it is
  3140.     supported by the filesystem that the file is on.
  3141.  
  3142. Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3143.  
  3144.     * cat.c (main): Add a variable to control whether the check
  3145.     for input file == output file is made, because no values of
  3146.     st_dev and st_ino should be assumed to be available for this
  3147.     purpose.  Only do the check for regular files.
  3148.  
  3149.     * tac.c: Use bcopy instead of memcpy.
  3150.  
  3151. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  3152.  
  3153.     * head.c: Use longs instead of ints for file offsets, for 16
  3154.     bit machines.
  3155.  
  3156. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3157.  
  3158.     * cmp.c: Change some ints to longs for 16 bit machines.
  3159.     (bcmp_cnt): Make char-pointer counting slightly simpler.
  3160.  
  3161. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3162.  
  3163.     * cat.c (main): Allow input file to be output file for devices
  3164.     (ttys, etc.).  Check whether input file is output file when
  3165.     reading standard input.  Print any error messages for standard
  3166.     input.
  3167.  
  3168.     * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
  3169.     machines as well as 32 bit ones.
  3170.     * cmp.c, tail.c: Use longs instead of ints for file offsets.
  3171.  
  3172. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3173.  
  3174.     * cmp.c: Fix some exit statuses for POSIX.
  3175.  
  3176. Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
  3177.  
  3178.     * tac.c: Use regular expressions as the record boundaries.
  3179.     Give better error messages.
  3180.     Reformat code and make it more readable.
  3181.     (main): Use getopt_long to parse options.
  3182.     (tac_stdin): Do not make a temporary file if standard input
  3183.     is a file.
  3184.     (tac_file): New function.
  3185.     (tac): Take an open file desc as an arg.
  3186.     (output): Rewrite to use its own efficient buffering.
  3187.     (xmalloc, xrealloc, xwrite): New functions.
  3188.  
  3189. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3190.  
  3191.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  3192.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  3193.  
  3194. Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3195.  
  3196.     * comm.c (main): Pass the list of files to compare_files as a
  3197.     char ** instead of a char *.
  3198.     (compare_files): Make arg a char **.
  3199.  
  3200.     * uniq.c: Declare some functions as void.
  3201.     Change global vars `countmode' and `mode' from ints to enums.
  3202.     (main): Use getopt to parse options and support POSIX options.
  3203.     Don't use integer_arg to parse numbers, since `-#' can't be
  3204.     parsed that way using getopt.
  3205.     (find_field): Use isspace for finding fields boundaries.
  3206.  
  3207. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  3208.  
  3209.     * comm.c (main): Call usage if given bad option or wrong
  3210.     number of args.  Exit with 0 status normally.
  3211.     (usage): New function.
  3212.     Declare some other functions as void.
  3213.  
  3214. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  3215.  
  3216.     * cmp.c (main, cmp, usage): Replace -q +quick option with -L
  3217.     +show-chars option to add ASCII representation of bytes to -l format.
  3218.  
  3219. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  3220.  
  3221.     * cmp.c (cmp): Change EOF message for POSIX compatibility.
  3222.     For -l format, clear bits > FF.
  3223.  
  3224. Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3225.  
  3226.     * tail.c: Move global `errors' into main instead of having
  3227.     nonfatal_perror set it.
  3228.     (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
  3229.     Return an error status.
  3230.     (file_lines, start_chars, start_lines): Reverse the meaning of
  3231.     the return value.
  3232.     (tail_lines, tail_chars): Account for that reversal.
  3233.  
  3234. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3235.  
  3236.     * head.c: Move global `errors' into main and have the various
  3237.     functions return an error status instead of setting it in
  3238.     nonfatal_perror.
  3239.  
  3240. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  3241.  
  3242.     * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
  3243.       options specified), to compare the two blocks and count
  3244.       newlines simultaneously.
  3245.     * cmp.c New function: bcmp_cnt.
  3246.  
  3247.     * cmp.c (main): Test if output is redirected to /dev/null, and
  3248.       assume `-s' if this is so.
  3249.  
  3250. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3251.  
  3252.     * cat.c: Change `argbad' from a char to a short, so it will
  3253.     work on machines with unsigned chars.
  3254.  
  3255. Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3256.  
  3257.     * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
  3258.     Remove unneccessary variable `c1'.  If -l was given, increase
  3259.     `char_number' by the number of bytes read, after producing output,
  3260.     rather than by the offset of the first differing bytes, before
  3261.     producing output.
  3262.     Replace if-else-if constructions with case statements for clarity.
  3263.     (bcmp2): Rename `n' to `nread'.
  3264.  
  3265. Wed Dec 20 01:32:06 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  3266.  
  3267.     * nl.c (proc_text): Use re_search instead of re_match.
  3268.  
  3269. Tue Dec 19 01:26:34 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  3270.  
  3271.     * nl.c: Indent.  Un-nest statements.  Use GNU regexp functions
  3272.     instead of System V ones.  Move function declarations together.
  3273.     (quit): Remove useless function.
  3274.     (program_name): New variable for error messages.
  3275.     (main): Use perror in error message.
  3276.     (xmalloc): New function to replace myalloc.
  3277.     (myalloc): Function removed.
  3278.     Global: use program_name and xmalloc.
  3279.  
  3280. Sun Dec 17 00:36:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  3281.  
  3282.     * uniq.c: Declare some functions.
  3283.     (main): Initialize infile and outfile.  Call usage if given
  3284.     invalid args.  Normally exit with 0 status instead of garbage.
  3285.     (usage): New function to print usage message and exit.
  3286.     (check_file): Remove unused variable.
  3287.     (readline): Compare against EOF, not < 0.
  3288.     (xmalloc, xrealloc): Return char *, not int.
  3289.     Ok to return 0 if 0 bytes requested.
  3290.     (lb1, lb2): Remove unused global vars.
  3291.     (concat): Remove unused function.
  3292.  
  3293. Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  3294.  
  3295.     * comm.c: Remove unused global variables lb1, lb2.
  3296.     (main): Remove unneeded variable.
  3297.     (compare_files): Remove unused arg.
  3298.     (readline): un-nest assignment.  Test against EOF instead of < 0.
  3299.     (error): Print to stderr, not stdout.
  3300.     (xmalloc, xrealloc): Return char * instead of int.
  3301.     Returning 0 is ok if 0 bytes requested (ANSI C).
  3302.  
  3303.  
  3304. Local Variables:
  3305. mode: indented-text
  3306. left-margin: 8
  3307. version-control: never
  3308. End:
  3309.