📄 changelog
字号:
2001-08-04 Jim Meyering <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Add Makefile.cfg. * man/Makefile.am (EXTRA_DIST): Remove duplicate definition.2001-07-08 Jim Meyering <meyering@lucent.com> * src/tail.c (usage): Reformat so help2man generates a properly indented man page. Patch by Herbert Xu.2001-07-04 Jim Meyering <meyering@lucent.com> * Makefile.cfg: New file with package-specific definitions. * Makefile.am (EXTRA_DIST): Add Makefile.cfg.2001-07-01 Jim Meyering <meyering@lucent.com> * src/sort.c (usage): Suggest setting LC_COLLATE=C, rather than LC_ALL=C.2001-06-10 Jim Meyering <meyering@lucent.com> * tests/sort/Test.pm: Add a test based on a report from Herbert Xu.2001-05-20 Jim Meyering <meyering@lucent.com> * src/uniq.c: Rename new option values: s/all/precede/ and s/minimum/separate/. * tests/uniq/Test.pm: Reflect the above renamings.2001-05-12 Bruno Haible <haible@clisp.cons.org> * src/tail.c (parse_obsolescent_option): Accept a b suffix.2001-05-19 Jim Meyering <meyering@lucent.com> msgmerge-0.10.37 complains about some `invalid multibyte sequences.' * po/el.po: Remove the offending entries. * po/ko.po: Likewise. * po/zh.po: Likewise.2001-05-19 Jim Meyering <meyering@lucent.com> Support new modes for uniq's --all-repeated option. The default behavior is unchanged. * src/uniq.c: Include argmatch.h. (usage): Update. (check_file): Implement it. (main): Handle new, optional arguments. * tests/uniq/Test.pm: New tests for the above. Patch by Padraig Brady.2001-05-12 Bruno Haible <haible@clisp.cons.org> * src/tail.c (parse_obsolescent_option): Use t_count_lines, not count_lines, in error message.2001-05-05 Jim Meyering <meyering@lucent.com> * src/comm.c (usage): Correct description of -3. Reported by Soeren Sonnenburg.2001-04-22 Jim Meyering <meyering@lucent.com> * Version 2.0.14. * configure: Regenerate using a patched copy of autoconf-2.49e to work around a bug in its test for a working memcmp function.2001-03-28 Paul Eggert <eggert@twinsun.com> * src/cksum.c: Fix bugs when computing length of large files. Add overflow and write error checks. Use uint_fast32_t, not unsigned long, to do checksum calculation, as C99 says uint_fast32_t should be no slower and might be faster. Include <stdio.h> and "system.h" even if CRCTAB is defined, so that the code will compile if CRCTAB is defined. Include "human.h" if CRCTAB is not defined. (uint_fast32_t): Define if it appears that stdint.h didn't. (BIT, remainder, main, crctab): Use uint_fast32_t, not unsigned long, for checksums. (fill_r, remainder, main): Use ANSI prototypes. (fill_r, remainder, main): Omit duplicate code. (main): Use uintmax_t, not unsigned long, for file lengths. Use size_t, not long, for result of fread. Check for overflow when computing file lengths. Check for write error immediately after printing a line, so that we don't write to stdout indefinitely after an error.2001-04-14 Paul Eggert <eggert@twinsun.com> * src/sort.c (default_sort_size): Leave a 1/16 margin for RSS. Suggestion from Solar Designer.2001-04-14 Jim Meyering <meyering@lucent.com> * src/wc.c (usage): Tweak --help output: s/line,/newline,/2001-04-13 Jim Meyering <meyering@lucent.com> * src/sort.c (main): Add a comment justifying the use of `multi-character' rather than `multibyte' in a diagnostic. From Paul Eggert.2001-04-12 Paul Eggert <eggert@twinsun.com> * src/sort.c (RLIMIT_AS): Do not define; just use conditional code, since RLIMIT_RSS is similar (and is not standardized). (default_sort_size): Don't allocate more than the RSS limit, if this host has such a limit.2001-03-20 Paul Eggert <eggert@twinsun.com> * NEWS, doc/textutils.texi: sort now accepts long options and checks POSIX option syntax. * doc/textutils.texi: Document --, -, sort long options, and sort -o after files. * src/sort.c: Include <getopt.h>. (usage, main): Add support for long options, and check option syntax as POSIX requires, though (as usual for GNU apps) options can follow file names unless POSIXLY_CORRECT is set. Many diagnostic revamped. (long_options): New constant. (badfieldspec): New arg MSGID. Mark as noreturn. (parse_field_count): New arg MSGID; if null, just return null on error. (new_key): Renamed from key_init. All callers changed. Now allocates the new key.2001-03-18 Jim Meyering <meyering@lucent.com> * Version 2.0.13. * tests/Fetish.pm: If the $DJDIR envvar is defined, set SHELL to $DJDIR/bin/bash.exe. Patch from Richard Dawe, based on a suggestion from Eli Zaretskii.2001-03-17 Paul Eggert <eggert@twinsun.com> * src/sort.c, src/tail.c, src/uniq.c (usage): Warn that the +N form will be withdrawn. * doc/textutils.texi: Likewise.2001-03-08 Paul Eggert <eggert@twinsun.com> * NEWS, doc/textutils.texi: Document pr changes. * src/pr.c: Include mbswidth.h. (standard_header, header, test_suite): Remove. (date_format, date_text, file_text, header_width_available): New vars. (long_options, main, init_header, usage): Add new -D or --date-format option. (CHARS_FOR_DATE_AND_PAGE, T_BUF_FMT, T_BUF_SIZE, NO_DATE): Remove. (init_header): Allow arbitrary width for date format. Change "Page %5d" to "Page %d", since the code no longer assumes fixed width. Do not assume that localtime succeeds. (init_header, print_header, usage): Do not truncate headers. (init_header, print_header): Defer width calculations until page is printed, since "Page 100000" is wider than "Page 1". Count columns, not bytes, in page headers. Custom headers take up only the center, not the whole header. (print_header): Use printf rather than fprintf(stdout). * po/Makefile.in.in (install-data-yes): Install LC_TIME locale for all packages, not just for fileutils. (uninstall): Remove LC_TIME locale too. * src/sys2.h (INT_STRLEN_BOUND): New macro. * tests/pr/0F, tests/pr/0FF, tests/pr/2-S_f-t_notab, tests/pr/2-Sf-t_notab, tests/pr/2f-t_notab, tests/pr/2s_f-t_notab, tests/pr/2s_w60f-t_nota, tests/pr/2sf-t_notab, tests/pr/2sw60f-t_notab, tests/pr/2w60f-t_notab, tests/pr/3-0F, tests/pr/3-5l17f-t, tests/pr/3-FF, tests/pr/3a2l17-FF, tests/pr/3a3f-0F, tests/pr/3a3l15-t, tests/pr/3a3l8f-t, tests/pr/3b2l17-FF, tests/pr/3b3f-0F, tests/pr/3b3f-0FF, tests/pr/3b3f-FF, tests/pr/3b3l15-t, tests/pr/3b3l8f-t, tests/pr/3f-0F, tests/pr/3f-FF, tests/pr/3l17f-t, tests/pr/3l24-t, tests/pr/3ml17f-t, tests/pr/3ml24-FF, tests/pr/3ml24-t, tests/pr/3ml24-t-FF, tests/pr/4-7l24-FF, tests/pr/4l24-FF, tests/pr/a2l15-FF, tests/pr/a2l17-FF, tests/pr/a3-0F, tests/pr/a3f-0F, tests/pr/a3f-0FF, tests/pr/a3f-FF, tests/pr/a3l15-t, tests/pr/a3l17f-lm, tests/pr/a3l8f-t, tests/pr/b2l15-FF, tests/pr/b2l17-FF, tests/pr/b3-0F, tests/pr/b3f-0F, tests/pr/b3f-0FF, tests/pr/b3f-FF, tests/pr/b3l15-t, tests/pr/b3l17f-lm, tests/pr/b3l8f-t, tests/pr/FF, tests/pr/Ja3l17f-lm, tests/pr/Jb3l17f-lm, tests/pr/Jml17f-lm-lo, tests/pr/l17f-t, tests/pr/l24-FF, tests/pr/l24-t, tests/pr/ml17f-0F, tests/pr/ml17f-lm-lo, tests/pr/ml17f-t, tests/pr/ml17f-t-0F, tests/pr/ml20-FF-t, tests/pr/ml24-FF, tests/pr/ml24-t, tests/pr/ml24-t-FF, tests/pr/n+2-5l17f-0FF, tests/pr/n+2l17f-0FF, tests/pr/n+2l17f-bl, tests/pr/n+3-7l24-FF, tests/pr/n+3l17f-0FF, tests/pr/n+3l17f-bl, tests/pr/n+3ml13f-bl-FF, tests/pr/n+3ml17f-bl-tn, tests/pr/n+3ml17f-tn-bl, tests/pr/n+4-8a2l17-FF, tests/pr/n+4b2l10f-0FF, tests/pr/n+5-8b3l10f-FF, tests/pr/n+5a3l6f-0FF, tests/pr/n+6a2l17-FF, tests/pr/n+6b3l6f-FF, tests/pr/n+7l24-FF, tests/pr/n+8l20-FF, tests/pr/nJml17f-lmlmlo, tests/pr/nJml17f-lmlolm, tests/pr/nl17f-bl, tests/pr/nN1+3l17f-bl, tests/pr/nN15l17f-bl, tests/pr/nSml13-bl-FF, tests/pr/nSml13-t-t-FF, tests/pr/nSml13-t-tFFFF, tests/pr/nSml17-bl-FF, tests/pr/nSml17-t-t-FF, tests/pr/nSml17-t-tFFFF, tests/pr/o3a3l17f-tn, tests/pr/o3a3Sl17f-tn, tests/pr/o3a3Snl17f-tn, tests/pr/o3b3l17f-tn, tests/pr/o3b3Sl17f-tn, tests/pr/o3b3Snl17f-tn, tests/pr/o3Jml17f-lm-lo, tests/pr/o3ml17f-bl-tn, tests/pr/o3mSl17f-bl-tn, tests/pr/o3mSnl17fbltn, tests/pr/Test.pm, tests/pr/W-72l17f-ll, tests/pr/W20l17f-ll, tests/pr/W26l17f-ll, tests/pr/W27l17f-ll, tests/pr/W28l17f-ll, tests/pr/W35a3l17f-lm, tests/pr/W35b3l17f-lm, tests/pr/W35Ja3l17f-lm, tests/pr/W35Jb3l17f-lm, tests/pr/W35Jml17f-lmlo, tests/pr/W35ml17f-lm-lo, tests/pr/W72Jl17f-ll, tests/pr/w72l17f-ll: Adjust to minor spacing changes in pr headers.2001-03-11 Paul Eggert <eggert@twinsun.com> * src/sort.c (die): New message arg, to describe failures better. All callers changed.2001-03-11 Paul Eggert <eggert@twinsun.com> * src/sort.c: Decrease buffer size when only merging or checking. (sort_size): Now the user-specified sort size. (MIN_MERGE_BUFFER_SIZE): New macro. (MIN_SORT_SIZE): Use it. (merge_buffer_size): New variable. (fillbuf): Increase merge_buffer_size if a longer line is encountered. (checkfp, mergefps): Do not allocate a buffer smaller than merge_buffer_size. (sort): Use the default_sort_size if sort_size is zero. (main): Do not set sort_size to default_sort_size.2001-03-06 Paul Eggert <eggert@twinsun.com> * src/sort.c (sort): If all the input files are empty, create an empty output file. * tests/sort/Test.pm: Test for this.2001-03-13 Jim Meyering <meyering@lucent.com> * src/sort.c (merge): Move declarations of local variables into the inner scope where they're used. (sort): Likewise.2001-03-06 Paul Eggert <eggert@sic.twinsun.com> Avoid the need for a copy of the input file when the input and output overlap, e.g. 'sort F -o F'. With -m, though, a copy is still needed sometimes. * doc/textutils.texi: 'sort F -o F' no longer needs to copy F. * src/sort.c: Do not include closeout.h. (xfopen): Use stdout if *how != 'r'. (mergefps): Remove FPS arg. Open all input files, and close all files when done. If OFP is null, open the output file (but after opening input files). All callers changed. (first_same_file): New function. (sort, merge): Remove arg OFP; we now open the output file as needed. All callers changed. (merge): New arg MAX_MERGE. All callers changed. (sort): For "sort F -o F", close the input before opening the output. (main): Do not use close_stdout; 'sort' and 'merge' now close stdout. (This also fixes a close-stdout-twice bug.) Remove test for overlapping input and output files, as 'sort' no longer needs to worry about overlap, and 'merge' checks for overlap itself. Use first_same_file to inform 'merge' about how much to merge at the top level, to avoid overlap.2001-03-12 Jim Meyering <meyering@lucent.com> `fmt --prefix=S' would not work properly for any string S containing a byte with the high bit set. * src/fmt.c (prefix): Declare to be of type unsigned char, not `char'. (get_prefix): Likewise for local, `p'. Reported by Fran鏾is Pinard. Add a test for the above-fixed problem. * tests/fmt: New directory/files. * configure.in (AC_OUTPUT): Add tests/fmt/Makefile. * tests/Makefile.am (SUBDIRS): Add fmt.2001-03-05 Andreas Schwab <schwab@suse.de> * src/tac.c (save_stdin): Use mkstemp to create temporary file.2001-03-09 Jim Meyering <meyering@lucent.com> * Makefile.maint (my_distdir): Define new variable, and use this in place of most old uses of $(distdir). * tests/help-version: Ensure that /dev/full is a character device (using test -c) as well as being writable, before trying to write to it. Otherwise, the test could mistakenly append a newline to an existing, regular, writable, /dev/full file. Suggested by Ulrich Drepper.2001-03-08 Jim Meyering <meyering@lucent.com> * tests/sha1sum/sample-vec: Insert the `--text' argument for each test. Reported by Matthew Smith.2001-03-04 Jim Meyering <meyering@lucent.com> * Makefile.maint (my_distdir): Define. Use it in place of $(distdir) almost everywhere. * Version 2.0.12. * Makefile.maint (alpha): Use $(PACKAGE)-$(VERSION), not $(distdir), since the latter now has a `$(top_distdir)/' prefix.2001-03-01 Paul Eggert <eggert@twinsun.com> * src/sort.c (die): New function. (create_temp_file, xfopen, xfclose, write_bytes, sort_buffer_size, fillbuf, main): Use it to regularize error messages. The only change in behavior is that write_bytes and the final close used to say "write error" but now give just the output file name, which should be enough.2001-03-01 Paul Eggert <eggert@twinsun.com> * src/sort.c (xfclose): Add FILE arg, and report the file name on error. All callers changed.2001-03-01 Paul Eggert <eggert@twinsun.com> * src/sort.c (main): When fclose (stdin) fails, do not mention the output file in the error message; mention "-" instead.2001-02-28 Paul Eggert <eggert@twinsun.com> * src/sort.c (xfopen): Set have_read_stdin to 1 only if file is "-". Use fopen_safer, not fopen, to avoid subtle bugs when fopen returns stdin, stdout, or stderr. (xfclose): stdout is no longer a special case. (main): Close output file, don't just flush it; there might be an error on the close.2001-02-27 Paul Eggert <eggert@twinsun.com> * src/sort.c (initbuf): If the desired size cannot be allocated, repeatedly halve it until allocation succeeds. Reported by Solar Designer.2001-02-26 Paul Eggert <eggert@twinsun.com> * src/sort.c (parse_field_count): Comment fix.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -