home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / gnu / textutils-1.11-src.lha / textutils-1.11 / ChangeLog next >
Encoding:
Text File  |  1994-11-06  |  57.6 KB  |  1,650 lines

  1. Sun Nov 06 00:17:21 1994  Jim Meyering  (meyering@comco.com)
  2.  
  3.     * Version 1.11.
  4.  
  5. Sat Nov 05 15:14:44 1994  Jim Meyering  (meyering@comco.com)
  6.  
  7.     * memcmp.c, srtoul.c: Use up-to-date versions.
  8.     Reported by Franc,ois Pinard.
  9.  
  10.     * src/Makefile.in (DEFS): Remove -Dlint... again.
  11.  
  12.     * src/Makefile.in (PROGS): Add fmt!
  13.     Reported by Andreas Stolcke (stolcke@ICSI.Berkeley.EDU).
  14.  
  15. Fri Nov 04 17:26:16 1994  Jim Meyering  (meyering@comco.com)
  16.  
  17.     * Version 1.10.
  18.  
  19. Thu Nov 03 23:23:08 1994  Jim Meyering  (meyering@comco.com)
  20.  
  21.     * linebuffer.h: Use __P instead of _P since the latter conflicts
  22.     with a definition in some <ctype.h>.  From Kaveh Ghazi.
  23.  
  24. Wed Nov 02 17:36:34 1994  Jim Meyering  (meyering@comco.com)
  25.  
  26.     * tr.c: Add const attribute where appropriate.
  27.  
  28.     * tail.c (BUFSIZ): Use definition from <stdio.h>.
  29.  
  30. Tue Nov 01 23:54:09 1994  Jim Meyering  (meyering@comco.com)
  31.  
  32.     * tail.c (XWRITE): Allow n_bytes == 0 but call fwrite only if
  33.     n_bytes is positive.  Turn off assertions.  `tail /dev/null' was
  34.     getting a failed assertion.  Reported by Doug McLaren
  35.     (dougmc@comco.com).
  36.  
  37.     * cut.c (cut_bytes): Print at least a newline for every line of input.
  38.     (cut_fields): Print a newline even for lines whose only selected
  39.     field is empty.  But print nothing when using -s without -f1.
  40.     And print nothing for empty input.  Reported by
  41.     Richard_Sharman@software.mitel.com.
  42.  
  43. Tue Nov 01 06:05:23 1994  Jim Meyering  (meyering@comco.com)
  44.  
  45.     * fmt.c: Change #ifdef __STDC__ to #if defined (__STDC__) && __STDC__.
  46.     * linebuffer.h: Likewise.
  47.  
  48. Mon Oct 31 06:53:32 1994  Jim Meyering  (meyering@comco.com)
  49.  
  50.     * configure.in (AC_REPLACE_FUNCS): Remove memcmp since AC_FUNC_MEMCMP
  51.     already handles it.  From Kaveh Ghazi.
  52.  
  53.     * {lib,src}/Makefile.in (DEFS): Don't use -Dlint.  Some systems
  54.     get failures when it's defined.  From Kaveh Ghazi.
  55.  
  56.     * cat.c (cat): Conditionalize test for errno == ENOSYS.  It's not
  57.     defined on some Next and Alliant systems.  From Kaveh Ghazi.
  58.  
  59.     * sort.c join.c (main): Include version.h and call parse_long_options
  60.     with the proper number of arguments.  Reported by Franc,ois Pinard.
  61.  
  62. Sun Oct 30 01:30:41 1994  Jim Meyering  (meyering@comco.com)
  63.  
  64.     * (configure.in): Add AC_OFF_T and rearrange by type along the
  65.     same lines as autoscan.
  66.  
  67.     * fmt.c, fmt.1: New files.
  68.     Both from Ross Paterson (rap@doc.ic.ac.uk).
  69.  
  70.     * Makefile.in (PROGS): Add fmt.
  71.     * src/Makefile.in (SOURCES, OBJECTS): Add fmt.c and fmt.o respectively.
  72.     (fmt): Add a link rule.
  73.     * man/Makefile.in (MANFILES): Add fmt.1.
  74.  
  75. Sat Oct 08 10:44:30 1994  Jim Meyering  (meyering@comco.com)
  76.  
  77.     * Makefile.in (All of them): Update from the ones in sh-utils.
  78.     From now on, rules and definitions that are comon to the fileutils,
  79.     textutils, and sh-utils will get ChangeLog entries only in the
  80.     sh-utils.
  81.  
  82. Tue Oct 04 20:42:46 1994  Jim Meyering  (meyering@comco.com)
  83.  
  84.     * od.c (my_strtoul): Set errno to zero before calling strtoul.
  85.     Otherwise, od can fail complaining about a valid integer argument.
  86.     From Andreas Schwab.
  87.  
  88. Sun Oct 02 17:57:09 1994  Jim Meyering  (meyering@comco.com)
  89.  
  90.     * tr.c (main): Give an error and fail when squeezing repeats
  91.     and no non-options are given.  Reported by Tony Robinson
  92.     (ajr@eng.cam.ac.uk).
  93.  
  94.     * sort.c (main): Temporarily copy each input file that might be
  95.     another name for the output file.  When in doubt (e.g. a pipe),
  96.     copy.  This allows the dangerous (historical -- in cnews) idiom
  97.     `cat file | sort -o file' to work properly.  Don't rely on this
  98.     behavior in new shell scripts.  From Paul Eggert (eggert@twinsun.com).
  99.  
  100. Mon Sep 26 18:01:47 1994  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  101.  
  102.     * lib/xwrite.c safe-read.c memchr.c linebuffer.c full-write.c:
  103.     Remove CONFIG_BROKETS ifdef.
  104.     * src/Makefile.in lib/Makefile.in: Don't define it.
  105.  
  106. Sat Sep 24 21:26:27 1994  Jim Meyering  (meyering@comco.com)
  107.  
  108.     * full-write.c (full_write): Declare argument LEN to be size_t.
  109.  
  110. Mon Sep 12 13:35:27 1994  Jim Meyering  (meyering@comco.com)
  111.  
  112.     * tail.c (tail_file): [For multiple files only]: Report truncation
  113.     of monitored file and reset current file size.  From Franc,ois Pinard.
  114.  
  115. Sat Aug 27 16:57:20 1994  Jim Meyering  (meyering@comco.com)
  116.  
  117.     * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
  118.     From Franc,ois Pinard.
  119.  
  120. Tue Jul 26 11:33:53 1994  Jim Meyering  (meyering@comco.com)
  121.  
  122.     * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
  123.     decides whether to include <fcntl.h>.  From Francois Pinard.
  124.  
  125. Wed Jul 13 12:33:34 1994  Jim Meyering  (meyering@comco.com)
  126.  
  127.     * tr.c (substr): Fix off-by-one allocation error.
  128.  
  129. Wed Jun 22 01:02:50 1994  Jim Meyering  (meyering@comco.com)
  130.  
  131.     * tac.c (tac_file): Use O_RDONLY instead of zero in call to open.
  132.     (tac): Fix typo that had `1' as arg #2 of error after failed read.
  133.     Use errno instead.  From Michael I Bushnell <mib@gnu.ai.mit.edu>.
  134.  
  135. Thu May 26 08:46:32 1994  Jim Meyering  (meyering@comco.com)
  136.  
  137.     * configure.in [INSTALL]: Revert change of March 25.  autoconf
  138.     has been fixed.
  139.  
  140. Mon Apr 11 17:25:43 1994  Jim Meyering  (meyering@comco.com)
  141.  
  142.     * join.c (prline): Remove unused function.  Indent.
  143.  
  144. Fri May  6 05:44:24 1994  Jim Meyering  (meyering@comco.com)
  145.  
  146.     * tail.c (tail_forever): Don't print headers when asked not to.
  147.     From Karsten Thygesen <karthy@kom.auc.dk>.
  148.  
  149.     * wc.c (wc): Optimize for the case when only bytes are being counted
  150.     and the input is not a regular file.  From Jeff Moore <jbm@mordor.com>.
  151.  
  152. Sun Apr 24 10:54:08 1994  Jim Meyering  (meyering@comco.com)
  153.  
  154.     * configure.in [AC_SIZEOF_TYPE]: Update for autoconf-1.9.
  155.     * memchr.c: Test SIZEOF_LONG instead of LONG_64_BITS.
  156.  
  157. Mon Apr 11 17:55:52 1994  Jim Meyering  (meyering@comco.com)
  158.  
  159.     * csplit.c (struct control): Add new field, repeat_forever.
  160.     Remove now-unneeded definition of INT_MAX.
  161.     (process_regexp): Test repeat_forever instead of comparing `repeat'
  162.     to INT_MAX.
  163.     (split_file): Don't even reference `repeat' count if repeat_forever
  164.     is set.
  165.     (new_control_record): Initialize repeat_forever field.
  166.     (parse_repeat_count): Set it instead of setting repeat count to
  167.     INT_MAX.
  168.     (process_line_count): Abort for internal error instead of calling
  169.     handle_line_error.
  170.  
  171.     * long-options.c (parse_long_options): Take a new argument indicating
  172.     the utility name (e.g. "join", not "gjoin") for version output.
  173.     Print both the utility and the package names, e.g. `join - GNU
  174.     textutils-1.9.1' instead of just the package name.
  175.  
  176.     * join.c (main): Call parse_long_options with program name arg.
  177.     * sort.c (main): Ditto.
  178.  
  179.     * All source except sort.c and join.c (main): Change --version output
  180.     to include utility name as well as package name and version info.
  181.  
  182. Wed Mar 30 08:53:21 1994  Jim Meyering  (meyering@comco.com)
  183.  
  184.     * configure.in: Use AC_SET_MAKE.
  185.     * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
  186.  
  187. Mon Mar 28 09:55:05 1994  Jim Meyering  (meyering@comco.com)
  188.  
  189.     * tr.c (main): In addition to the --help usage pointer, give an
  190.     explicit error message for too many arguments.
  191.  
  192. Fri Mar 25 18:11:19 1994  Jim Meyering  (meyering@comco.com)
  193.  
  194.     * configure.in: Use AC_VERBOSE, AC_CHECKING, and AC_WARN instead
  195.     of explicit echo commands.
  196.     [INSTALL]: When AC_PROG_INSTALL resorts to setting this to
  197.     `./install.sh', make it `../install.sh' instead since that
  198.     script will be invoked only from subdirectories.
  199.     [AC_SIZEOF_TYPE]: Use this instead of deprecated AC_LONG_64_BITS.
  200.  
  201.     * cat.c (cat): The command `:|cat -s' failed on Irix5 because
  202.     ioctl (d, FIONREAD,... now returns ENOSYS for pipes -- under Irix4
  203.     it returned EINVAL.  Detect this.
  204.     (main) [lint]: Initialize variables to suppress `used before
  205.     initialized' warnings.
  206.  
  207.     * csplit.c: Change long option name from --suffix to --suffix-format.
  208.  
  209.     * od.c (skip): Correct a comment.
  210.     (main): Don't output anything to stdout if the sole input file
  211.     doesn't exist.  Reported by Bauke Jan Douma <bjd@dds.hacktic.nl>.
  212.  
  213.     * od.c (dump) [lint]: Initialize a variable to suppress `used before
  214.     initialized' warning.
  215.     (main) [lint]: Ditto.
  216.     * paste.c (paste_parallel) [lint]: Ditto.
  217.  
  218. Fri Jan 28 11:02:21 1994  Jim Meyering  (meyering@comco.com)
  219.  
  220.     * configure.in: Don't set LDFLAGS since linking now uses both
  221.     LDFLAGS and CFLAGS.
  222.  
  223. Wed Jan 18 16:14:00 1994  Jim Meyering  (meyering@comco.com)
  224.  
  225.     * unexpand.c (unexpand): Don't segfault when given a name of a
  226.     nonexistent file.
  227.     * expand.c (expand): Ditto.
  228.     Both from Bauke Jan Douma <bjd@dds.hacktic.nl>.
  229.  
  230. Thu Jan 13 17:27:38 1994  Jim Meyering  (meyering@comco.com)
  231.  
  232.     * src/Makefile.in: Change all link commands to use both $(CFLAGS)
  233.     and $(LDFLAGS).
  234.  
  235.     * csplit.c (load_buffer): Rather than incrementing buffer size,
  236.     double it each time we fail to find a newline.  Otherwise, csplit
  237.     would run out of memory when processing files with very long lines.
  238.  
  239. Mon Jan 10 01:20:38 1994  Jim Meyering  (meyering@comco.com)
  240.  
  241.     * man/Makefile.in (manprefix): Use binprefix as the default.
  242.  
  243. Sat Jan 08 22:22:45 1994  Jim Meyering  (meyering@comco.com)
  244.  
  245.     * cat.c: Use full_write and safe_read instead of write and read resp.
  246.     * csplit.c: Ditto.
  247.     * head.c: Ditto.
  248.     * split.c: Ditto.
  249.     * tac.c: Ditto.
  250.  
  251.     * sum.c: Use safe_read instead of read.
  252.     * tr.c: Ditto.
  253.     * wc.c: Ditto.
  254.  
  255.     * tail.c: Replace calls to xwrite with calls to fwrite.
  256.     Use fopen/fclose instead of open/close.
  257.     (write_header): Use a single call to printf instead of four to xwrite.
  258.     Use safe_read instead of read.
  259.     * head.c: Ditto.
  260.  
  261. Tue Dec 28 15:49:32 1993  Jim Meyering  (meyering@comco.com)
  262.  
  263.     * install.sh: New file.
  264.     Makefile.in [DISTFILES]: Add it.
  265.  
  266. Wed Dec 22 18:52:44 1993  Jim Meyering  (meyering@comco.com)
  267.  
  268.     * memcmp.c: Use the latest version from the GNU C library.
  269.  
  270.     * cut.c [ADD_RANGE_PAIR]: New macro.
  271.     (set_fields): Collect the list of all selected ranges before
  272.     allocating and initializing the boolean lookup table.
  273.     (cut_bytes, cut_fields): Complete rewrite.  Avoid copying
  274.     into buffer whenever possible.  Properly handle input without
  275.     trailing newline.
  276.     (getstr): New function.  Copied from getline.c, but with minor changes.
  277.  
  278.     * sort.c (main): Properly handle -Tdir.
  279.     Before, `sort -T/var/tmp' gave `sort: unrecognized option `-v''.
  280.     Reported by Kristoffer Rose (kris@diku.dk).
  281.  
  282.     * cut.c (main): Give separate errors for `-s without -f'
  283.     and `-d without -f'.
  284.     (main): Now -d '' means `use the NUL byte as the delimiter'.
  285.     Before, it got an error.
  286.  
  287. Mon Dec 20 23:29:30 1993  Jim Meyering  (meyering@comco.com)
  288.  
  289.     * configure.in [test for 8-bit clean memcmp]: Add a test to detect
  290.     losing memcmp from SunOS4.1.x.  From Robert H. de Vries
  291.     <robert@and.nl>.
  292.  
  293. Sat Dec 18 01:12:24 1993  Jim Meyering  (meyering@comco.com)
  294.  
  295.     * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
  296.     so it goes in config.status.  This eliminates unnecessary second run
  297.     of configure.
  298.  
  299. Thu Dec 02 23:53:03 1993  Jim Meyering  (meyering@comco.com)
  300.  
  301.     * configure.in (AC_HAVE_FUNCS): Add isascii.
  302.     * system.h [!defined (isascii) || defined (STDC_HEADERS)]: This failed
  303.     on AIX PS/2 1.3 systems because isascii is a function and it is used
  304.     in definitions (with the necessary side effect of assigning to a
  305.     global variable) of the is* macros.  Also test HAVE_ISASCII and
  306.     redefine ISASCII(c) instead of isascii.
  307.     Reported by Minh Tran-Le (tranle@intellicorp.com).
  308.  
  309. Fri Nov 19 22:41:48 1993  Jim Meyering  (meyering@comco.com)
  310.  
  311.      * configure.in: Don't run the test for 8-bit clean memcmp if we
  312.      already know we'll be using our replacement.
  313.  
  314. Fri Nov 12 00:44:49 1993  Jim Meyering  (meyering@comco.com)
  315.  
  316.     * Version 1.9.1.
  317.  
  318.     * tac.c (usage): Fix typo in long usage.
  319.     * sort.c (usage): Likewise.
  320.     From Philippe.Schnoebelen@imag.fr.
  321.  
  322.     * cut.c [FATAL_ERROR]: New macro.
  323.     (main): Call both error and usage (2) through FATAL_ERROR in
  324.     many places.  Before, only `error (2...' was called.
  325.     (invalid_list): Removed.  This function is subsumed by FATAL_ERROR.
  326.  
  327.     * cut.c (cut_fields): Properly handle input lacking a terminating
  328.     newline.  Before, the command  `printf "a\tb" |cut -f 1' generated
  329.     no output.
  330.  
  331. Tue Nov 09 17:26:25 1993  Jim Meyering  (meyering@comco.com)
  332.  
  333.     od.c (usage): Change --backward-compatible to --traditional in
  334.     the long usage message.
  335.  
  336. Sun Nov 07 00:50:05 1993  Jim Meyering  (meyering@comco.com)
  337.  
  338.     * Version 1.9.
  339.  
  340. Sat Nov 06 22:51:31 1993  Jim Meyering  (meyering@comco.com)
  341.  
  342.     * cut.c (cut_fields): Revert July 27 change.  Instead, strip off
  343.     trailing delimiter unless given a range of fields like `3-' that
  344.     extends to end of line.
  345.     (set_fields): Moved local `eol_range_start' to file-scope.
  346.     Reported by Arne H. Juul (arnej@solan.unit.no).
  347.  
  348. Tue Nov 02 00:53:41 1993  Jim Meyering  (meyering@comco.com)
  349.  
  350.     * fold.c (fold_file): Don't get stuck in an endless loop when
  351.     width is smaller than 8 and there are TABs in the input.
  352.  
  353. Sat Oct 30 15:31:28 1993  Jim Meyering  (meyering@comco.com)
  354.  
  355.     * join.c: Remove now-unused dcls of show_help and show_version.
  356.  
  357. Fri Oct 29 13:58:50 1993  Jim Meyering  (meyering@comco.com)
  358.  
  359.     * csplit.c [INT_MAX]: Make sure it's defined.
  360.     [not HAVE_LIMITS_H]: Don't include limits.h.
  361.     From Kaveh R. Ghazi (ghazi@noc.rutgers.edu).
  362.  
  363. Wed Oct 27 01:13:52 1993  Jim Meyering  (meyering@comco.com)
  364.  
  365.     * Version 1.8.1.
  366.  
  367. Mon Oct 25 20:16:33 1993  Jim Meyering  (meyering@comco.com)
  368.  
  369.     * sort.c: Accept but ignore -y0 for compatibility with Solaris 2.
  370.     From Chuck Hedrick (hedrick@klinzhai.rutgers.edu).
  371.  
  372.     * sort.c (main): Handle --help and --version options.
  373.     * Makefile.in (sort.o): Depend on long-options.h.
  374.  
  375. Sun Oct 24 00:31:02 1993  Jim Meyering  (meyering@comco.com)
  376.  
  377.     * csplit.c, cut.c, expand.c, fold.c, head.c, nl.c, od.c, paste.c,
  378.     split.c, tac.c, tail.c, unexpand.c, uniq.c: Use the preferred
  379.     `--longopt=arg' syntax in --help message rather than `--longopt arg'.
  380.     From Francois Pinard.
  381.  
  382.     * tail.c: Don't include <signal.h>.  It hasn't been necessary
  383.     since the Dec 12, 1992 change.
  384.  
  385.     * join.c (main): Accept `-v 1' again.  Adding the --version
  386.     long option had broken it, although -v1 still worked.  Call
  387.     parse_long_options instead of adding "help" and "version"
  388.     to join's longopt strct.
  389.     * Makefile.in [SOURCES, OBJECTS, DISTFILES]: Add long-options.c
  390.     and long-options.h.
  391.     * (join): Depend on and link with long-options.o.
  392.     * (join.o): Depend on long-options.h.
  393.  
  394.     * od.c: Change --compatible (-C) to --backward-compatible (-B).
  395.  
  396.     * csplit.c: Change --abandon-null-files to --elide-empty-files.
  397.  
  398. Sat Oct 23 01:00:12 1993  Jim Meyering  (meyering@comco.com)
  399.  
  400.     * tr.c (get_next, string2_extend): Add default: label to switch stmt.
  401.  
  402.     * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
  403.     join.c, nl.c, od.c, paste.c, pr.c, split.c, sum.c, tac.c, tail.c,
  404.     tr.c, unexpand.c, uniq.c, wc.c (usage): Add long --help.
  405.     Exit successfully for --help, non-zero for usage error.
  406.     From Francois Pinard.
  407.  
  408.     * configure.in: Add AC_STAT_MACROS_BROKEN.
  409.     * system.h [AC_STAT_MACROS_BROKEN]: Test it.
  410.  
  411. Fri Oct 22 23:26:17 1993  Jim Meyering  (meyering@comco.com)
  412.  
  413.     * linebuffer.c, memchr.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include
  414.     <config.h> or "config.h".
  415.     * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fold.c, head.c,
  416.     join.c, nl.c, od.c, paste.c, pr.c, sort.c, split.c, sum.c, tac.c,
  417.     tail.c, tr.c, unexpand.c, uniq.c, version.c, wc.c: Ditto.
  418.  
  419.     * configure.in: Use AC_CONFIG_HEADER.
  420.     * Makefile.in [DIST]: Add config.h.in.
  421.  
  422.     * Makefile.in: Convert so make may be run from subdirectories.
  423.     Add dependencies on config.h.
  424.     * src/Makefile.in: Ditto.
  425.     * lib/Makefile.in: Ditto.
  426.     * man/Makefile.in: Ditto.
  427.  
  428. Wed Oct 20 20:05:48 1993  Jim Meyering  (meyering@comco.com)
  429.  
  430.     * memchr.c (memchr): Do the 32-bit assignment only if !LONG_64_BITS.
  431.     In the 64-bit assignment, be careful to cast the shift operand to
  432.     long.
  433.     Abort if sizeof (unsigned long) > 8.
  434.  
  435. Tue Oct 19 22:37:58 1993  Jim Meyering  (meyering@comco.com)
  436.  
  437.     * csplit.c: Allow repeat counts to be specified via `{*}'.
  438.     New option --suffix=format.  Supercedes --digits option.
  439.     New option --abandon-null-files.
  440.     From Ronald F. Guilmette (rfg@netcom.com).
  441.  
  442.     * csplit.1: Updated.
  443.     From Ronald F. Guilmette.
  444.     
  445.     * csplit.c: Remove register keyword (replace with `int' in two cases).
  446.  
  447.     * csplit.c: [MAX]: Macro renamed from max and moved to top of file.
  448.     (bytes_to_octal_digits): New static array.
  449.     (get_format_flags): Combine '+' and ' ' cases of switch stmt.
  450.     Return count if for loop terminates.
  451.     (get_format_width): Use `bytes_to_octal_digits' instead of just 11.
  452.     (get_format_prec): Make sure is_negative is defined before used.
  453.     (get_format_conv_type): Give a different error message if there
  454.     is no conversion specifier.
  455.     Test ISPRINT (ch) instead of `ch < '~' && ch > ' ''.
  456.     (max_out): Use `%%' rather than `%' in format string.
  457.  
  458. Sat Oct 16 10:45:17 1993  Jim Meyering  (meyering@comco.com)
  459.  
  460.     * pr.c (main): When argc == 1, don't try to xmalloc (0).
  461.  
  462. Tue Oct 12 00:53:26 1993  Jim Meyering  (meyering@comco.com)
  463.  
  464.     * xwrite.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
  465.     or "config.h".
  466.  
  467. Sat Oct 09 23:37:43 1993  Jim Meyering  (meyering@comco.com)
  468.  
  469.     * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
  470.  
  471. Thu Sep  9 21:52:10 1993  Jim Meyering  (meyering@comco.com)
  472.  
  473.     * src/*.c: Print version on standard output, not stderr.
  474.  
  475.     * configure.in: Add AC_LONG_64_BITS.
  476.     * memchr.c: Use #ifdef LONG_64_BITS instead of
  477.     `if (sizeof(longword) > 4)'.
  478.  
  479. Tue Jul 27 22:19:39 1993  Jim Meyering  (meyering@comco.com)
  480.  
  481.     * cat.c (cat): Don't fail just because ioctl (d, FIONREAD,... can't
  482.     always handle devices.  Ignore errno == EINVAL and errno == ENODEV.
  483.     `cat -v /dev/null' was failing on many systems.
  484.  
  485.     * cut.c (cut_fields): Don't strip off trailing delimiter e.g.
  486.     `echo 'a:b:c:' | cut -d: -f3-' should print `c:', not just `c'.
  487.     From William Dowling <will@franklin.com>.
  488.  
  489. Thu May 27 01:37:51 1993  Jim Meyering  (meyering@comco.com)
  490.  
  491.     * Version 1.8.
  492.  
  493.     * memchr.c: De-ansify the fixed version from glibc.
  494.     It is supposed to work on systems with 64-bit long ints.
  495.  
  496. Mon May 24 00:32:43 1993  Jim Meyering  (meyering@comco.com)
  497.  
  498.     * Version 1.7.
  499.  
  500. Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
  501.  
  502.     * Version 1.6.
  503.  
  504. Fri May 21 22:57:53 1993  Jim Meyering  (meyering@comco.com)
  505.  
  506.     * pr.c (cols_ready_to_print): New function.  It replaces a global
  507.     variable by the same name and computes on the fly the value that
  508.     was supposed to be maintained through that variable.  This should
  509.     put to rest the `pr -2a' bug.
  510.     (main): Don't let getopt_long reorder arguments so we can
  511.     distinguish between `pr -1 -2' and `pr -12'.  Rework handling of
  512.     -n and +n options.
  513.  
  514.     * fold.c: Declare xmalloc.
  515.  
  516. Wed May 19 19:12:18 1993  Karl Berry  (karl@owl.hq.ileaf.com)
  517.  
  518.     * sort.c (main): fflush before exit, so a closed stdout doesn't lose.
  519.  
  520. Tue May 18 23:49:26 1993  Jim Meyering (meyering@comco.com)
  521.  
  522.     * mkinstalldirs: New file.
  523.     * Makefile.in (installdirs): Use it to create installation directories.
  524.  
  525. Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
  526.  
  527.     * all source: With --version, print version and exit immediately.
  528.  
  529. Thu May 13 01:03:16 1993  Jim Meyering  (meyering@comco.com)
  530.  
  531.     * Makefile.in (installdirs): New rules for creating installation
  532.     directories. (install): depend on it.
  533.  
  534.     * tail.c (main): Remove --compatible since `+1f' may be used
  535.     to get the BSD `-0f' behavior portably.
  536.  
  537.     * fold.c (main): Turn -N arguments, where N is a digit, into -wN.
  538.     From Ian Lance Taylor (ian@cygnus.com).
  539.  
  540. Mon May 10 22:33:44 1993  Jim Meyering  (meyering@comco.com)
  541.  
  542.     * tail.c (main): New option -C, --compatible to make `tail -0f'
  543.     work like `tail +1f' for compatibility with BSD tail.
  544.  
  545. Thu May  6 23:28:56 1993  Jim Meyering  (meyering@comco.com)
  546.  
  547.     * pr.c (print_page): Decrement cols_ready_to_print even when
  548.     lines_to_print == 0.  The command `echo |pr -2ta' *still* didn't
  549.     terminate.  Add parentheses for clarity.
  550.  
  551. Mon May  3 23:57:47 1993  Jim Meyering  (meyering@comco.com)
  552.  
  553.     * Version 1.5.
  554.  
  555.     * od.c (main): Remove set-but-not-used variable, `usage_error'.
  556.  
  557.     * split.c (main): Call usage with an argument.
  558.  
  559. Sun May  2 16:05:04 1993  Jim Meyering  (meyering@comco.com)
  560.  
  561.     * configure.in: Reverse if-else branches in AC_TEST_PROGRAM test
  562.     for 8-bit clean memcmp.
  563.  
  564.     * cat.c (usage, main): Remove unused argument.
  565.  
  566.     * csplit.c (remove_line): Remove set-but-not-used variable, `line_got.'
  567.     (check_for_offset): Remove unused argument `argnum.'
  568.  
  569.     * configure.in: Add AC_SIZE_T.
  570.  
  571. Sat May  1 09:03:19 1993  Jim Meyering  (meyering@comco.com)
  572.  
  573.     * uniq.c (main): Interpret non-option arguments with a leading `+'
  574.     only if we haven't seen `--'.
  575.  
  576.     * tr.c (main): Change variable name to avoid shadowed dcl.
  577.     * wc.c (write_counts): Ditto.
  578.  
  579.     * sum.1: Make documentation agree with the code.
  580.  
  581.     * od.c: Depend only on HAVE_LONG_DOUBLE for long double support.
  582.  
  583. Fri Apr 30 20:16:03 1993  Jim Meyering  (meyering@comco.com)
  584.  
  585.     * configure.in [AC_HAVE_HEADERS]: Add limits.h.
  586.  
  587.     * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
  588.  
  589.     * od.c (parse_old_offset): Don't use prototype in function
  590.     definition.  Remove unnecessary conjunct from test for hexadecimal
  591.     prefix.
  592.  
  593.     * od.c: Depend on __GNUC__ || HAVE_LONG_DOUBLE rather than __STDC__
  594.     for long double support;  there are compilers (Stardent Vistra svr4)
  595.     without long double but still define __STDC__.
  596.  
  597. Thu Apr 29 02:01:27 1993  Jim Meyering  (meyering@comco.com)
  598.  
  599.     * src/*.c and man/*.c except for sort: Add --help and --version
  600.     options.
  601.  
  602.     * pr.c: Convert to use getopt_long.
  603.  
  604.     * lib/memcmp.c: Use version from glibc.
  605.     [WORDS_BIGENDIAN]: Test this instead of the using glibc's
  606.     __BYTE_ORDER macro.
  607.     * configure.in: Use AC_WORDS_BIGENDIAN to set it.
  608.  
  609.     * od.c (parse_old_offset): Allow `0X' as well as `0x' prefix to
  610.     indicate hex.
  611.  
  612.     * Makefile.in (dist): Depend on Makefile so that changes to
  613.     Makefile.in (like adding new files to DISTRIB) are reflected
  614.     in the new distribution.
  615.  
  616. Fri Apr 23 21:53:47 1993  Jim Meyering  (meyering@comco.com)
  617.  
  618.     * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
  619.     other options so users can use them to override DEFS.
  620.     * src/Makefile.in [.c.o]: Add -I$(srcdir) for version.h.
  621.  
  622.     * Makefile.in [CFLAGS, LDFLAGS]: Don't set to -g explicitely;
  623.     configure's AC_SUBST will set these.
  624.  
  625.     * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
  626.     [targets that cd then run make in subdirectories]: Don't depend
  627.     on `cd ..';  use a subshell instead.
  628.  
  629.     * Makefile.in [info, install-info, dvi, check, installcheck]:
  630.     New targets but no rules; comply with standards.
  631.  
  632.     * configure.in [CFLAGS]: Default to -g -O if CC is gcc and the user
  633.     hasn't specified CFLAGS.
  634.     [LDFLAGS]: Substitute into Makefile.
  635.  
  636. Tue Mar 30 21:36:11 1993  Jim Meyering  (meyering@comco.com)
  637.  
  638.     * od.c: New option --compatible, -C.
  639.     (parse_old_offset): New function.
  640.     * od.1: Document new option.
  641.  
  642. Mon Mar 29 21:27:56 1993  Jim Meyering  (meyering@comco.com)
  643.  
  644.     * cut.c, expand.c, join.c, nl.c: Always call error with errno
  645.     (not zero) after failed fclose or non-zero ferror.
  646.  
  647. Sun Mar 28 16:59:31 1993  Mike Haertel  (mike@cs.uoregon.edu)
  648.  
  649.     * configure.in: Add check for working memcmp; use GNU's if
  650.     the system's doesn't grok the 8th bit.
  651.     * memcmp.c: Fix it so it groks the 8th bit.
  652.     TODO: We really need to provide a fast memcmp, since most
  653.     machines will have a broken memcmp.  Probably should get
  654.     the one from glibc.
  655.     * sort.c (mergefps): Maintain keybeg and keylim when copying
  656.     the current line to `saved'.
  657.     (numcompare): Skip white space here since -n no longer implies -b.
  658.     (getmonth): Skip white space here since -M no longer implies -b.
  659.     (compare): Completely overhauled to make the 8th bit work right,
  660.     also to properly handle the global reverse option.
  661.     (set_ordering): -n no longer implies -b, according to Posix.
  662.     For consistency, -M also no longer implies -b.
  663.     (main): Correct treatment of -r and global keys.
  664.     (findlines): Clear keybeg and keylim if no keys are used.
  665.     (sort): Avoid overwriting tempfiles[] array bounds.
  666.  
  667. Sun Mar 21 22:29:29 1993  Jim Meyering  (meyering@comco.com)
  668.  
  669.     * pr.c (close_file): Reverse May 13, '92 change, but add the condition
  670.     that cols_ready_to_print not be decremented when printing across.
  671.     The command `echo |pr -2ta' didn't terminate.
  672.     (print_page): Rewrite conditional (that had side effects in second
  673.     conjunct) using nested if statements to make it clear that we do
  674.     indeed want those semantics.
  675.  
  676. Tue Jan 19 13:35:24 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  677.  
  678.     * Version 1.4.
  679.  
  680.     * system.h: Try BBSIZE if BSIZE isn't defined.
  681.     From Tony Robinson <ajr@eng.cam.ac.uk>.
  682.  
  683. Sat Dec 12 12:37:00 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  684.  
  685.     * tail.c (tail_forever): Use an array of file descriptors
  686.     instead of forking processes.
  687.     (dump_remainder): Return number of bytes read.
  688.     (tail_file): Fill in the new array.
  689.     From Ian Lance Taylor.
  690.  
  691. Fri Dec 11 17:18:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  692.  
  693.     * system.h: Only define index, bcmp, etc. if not already defined.
  694.  
  695. Tue Dec  8 10:31:14 1992  Jim Meyering  (meyering@idefix.comco.com)
  696.  
  697.     * tr.c (is_char_class_member): Remove unreached return after abort.
  698.  
  699. Sun Dec  6 22:34:52 1992  Jim Meyering  (meyering@idefix.comco.com)
  700.  
  701.     * csplit, cut.c, expand.c, fold.c, head.c, join.c, od.c, pr.c,
  702.     sort.c, split.c, tail.c, tr.c, unexpand.c, uniq.c:  Remove inclusion
  703.     of <ctype.h> and definitions of is* ctype macros to system.h.
  704.     Change a few more uses of is* ctype macros to (protected) upper
  705.     case versions.
  706.  
  707.     * system.h: Add isascii-protected ctype IS* macros.
  708.  
  709. Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
  710.  
  711.     * all files using getopt.h: Convert static declarations of
  712.     struct option to use new macros from getopt.h: no_argument,
  713.     required_argument, and optional_argument.
  714.  
  715. Tue Dec 01 10:57:24 1992  Jim Meyering  (meyering@idefix.comco.com)
  716.  
  717.     * od.c, pr.c, sort.c: Make uses of ctype.h macros consistent.
  718.  
  719.     * tr.c (main): Close stdin and stdout and check return status.
  720.  
  721. Tue Nov 24 09:26:08 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  722.  
  723.     * system.h, csplit.c: Use HAVE_FCNTL_H and HAVE_STRING_H
  724.     instead of USG.
  725.  
  726. Tue Nov 24 08:42:30 1992  Jim Meyering  (meyering@idefix.comco.com)
  727.  
  728.     * tr.c: Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that
  729.     use isascii if it is defined.
  730.     (is_char_class_member, make_printable_char, make_printable_str,
  731.     non_neg_strtol): Use new macros instead of lower case ones
  732.     from <ctype.h>.
  733.  
  734.     * od.c (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
  735.     macros like pr.c.  Suggested by David J. MacKenzie.
  736.  
  737.     * od.c (print_ascii, dump_strings): Check for isascii before isprint.
  738.     (dump_strings): Free malloc'd buffer before returning.
  739.     (skip): Return non-zero if an error occurred, zero otherwise.
  740.     Exit only if asked to skip beyond end of combined input.
  741.     (check_and_close): New function.
  742.     (skip, read_block, read_char): Call check_and_close when done
  743.     processing the file associated with in_stream.
  744.     (skip, read_block, read_char): Set have_read_stdin.
  745.     (main): Close stdin (if it was ever read) and check for errors
  746.     just before exiting.
  747.     (write_block, dump_strings, dump): Don't test return value from
  748.     functions that operate on streams.  Rely on later ferror tests.
  749.  
  750. Sat Nov 21 12:41:49 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  751.  
  752.     * sort.c (main, usage): Add -T option.
  753.  
  754. Thu Nov 19 14:33:40 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  755.  
  756.     * tail.c (tail_forever, sigusr1, kill_kids): New functions to
  757.     do -f on multiple files.
  758.     (main): Call tail_forever.
  759.     From Ian Lance Taylor.
  760.  
  761. Tue Nov 10 14:29:11 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  762.  
  763.     * cut.c (cut_fields): Add cast.
  764.  
  765.     * od.c (decode_one_format): Remove '#' from pre_fmt_string;
  766.     many systems don't support it.
  767.     Conditionalize long double support on __STDC__, not __GNUC__.
  768.     From Ian Lance Taylor.
  769.  
  770. Mon Nov  9 00:24:41 1992  Jim Meyering  (meyering@idefix.comco.com)
  771.  
  772.     * sort.c (numcompare, keycompare): Add parentheses suggested
  773.     by gcc -Wall.  Put braces around individual monthtab initializers.
  774.  
  775.     * cksum.c: Declare error.  Make checksum table `const.'
  776.  
  777.     * pr.c: Remove comment and dcl of unused variable, `print_a_number'.
  778.  
  779.     * split.c (main): Add `default: abort();' to enumeration switch.
  780.  
  781.     * All files: Make all functions and extern variables static.
  782.     Make all longopts arrays const as well as static.
  783.     Make a couple statically initialized aggregates `const.'
  784.  
  785. Sun Nov  8 19:46:59 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  786.  
  787.     * od.c (main): Make old-style format options accumulate.
  788.     From Jim Meyering.
  789.  
  790. Sat Nov  7 00:26:14 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  791.  
  792.     * tr.c (look_up_char_class): Add cast.
  793.  
  794.     * nl.c (build_type_arg), csplit.c (extract_regexp), tac.c (main):
  795.     Add `const' to variable receiving value from re_compile_pattern.
  796.  
  797.     * wc.c (wc): If doing only -c, use st_size for regular files.
  798.  
  799.     * fold.c (fold_file): Was folding 1 column too early.
  800.     From Eric Backus <ericb@lsid.hp.com>.
  801.  
  802.     * memset.c: New file.
  803.  
  804. Fri Nov  6 20:14:51 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  805.  
  806.     * cksum.c: New file.
  807.  
  808. Tue Oct 13 16:24:06 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  809.  
  810.     * tac.c (tac_stdin): Handle SIGPIPE.
  811.     * sort.c (main): Handle SIGTERM.
  812.  
  813.     * od.c: New file.
  814.  
  815.     * system.h [USG || STDC_HEADERS]: Define bcmp.
  816.  
  817. Sat Oct  3 20:41:24 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  818.  
  819.     * sort.c (main): Handle SIGPIPE.  From trq@dionysos.thphys.ox.ac.uk.
  820.  
  821. Tue Sep 29 01:10:05 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  822.  
  823.     * paste.c (main): Don't write on a string constant.
  824.  
  825. Mon Aug 24 00:02:45 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  826.  
  827.     * tr.c: Minor cleanup.  Replaced some assert(0) with abort().
  828.  
  829. Tue Jul  7 02:14:19 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  830.  
  831.     * cmp.c, cmp.1: Move to diff distribution.
  832.  
  833. Fri Jul  3 16:37:59 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  834.  
  835.     * system.h: Change FOO_MISSING to HAVE_FOO.
  836.  
  837. Wed May 13 20:05:41 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  838.  
  839.     * pr.c (COLUMN): Add structure member to remember filename.
  840.     (main, init_fps, open_file, close_file): Use it.
  841.  
  842.     (close_file): Don't decrement cols_ready_to_print when closing
  843.     a file.  From cdl@mpl.UCSD.EDU (Carl Lowenstein).
  844.  
  845. Mon May 11 19:17:33 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  846.  
  847.     * cmp.c: --show-chars -> --print-chars.
  848.  
  849.     * pr.c: Rename some variables.
  850.  
  851. Sat May  9 18:39:47 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  852.  
  853.     * system.h: Define DEV_BSIZE if not defined.
  854.  
  855. Wed Apr 22 02:15:09 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  856.  
  857.     * system.h, tac.c: SIGTYPE -> RETSIGTYPE.
  858.  
  859. Fri Apr 17 10:42:23 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  860.  
  861.     * sort.c (main): Don't stop processing args when we hit "-";
  862.     treat it like a regular filename.
  863.     From ian@airs.com (Ian Lance Taylor).
  864.  
  865.     * pr.c (print_page): Fix off by one line count when ^L is in input.
  866.     From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de).
  867.  
  868. Mon Apr  6 20:52:29 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  869.  
  870.     * tr.c (validate): Change error message so it doesn't mention
  871.     actual name of --truncate-set1 option.  From David MacKenzie.
  872.  
  873. Sun Apr  5 14:22:42 1992  Jim Meyering  (meyering@hal.gnu.ai.mit.edu)
  874.  
  875.     * tr.c (string2_extend, validate): Give an error message when
  876.     translating without --truncate-set1, with empty string2, and
  877.     with non-empty string1.  "tr 1 ''" produced a failed assertion.
  878.  
  879. Mon Mar 30 02:20:56 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  880.  
  881.     * system.h: Change how ST_BLKSIZE is calculated to allow for
  882.     non-POSIX systems that don't define BSIZE in sys/param.h.
  883.  
  884. Sat Mar 28 11:18:01 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  885.  
  886.     * sum.c (main, bsd_sum_file): Don't print filename if BSD
  887.     algorithm is used and only one file was given.
  888.  
  889. Wed Mar 25 11:34:41 1992  Jim Meyering  (meyering@wombat.gnu.ai.mit.edu)
  890.  
  891.     * tr.c (get_spec_stats): Fix assertion to allow ranges like a-a
  892.     with starting character equal to ending character.  This is
  893.     contrary to the POSIX spec, but what is already implemented
  894.     in find_closing_delim.
  895.  
  896. Mon Mar 16 00:15:11 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  897.  
  898.     * Version 1.3.
  899.  
  900.     * sort.c (numcompare, checkfp): Add parens to placate gcc2.
  901.  
  902.     * sort.c (mergefps): For -u, output the first, not last, of
  903.     the lines that compare equal.  From Mike Haertel.
  904.  
  905. Tue Mar 10 10:51:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  906.  
  907.     * tr.c: Remove initial capitals and periods from error messages.
  908.  
  909. Sun Mar  8 22:03:45 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  910.  
  911.     * sum.c (main): Add -r option for SYSV compat.
  912.  
  913. Thu Feb 27 22:26:25 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  914.  
  915.     * sort.c (compare): If -s given, leave lines in their original order.
  916.     (main): Recognize -s.
  917.     (usage): Document -s.
  918.     From Mike Haertel.
  919.  
  920. Tue Feb 18 20:29:45 1992  Randall Smith  (randy at geech.gnu.ai.mit.edu)
  921.  
  922.     * sort.c (sort): Check for complete parsing of buffer into
  923.     lines before nixing temp files.
  924.  
  925. Mon Feb 17 10:35:58 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  926.  
  927.     * sum.c (sysv_sum_file): Use %lu instead of %u to print a
  928.     long.  Not that it matters for GNU . . .    
  929.  
  930.     * tr.c (unquote, make_printable_str): Use \007 instead of ANSI \a.
  931.     (append_normal_char, append_range, append_char_class,
  932.     append_repeated_char, append_equiv_class, spec_init):
  933.     Initialize `next' field of new `struct List_element'.
  934.     From rommel@informatik.tu-muenchen.de (Kai-Uwe Rommel).
  935.  
  936. Sat Feb  8 17:16:49 1992  David J. MacKenzie  (djm at apple-gunkies.gnu.ai.mit.edu)
  937.  
  938.     * join.c (get_line): Renamed from getline to avoid GNU libc conflict.
  939.  
  940. Sun Feb  2 21:22:01 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  941.  
  942.     * Version 1.2.
  943.  
  944.     * nl.c: Support multiple files and "-" for stdin.
  945.     (main): Check for read and write errors.
  946.     (nl_file): New function.
  947.  
  948. Wed Jan 29 10:09:10 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  949.  
  950.     * tr.c (main): -t option was called -b in getopt spec.
  951.     (validate): Don't warn that set1 is longer than set2.
  952.  
  953.     * tr.c: Rename --sysv-string2-truncate to --truncate-string1.
  954.  
  955. Fri Jan 17 16:29:05 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  956.  
  957.     * nl.c: New program from bin-src.
  958.  
  959.     * nl.c (main): Use a struct linebuffer for line_buf.
  960.     (process_file): Use readline instead of fgets, to preserve NULs.
  961.     (check_section): Use memcmp instead of strncmp.
  962.     (proc_text): Print line_buf with fwrite instead of printf.
  963.  
  964.     * nl.c (main): Usage message if too many args given.  Check
  965.     for error in closing input file.  Lengths of section delimiter
  966.     strings were 1 too large.  Take separator_str into account in
  967.     length of print_no_line_fmt.
  968.     (build_print_fmt): Allocate space for print_fmt, in case
  969.     separator_str is long.
  970.     (proc_text): A blank line is one that contains nothing, not
  971.     even nonprinting characters.
  972.  
  973. Fri Jan 17 01:04:22 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  974.  
  975.     * All programs: Document `--' instead of `+' to introduce
  976.     long-named options, in usage messages.
  977.  
  978.     * sum.c (bsd_sum_file): Renamed from sum_file.
  979.     (sysv_sum_file): New function.
  980.     (main): Recognize an option to select between the algorithms.
  981.  
  982. Sun Jan  5 17:41:18 1992  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
  983.  
  984.     * pr.c (close_file, print_page): Fixed bug that had the command
  985.     yes |head |pr -t printing "yyyyyyyyyy".
  986.     * (print_page): Fixed bug that had pr -3 -a printing two too few
  987.     trailer lines per page.
  988.     * (main): Added restriction that -a and -m are incompatible.
  989.     Although the POSIX spec doesn't explicitly say they shouldn't
  990.     be used together, it says -a modifies the -column option and
  991.     that -column shouldn't be used with -m.
  992.  
  993. Thu Jan  2 15:23:59 1992  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  994.  
  995.     * nl.c: Include regex.h after, not before, sys/types.h.
  996.  
  997. Thu Jan  2 12:18:10 1992  Tom Lord  (lord at geech.gnu.ai.mit.edu)
  998.  
  999.     * sort.c (fillbuf) return bytes buffered instead of bytes read.
  1000.  
  1001. Fri Dec 27 22:53:36 1991  Jim Kingdon  (kingdon at geech.gnu.ai.mit.edu)
  1002.  
  1003.     * sort.c (LINEALLOC): New #define.
  1004.     (struct lines): New field ``limit''.
  1005.     (initlines): Set it from new arg ``limit''.
  1006.     (sort, mergefps, checkfp): Pass new arg to initlines().
  1007.     (findlines): Don't realloc past lines->limit.
  1008.  
  1009. Tue Dec 24 01:24:03 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1010.  
  1011.     * tac.c, sort.c, csplit.c, system.h: Change POSIX ifdefs to
  1012.     HAVE_UNISTD_H and _POSIX_VERSION.
  1013.  
  1014.     * xwrite.c: Change POSIX ifdef to HAVE_UNISTD_H.
  1015.  
  1016. Sat 14 Dec 1991 11:46:42  Jim Meyering  (meyering at wombat)
  1017.  
  1018.     * tr.c: Fixed an inaccurate comment on posix_pedantic.
  1019.  
  1020. Thu 12 Dec 1991 21:15:20  Jim Meyering  (meyering at hal)
  1021.  
  1022.     * tr.c: Changed underscores to hyphens in long option name
  1023.     "sysv_string2_truncate".
  1024.  
  1025. Wed Dec 11 13:33:34 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1026.  
  1027.     * tac.c (main): Set obscure_syntax to tell re_search to
  1028.     allocate memory for the group registers.
  1029.  
  1030. Fri Dec  6 18:26:27 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1031.  
  1032.     * tac.c, sort.c, csplit.c [POSIX]:  Use sigaction instead of
  1033.     signal, which POSIX doesn't have.
  1034.     * sort.c: Replace inthandler and huphandler with sighandler.
  1035.     * csplit.c (main): Only handle signals if they were not being
  1036.     ignored.
  1037.  
  1038.     * tr.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  1039.  
  1040. Wed Dec  4 00:47:47 1991  Jim Meyering  (meyering at wombat)
  1041.  
  1042.     * tr.c (unquote): Reformat code so it doesn't go beyond column 80.
  1043.     * tr.c (squeeze_filter): Comment a little on why it's better
  1044.     to step through the input by two.
  1045.     * tr.c (set_initialize): Write a comment describing the function.
  1046.     * tr.c: Eliminated the variable `portability_warnings' and replaced
  1047.     references to it by references to `!posix_pedantic'.  One of the
  1048.     uses of portability_warnings had been wrong.
  1049.  
  1050. Tue Dec  3 14:03:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1051.  
  1052.     * tr.c: New program.
  1053.  
  1054. Sun Dec  1 15:07:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1055.  
  1056.     * linebuffer.[ch] (freebuffer): New function (used by cron).
  1057.  
  1058. Thu Oct 17 22:30:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1059.  
  1060.     * system.h, configure, Makefile.in: Don't include memory.h if
  1061.     STDC_HEADERS, removing need for MEMORY_H_MISSING.
  1062.  
  1063. Thu 17 Oct 1991 16:53:07  Jim Meyering  (meyering at wombat)
  1064.  
  1065.     * pr.c (print_page): REALLY fixed `extra newline at EOF' problem.
  1066.     Somehow, part of my patch didn't make it last time.
  1067.  
  1068. Sat Oct 12 12:04:47 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1069.  
  1070.     * tail.c (pipe_lines, pipe_bytes): Initialize `first->next'.
  1071.  
  1072.     * cmp.c (cmp): Print EOF message to stderr, not stdout, for
  1073.     POSIX 1003.2.11.2.
  1074.  
  1075.     * sort.c (xfwrite): fwrite never returns < 0, so check if
  1076.     number written is number we asked to write.
  1077.     (fillbuf, main): fread never returns < 0, so check ferror instead.
  1078.     From Rainer Orth.
  1079.  
  1080. Tue Oct  8 18:07:08 1991  Jim Meyering  (meyering at churchy)
  1081.  
  1082.     * pr.c (print_page): Really fixed `extra newline at EOF' problem.
  1083.     * (store_columns): Fixed bug that caused `pr -b -2' to coredump
  1084.     on files of certain lengths.
  1085.  
  1086. Fri Oct  4 22:30:25 1991  Jim Meyering  (meyering at churchy)
  1087.  
  1088.     * pr.c (print_page): Fixed to not add single spurious newline
  1089.     at EOF when using -t.
  1090.  
  1091. Wed Oct  2 01:02:05 1991  David J. MacKenzie  (djm at apple-gunkies)
  1092.  
  1093.     * pr.c (print_page): Don't pad the page if -t given.
  1094.  
  1095.     * csplit.c (load_buffer), sort.c (mergefps): Use bcopy, not memcpy.
  1096.  
  1097. Thu Sep 26 12:35:00 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1098.  
  1099.     * Version 1.1.
  1100.  
  1101.     * configure, system.h: Include memory.h if it works.
  1102.  
  1103.     * split.c: Allow `b' unit as well as `k' and `m'.
  1104.  
  1105.     * head.c, tail.c: Replace -b +blocks option with specifying
  1106.     units (b, k, or m) after the number.
  1107.     (parse_unit): New function.
  1108.  
  1109.     * fold.c (main): Check that -w arg is a number.
  1110.  
  1111.     * cut.c: +delimiter takes an arg.
  1112.  
  1113. Mon Sep 16 14:52:38 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  1114.  
  1115.     * pr.c (close_file): Don't close an already closed file.
  1116.  
  1117. Thu Sep 12 00:14:43 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1118.  
  1119.     * memchr.c: New file.
  1120.     * configure: Check if it's needed.
  1121.  
  1122.     * csplit.c, gcsplit.1: New program.
  1123.  
  1124.     * pr.c (cleanup): Only free buffers if they were allocated.
  1125.  
  1126.     * sort.c [!USG && !STDC_HEADERS]: Declare memchr.
  1127.  
  1128. Wed Sep 11 20:54:16 1991  Jim Meyering  (meyering at churchy)
  1129.  
  1130.     * pr.c: The following 3 bugs appeared (at least) when printing
  1131.     a  single file with the options `-3 -f'.
  1132.     * (print_white_space): Single spaces were being replaced
  1133.     with tabs.
  1134.     * (print_page): Some lines were getting too much white space
  1135.     at the beginning because spaces_not_printed wasn't being reset
  1136.     to 0.
  1137.     * (read_line): The single space between a truncated column
  1138.     on its left and the column on its right was omitted.  Fixed
  1139.     so that previous value of input_position is restored before
  1140.     returning FALSE.
  1141.  
  1142. Sat Sep  7 03:22:18 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1143.  
  1144.     * configure: Only remove /etc from PATH when it's not part of
  1145.     a larger name.
  1146.  
  1147. Wed Sep  4 17:09:24 1991  David J. MacKenzie  (djm at apple-gunkies)
  1148.  
  1149.     * linebuffer.c (readline): Fix incorrect recalculation of `end'.
  1150.  
  1151.     * head.c, tail.c: Replace `mode' variables and bitmasks with
  1152.     separate variables for each option.
  1153.  
  1154. Mon Sep  2 04:00:37 1991  David J. MacKenzie  (djm at apple-gunkies)
  1155.  
  1156.     * wc.c: New program.
  1157.  
  1158. Sun Sep  1 01:18:38 1991  David J. MacKenzie  (djm at apple-gunkies)
  1159.  
  1160.     * fold.c (fold_file): Read in an int, not a char, for EOF
  1161.     comparison. 
  1162.  
  1163.     * configure: Check whether st_blksize is missing.
  1164.  
  1165.     * tac.c (save_stdin): Put copy of pipe input in TMPDIR if
  1166.     defined, instead of /tmp.
  1167.  
  1168. Thu Aug 29 14:48:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1169.  
  1170.     * xwrite.c [POSIX]: unistd.h might require sys/types.h.
  1171.  
  1172. Wed Aug 28 11:57:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1173.  
  1174.     * paste.c (main): Consider -d "" to be like -d "\0",
  1175.     for POSIX (if I read it right).
  1176.  
  1177.     * sort.c, join.c: New programs.
  1178.  
  1179.     * cut.c (set_field): Allow blanks as well as commas to
  1180.     separate numbers in ranges.
  1181.  
  1182. Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
  1183.  
  1184.     * pr.c: Failure to open an input file is no longer a fatal error.
  1185.     A message is printed for each failed open.  When printing
  1186.     in parallel, each failed open results in one fewer output column.
  1187.     Added POSIX -r option to suppress the message.
  1188.     * pr.c: Added variables: failed_opens, ignore_failed_opens.
  1189.     These changes were based in part on work by David MacKenzie.
  1190.  
  1191. Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
  1192.  
  1193.     * pr.c: Complain if user gives both -m and -[0-9]+ options.
  1194.  
  1195. Wed Aug 21 22:04:57 1991  David J. MacKenzie  (djm at apple-gunkies)
  1196.  
  1197.     * Version 1.0.
  1198.  
  1199. Mon Aug 19 00:16:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1200.  
  1201.     * expand.c: Rename some variables.
  1202.     (expand): Don't access value off end of array.
  1203.     * unexpand.c: Rename some variables.
  1204.     (unexpand): Don't access value off end of array.
  1205.     Instead of copying tabs verbatim and flushing pending spaces
  1206.     when one is reached, count them as the proper number of
  1207.     pending spaces.  Instead of changing tabs to single spaces if
  1208.     the tabstop list is exhausted, print the rest of the line
  1209.     unchanged (for POSIX).
  1210.  
  1211. Sat Aug 17 01:49:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1212.  
  1213.     * cut.c (cut_file), paste.c (paste_parallel, paste_serial):
  1214.     Clear EOF and error conditions on stdin so it can be reused.
  1215.  
  1216.     * expand.c, unexpand.c (parse_tabstops): Allow blanks as well
  1217.     as commas to separate tabstops, for POSIX.
  1218.     * expand.c (expand), unexpand.c (unexpand): Don't line-buffer
  1219.     the output; send it directly to stdout.
  1220.     * unexpand.c (main): Make -t stupidly imply -a for POSIX.
  1221.     (unexpand): If a tab stop list was given and we move past its end,
  1222.     copy the rest of the line verbatim.
  1223.  
  1224.     * split.c (convint): New function to allow 'm' and 'k' after
  1225.     byte counts.
  1226.     (main): Use it.  Change -c option to -b for POSIX.
  1227.  
  1228. Fri Aug  9 02:47:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1229.  
  1230.     * pr.c: Protect isdigit with isascii, if required.
  1231.  
  1232. Tue Aug  6 21:42:25 1991  David J. MacKenzie  (djm at wheat-chex)
  1233.  
  1234.     Most of the following is from Paul Eggert:
  1235.     * cat.c (main): If stdin is read, check close at end.
  1236.     * cmp.c (main): Check for stdin being closed.
  1237.     Check for close errors on stdin and stdout.
  1238.     (cmp): Return a value instead of exiting.
  1239.     * cut.c (cut_file): New function, from code in main.
  1240.     Check for read errors.
  1241.     (main): Check for close errors.
  1242.     * expand.c, unexpand.c (main): Check for close errors.
  1243.     (next_file): Go to next file if one can't be opened.
  1244.     Check for close errors.
  1245.     * head.c (main), tail.c (main): If stdin was read, check for
  1246.     close errors.
  1247.     * head.c (head_file), tail.c (tail_file): Check for close errors.
  1248.     * paste.c (main, paste_parallel, paste_serial), tac.c (main):
  1249.     Check for close errors.  Close stdin if it was read.
  1250.     * split.c (main): Check for close errors.
  1251.  
  1252.     * configure, Makefile.in's: Support +srcdir option.
  1253.     Make config.status.  Fix up clean targets.
  1254.  
  1255. Wed Jul 31 01:32:59 1991  David J. MacKenzie  (djm at hal)
  1256.  
  1257.     * linebuffer.h (struct linebuffer): Add a field to indicate
  1258.     the number of valid chars in the line.
  1259.     * linebuffer.c (initbuffer, readline): Fill it in.
  1260.     * uniq.c, comm.c: Use it.
  1261.  
  1262.     * pr.c (main): Check stdin and stdout fclose for errors.
  1263.     (init_parameters): If there's no room for header and footer,
  1264.     omit them rather than dying (for POSIX).
  1265.     (init_header): Take a file descriptor as additional arg.
  1266.     (init_fps): Change callers.  Note when stdin is read.
  1267.     (open_file): For filename "-" use stdin.
  1268.     (close_file): Don't close stdin.  Check close for errors.
  1269.     (print_char, char_to_clump): Use isprint instead of explicit
  1270.     comparisons.
  1271.  
  1272.     * memcmp.c: New file (needed for comm).
  1273.     * bcopy.c: New file (needed for fold).
  1274.     * system.h: Don't define bcopy as memcpy.
  1275.     * configure: Check for bcopy and memcmp.
  1276.  
  1277.     * uniq.c (main): Use "-" instead of NULL to mean stdin or
  1278.     stdout.
  1279.     (check_file): Use "-" instead of NULL to mean stdin or stdout.
  1280.     Check readline return instead of for NUL character to
  1281.     detect eof.
  1282.     Check fclose for errors.
  1283.     (find_field): Use linebuffer length, not NULs, to detect end
  1284.     of line.
  1285.     (different): New function, replaces compare.  Uses memcmp
  1286.     instead of strncmp.
  1287.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  1288.  
  1289.     * comm.c (compare_files): Return an error indication.
  1290.     Don't take a filename of NULL to mean stdin.
  1291.     Use memcmp instead of strcmp to allow for NULs.
  1292.     Check fclose for errors.
  1293.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  1294.  
  1295.     * sum.c (sum_file): Take an arg indicating whether to print
  1296.     the filename, and don't take NULL meaning stdin.  Set a flag
  1297.     when we read stdin.  Check fclose return for errors.
  1298.     (main): If stdin was read, check fclose return for errors.
  1299.     Use filename of "-" if no args given.
  1300.  
  1301. Thu Jul 25 15:17:10 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1302.  
  1303.     * fold.c: Rewritten from scratch for POSIX.
  1304.  
  1305. Wed Jul 24 01:55:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1306.  
  1307.     * split.c (line_bytes_split): Use xmalloc instead of alloca.
  1308.     * system.h: Don't declare alloca.
  1309.  
  1310.     * tac.c, tail.c: Use SEEK_ instead of L_ for lseek.
  1311.     * system.h: Define SEEK_ macros if not defined.
  1312.  
  1313.     * pr.c: Rename variable `truncate' to avoid library function conflict.
  1314.  
  1315. Tue Jul 23 13:21:48 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1316.  
  1317.     * linebuffer.c, linebuffer.h: New files.
  1318.     * comm.c, uniq.c (initbuffer, readline): Functions
  1319.     removed (use versions in linebuffer.c).
  1320.  
  1321. Mon Jul 22 13:23:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  1322.  
  1323.     * sum.c (sumfile): Always print 5 digits for second number, too.
  1324.     Interpret "-" to mean stdin.
  1325.  
  1326. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  1327.  
  1328.     * uniq.c: Use isblank instead of isspace, to support POSIX.2.
  1329.     * comm.c, pr.c, uniq.c (concat, fatal, error,
  1330.     pfatal_with_name, xmalloc, xrealloc): Functions removed.
  1331.  
  1332. Sat Jul 13 02:04:53 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1333.  
  1334.     * nl.c: Add long-named options.  Doc fixes.
  1335.  
  1336. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1337.  
  1338.     * expand.c, unexpand.c [STDC_HEADERS]: Include stdlib.h.
  1339.  
  1340.     * xwrite.c [POSIX]: Include unistd.h.
  1341.     [STDC_HEADERS]: Don't declare errno.
  1342.  
  1343. Sun Jun 30 23:35:16 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1344.  
  1345.     * uniq.c: Add long-named options.  Remove marginally useful -z
  1346.     option (zero padded repeat counts).
  1347.  
  1348. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1349.  
  1350.     * tail.c (tail_file), tac.c (save_stdin, tac_file), split.c
  1351.     (cwrite), head.c (head_file), cat.c (main): Check close return
  1352.     value for delayed error report due to NFS.
  1353.  
  1354. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1355.  
  1356.     * cat.c: Replace "uchar" with "unsigned char", to avoid
  1357.     problems with various systems' typedefs.
  1358.  
  1359. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  1360.  
  1361.     * cat.c (cat): Interpret ENOTTY return from FIONREAD ioctl to mean
  1362.     operation is unsupported, for HP-UX 7.0.
  1363.  
  1364. Sun Apr 14 21:49:17 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
  1365.  
  1366.     * sum.c: Always print five digits for first number.
  1367.  
  1368. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  1369.  
  1370.     * cat.c, cmp.c: Don't use fileno(); not needed.
  1371.  
  1372. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1373.  
  1374.     * tac.c, tail.c: Change _POSIX_SOURCE to POSIX.
  1375.  
  1376. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  1377.  
  1378.     * cut.c (cut_file_bytes, cut_file_fields): Make inbufp and
  1379.     outbufp global.
  1380.     (enlarge_line): Adjust inbufp and outbufp.
  1381.  
  1382. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1383.  
  1384.     * cat.c: Declare free returning void, not int, so it
  1385.     doesn't bomb on Xenix.
  1386.  
  1387. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  1388.  
  1389.     * tac.c: Print error messages before calling cleanup, not after.
  1390.  
  1391. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1392.  
  1393.     * tac.c (cleanup): Return SIGTYPE, not int.
  1394.  
  1395. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  1396.  
  1397.     * cut.c (main, usage): Add -b and -n options for POSIX.
  1398.     (set_fields): Don't allow SPC or TAB as number separators.
  1399.  
  1400.     * paste.c (paste_parallel): If open of any file fails, quit
  1401.     (for POSIX).
  1402.  
  1403. Mon Aug  6 22:14:13 1990  David J. MacKenzie  (djm at apple-gunkies)
  1404.  
  1405.     * pr.c: Add POSIX -F option (same as -f).
  1406.  
  1407.     * uniq.c (check_file): Allow '-' to mean stdin or stdout.
  1408.  
  1409. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1410.  
  1411.     * head.c, tail.c: Change `chars' to `bytes' globally.
  1412.     (main, usage): Use POSIX.2 draft 10 option syntax.
  1413.  
  1414. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1415.  
  1416.     * cat.c (main): Don't delay error messages, so they appear
  1417.     where expected.
  1418.     (main, simple_cat, cat): Make errors in input files nonfatal.
  1419.  
  1420. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1421.  
  1422.     * cat.c: Remove -c option added for POSIX draft 9, since POSIX
  1423.     draft 10 removed it. 
  1424.  
  1425.     * tac.c (tac_stdin): Use fstat instead of lseek to determine
  1426.     whether stdin is seekable, because lseek silently fails on
  1427.     some special files, like tty's.
  1428.     tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
  1429.     don't turn off -f for non-regular files (assume the user knows
  1430.     what he's doing; it might work for fifo's and sockets).
  1431.  
  1432.     * paste.c (main): If no files given, use stdin.
  1433.     Don't let collapse_escapes write on string constant (delim default).
  1434.     (paste_parallel): Don't close stdin.
  1435.  
  1436.     * cut.c (main): Use standard input for filename of "-".
  1437.  
  1438.     * comm.c (compare_files): Allow '-' to mean stdin.
  1439.  
  1440. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1441.  
  1442.     * cut.c (enlarge_line): Take an arg giving the required amount
  1443.     of space.  Change callers.
  1444.     (main): Don't allow -t'<TAB>' without -f.
  1445.     Make `delim' unsigned to fix sign extension problem in comparison.
  1446.  
  1447. Tue Jul 17 12:36:11 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
  1448.  
  1449.     * pr.c  Deleted excess whitespace from ends of lines.
  1450.         Modified to work with current version of getopt, which
  1451.         returns 1 instead of 0 for non-options.
  1452.         Reversed the meaning of the -f option, to be compatable
  1453.         with real pr.
  1454.  
  1455. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  1456.  
  1457.     * cmp.c (main, usage): Rename -L option to -c and don't have
  1458.     it imply -l. 
  1459.     (printc): Take an arg to specify number of chars to pad to,
  1460.     for column alignment.
  1461.     (cmp): Respect flag_print_chars in default output format.
  1462.     Align columns for cmp -cl.
  1463.  
  1464. Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
  1465.  
  1466.     * cmp.c: For +show-chars, have getopt return 'L' so
  1467.     `flag_print_chars' gets set.
  1468.  
  1469. Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
  1470.  
  1471.     * tac.c (main): Initialize fastmap and translate fields of
  1472.     regex before compiling it.
  1473.  
  1474. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1475.  
  1476.     * tac.c: Change +regexp to +regex for consistency with GNU find.
  1477.  
  1478. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1479.  
  1480.     * cat.c (cat): If FIONREAD is available, only use it if it is
  1481.     supported by the filesystem that the file is on.
  1482.  
  1483. Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1484.  
  1485.     * cat.c (main): Add a variable to control whether the check
  1486.     for input file == output file is made, because no values of
  1487.     st_dev and st_ino should be assumed to be available for this
  1488.     purpose.  Only do the check for regular files.
  1489.  
  1490.     * tac.c: Use bcopy instead of memcpy.
  1491.  
  1492. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  1493.  
  1494.     * head.c: Use longs instead of ints for file offsets, for 16
  1495.     bit machines.
  1496.  
  1497. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1498.  
  1499.     * cmp.c: Change some ints to longs for 16 bit machines.
  1500.     (bcmp_cnt): Make char-pointer counting slightly simpler.
  1501.  
  1502. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1503.  
  1504.     * cat.c (main): Allow input file to be output file for devices
  1505.     (ttys, etc.).  Check whether input file is output file when
  1506.     reading standard input.  Print any error messages for standard
  1507.     input. 
  1508.  
  1509.     * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
  1510.     machines as well as 32 bit ones.
  1511.     * cmp.c, tail.c: Use longs instead of ints for file offsets. 
  1512.  
  1513. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1514.  
  1515.     * cmp.c: Fix some exit statuses for POSIX.
  1516.  
  1517. Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
  1518.  
  1519.     * tac.c: Use regular expressions as the record boundaries.
  1520.     Give better error messages.
  1521.     Reformat code and make it more readable.
  1522.     (main): Use getopt_long to parse options.
  1523.     (tac_stdin): Do not make a temporary file if standard input
  1524.     is a file.
  1525.     (tac_file): New function.
  1526.     (tac): Take an open file desc as an arg.
  1527.     (output): Rewrite to use its own efficient buffering.
  1528.     (xmalloc, xrealloc, xwrite): New functions.
  1529.  
  1530. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1531.  
  1532.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  1533.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  1534.  
  1535. Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1536.  
  1537.     * comm.c (main): Pass the list of files to compare_files as a
  1538.     char ** instead of a char *.
  1539.     (compare_files): Make arg a char **.
  1540.  
  1541.     * uniq.c: Declare some functions as void.
  1542.     Change global vars `countmode' and `mode' from ints to enums.
  1543.     (main): Use getopt to parse options and support POSIX options.
  1544.     Don't use integer_arg to parse numbers, since `-#' can't be
  1545.     parsed that way using getopt.
  1546.     (find_field): Use isspace for finding fields boundaries.
  1547.  
  1548. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1549.  
  1550.     * comm.c (main): Call usage if given bad option or wrong
  1551.     number of args.  Exit with 0 status normally.
  1552.     (usage): New function.
  1553.     Declare some other functions as void.
  1554.  
  1555. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  1556.  
  1557.     * cmp.c (main, cmp, usage): Replace -q +quick option with -L
  1558.     +show-chars option to add ASCII representation of bytes to -l format.
  1559.  
  1560. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  1561.  
  1562.     * cmp.c (cmp): Change EOF message for POSIX compatibility.
  1563.     For -l format, clear bits > FF.
  1564.  
  1565. Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1566.  
  1567.     * tail.c: Move global `errors' into main instead of having
  1568.     nonfatal_perror set it.
  1569.     (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
  1570.     Return an error status.
  1571.     (file_lines, start_chars, start_lines): Reverse the meaning of
  1572.     the return value.
  1573.     (tail_lines, tail_chars): Account for that reversal.
  1574.  
  1575. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1576.  
  1577.     * head.c: Move global `errors' into main and have the various
  1578.     functions return an error status instead of setting it in
  1579.     nonfatal_perror. 
  1580.  
  1581. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  1582.  
  1583.     * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
  1584.       options specified), to compare the two blocks and count
  1585.       newlines simultaneously.
  1586.     * cmp.c New function: bcmp_cnt.
  1587.  
  1588.     * cmp.c (main): Test if output is redirected to /dev/null, and
  1589.       assume `-s' if this is so.
  1590.  
  1591. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1592.  
  1593.     * cat.c: Change `argbad' from a char to a short, so it will
  1594.     work on machines with unsigned chars.
  1595.  
  1596. Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1597.  
  1598.     * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
  1599.     Remove unneccessary variable `c1'.  If -l was given, increase
  1600.     `char_number' by the number of bytes read, after producing output,
  1601.     rather than by the offset of the first differing bytes, before
  1602.     producing output.
  1603.     Replace if-else-if constructions with case statements for clarity.
  1604.     (bcmp2): Rename `n' to `nread'.
  1605.  
  1606. Wed Dec 20 01:32:06 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1607.  
  1608.     * nl.c (proc_text): Use re_search instead of re_match.
  1609.  
  1610. Tue Dec 19 01:26:34 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1611.  
  1612.     * nl.c: Indent.  Un-nest statements.  Use GNU regexp functions
  1613.     instead of System V ones.  Move function declarations together.
  1614.     (quit): Remove useless function.
  1615.     (program_name): New variable for error messages.
  1616.     (main): Use perror in error message.
  1617.     (xmalloc): New function to replace myalloc.
  1618.     (myalloc): Function removed.
  1619.     Global: use program_name and xmalloc.
  1620.  
  1621. Sun Dec 17 00:36:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1622.  
  1623.     * uniq.c: Declare some functions.
  1624.     (main): Initialize infile and outfile.  Call usage if given
  1625.     invalid args.  Normally exit with 0 status instead of garbage.
  1626.     (usage): New function to print usage message and exit.
  1627.     (check_file): Remove unused variable.
  1628.     (readline): Compare against EOF, not < 0.
  1629.     (xmalloc, xrealloc): Return char *, not int.
  1630.     Ok to return 0 if 0 bytes requested.
  1631.     (lb1, lb2): Remove unused global vars.
  1632.     (concat): Remove unused function.
  1633.  
  1634. Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1635.  
  1636.     * comm.c: Remove unused global variables lb1, lb2.
  1637.     (main): Remove unneeded variable.
  1638.     (compare_files): Remove unused arg.
  1639.     (readline): un-nest assignment.  Test against EOF instead of < 0.
  1640.     (error): Print to stderr, not stdout.
  1641.     (xmalloc, xrealloc): Return char * instead of int.
  1642.     Returning 0 is ok if 0 bytes requested (ANSI C).
  1643.  
  1644.  
  1645. Local Variables:
  1646. mode: indented-text
  1647. left-margin: 8
  1648. version-control: never
  1649. End:
  1650.