📄 changelog
字号:
* src/fold.c (main): Fix bug: -- -N was treated as -N --.2002-02-01 Jim Meyering <meyering@lucent.com> * src/tail.c (start_lines): Handle the case in which bytes_read is zero.2002-01-28 Jim Meyering <meyering@lucent.com> * Makefile.maint (ac-check): Remove, now that we no longer have to duplicate that information. (local-check): Remove ac-check. * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d. * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro. (ALL_LINGUAS): Add the bokm錶 dialect of Norwegian (nb).2002-01-27 Jim Meyering <meyering@lucent.com> tail -n +2 would perform an extra read after encountering EOF * src/tail.c (start_lines): Detect EOF, inform caller. (tail_lines): Upon EOF in start_lines, return immediately.2002-01-22 Jim Meyering <meyering@lucent.com> * Version 2.0.20.2002-01-22 Paul Eggert <eggert@twinsun.com> * src/od.c (skip): Remove redundant check for overflow. fseeko's seek argument is already known to be in range, since it is less than the file size.2002-01-22 Jim Meyering <meyering@lucent.com> * po/POTFILES.in: Add lib/xmemcoll.c.2002-01-22 Paul Eggert <eggert@twinsun.com> * src/tac.c (save_stdin): Report proper errno value after fwrite failures. Do not bother to rewind the temp file, as it'll be read backwards anyway.2002-01-22 Paul Eggert <eggert@twinsun.com> * src/ptx.c (swallow_file_in_memory): Work even if `open' returns 0. Check for `close' error.2002-01-22 Paul Eggert <eggert@twinsun.com> Port to glibc 2.2.5, whose mmap stdio positions the underlying file descriptor at a nonzero offset after an fopen. * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO. * src/od.c (skip): Use fseeko rather than lseek. (Also, check for overflow when converting uintmax_t to off_t.) * src/sys2.h (EOVERFLOW, fseeko): New macros.2001-01-21 Paul Eggert <eggert@twinsun.com> * src/comm.c: Include xmemcoll.h, not memcoll.h. Use xmemcoll instead of memcoll. * src/join.c: Likewise. * src/sort.c: Likewise. * src/sort.c (die): Do not invoke cleanup; atexit does this now. (main): Use atexit to invoke cleanup on exit. Set xmemcoll_exit_failure to SORT_FAILURE.2002-01-20 Paul Eggert <eggert@twinsun.com> * src/comm.c (compare_files): Don't assume that the difference between two size_t values can be stored in an int; this doesn't work, for example, on 64-bit Solaris. * src/sort.c (CMP_WITH_IGNORE): Likewise. * src/join.c (keycmp): Likewise. Also, fix the type of two locals to be size_t instead of int.2002-01-20 Paul Eggert <eggert@twinsun.com> * src/csplit.c: Don't include "xalloc.h", as system.h already does that via sys2.h. * src/sort.c: Likewise.2002-01-19 Jim Meyering <meyering@lucent.com> * configure.ac: Remove code that set LIBOBJS in support of ansi2knr. The latest version of autoconf objected to it, and besides, I don't care too much about K&R support these days.2002-01-18 Jim Meyering <meyering@lucent.com> Fix tr so it no longer gets a failed assertion for [::] or [==]. * src/tr.c (xmemdup): Rename from `substr' and rewrite to take only pointer/length parameters. (build_spec_list): Update sole caller. Properly diagnose the invalid specs [::] and [==]. Pawel Prokop reported that `tr '[::]' x' elicits a failed assertion. * tests/tr/Test.pm: Add tests for the above fix.2002-01-14 Paul Eggert <eggert@twinsun.com> * src/sort.c (main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT. * src/tail.c (parse_obsolescent_option): Likewise. * src/uniq.c (main): Likewise.2002-01-14 Paul Eggert <eggert@twinsun.com> Add support for POSIX 1003.1-2001, which requires removal for support of obsolete "+" option syntax in sort, tail, and uniq. * NEWS: Document this. * src/sort.c (usage, main): Implement this. * src/tail.c (usage, parse_obsolescent_option): Likewise. * src/uniq.c (usage, main): Likewise. * src/system.h (_POSIX2_VERSION, POSIX2_VERSION): New macros. * src/sys2.h (ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.2002-01-14 Jim Meyering <meyering@lucent.com> * tests/misc/sort: New test, for just-fixed bug. * tests/misc/Makefile.am (TESTS): Add sort. (TESTS_ENVIRONMENT): Add PROG=$$tst. This is a gross kludge that depends on the name of an automake-generated local variable.2002-01-13 Paul Eggert <eggert@twinsun.com> * src/sort.c (mergefps): Fix bug when eliminating empty files. Bug reported by James Hutt.2002-01-13 Jim Meyering <meyering@lucent.com> * tests/help-version: Tweak to work with the programs in diffutils.2002-01-09 Jim Meyering <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Turkish (tr).2001-12-18 Paul Eggert <eggert@twinsun.com> * src/sort.c (usage, specify_sort_size): Accept 'K' (which is now preferred, as it connotes 1024) as well as 'k'. * NEWS: Document this change.2001-12-17 Jim Meyering <meyering@lucent.com> * src/uniq.c (usage): Remove stray `)' in --help output. Reported by Padraig Brady. * Makefile.maint (real_dir): Remove unused variable. (url_dir_list): Don't set define it here, but... * Makefile.cfg (url_dir_list): ...define it here instead. (hosts, a_host, b_host): Remove now-unused variables. (alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.2001-12-12 Bruno Haible <bruno@clisp.org> Paul Eggert <eggert@twinsun.com> * src/wc.c (wc): Use ISSPACE and iswspace in addition to hard-coding the ASCII space character.2001-12-08 Jim Meyering <meyering@lucent.com> * Version 2.0.19. * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's no longer available at that location.2001-12-03 Jim Meyering <meyering@lucent.com> * src/od.c, src/tail.c, src/tr.c (usage): I will not split translatable strings in the middle of a sentence. I will not split translatable strings in the middle of a sentence. I will not split translatable strings in the middle of a sentence. ... * src/join.c (usage): Merge lone "\n" into adjacent string. * src/md5sum.c (usage): Likewise. * src/paste.c (usage): Likewise. Reported by Karl Eichwalder.2001-12-02 Jim Meyering <meyering@lucent.com> * Makefile.maint (emit-upload-commands): Fix typo: s/distdir/PACKAGE/.2001-12-01 Jim Meyering <meyering@lucent.com> * Version 2.0.18. * Makefile.maint (po-check): Check for uses of _() not just in .c files, but also in .h files. Ideally, there would be just one translation for all --help and --version description strings. Before this change, they differed only in the number of blanks between the option name and the description. Someday gettext may be smart enough to merge such strings and to reconstruct the proper spacing at run time. In the mean time, now there is one string for each, and those descriptions in the --help output are no longer aligned with the others. * src/sys2.h (HELP_OPTION_DESCRIPTION): New macro. (VERSION_OPTION_DESCRIPTION): New macro. * src/cat.c, src/cksum.c, src/comm.c, src/csplit.c, src/cut.c: * src/expand.c, src/fmt.c, src/fold.c, src/head.c, src/join.c: * src/md5sum.c, src/nl.c, src/od.c, src/paste.c, src/pr.c, src/ptx.c: * src/sort.c, src/split.c, src/sum.c, src/sys2.h, src/tac.c: * src/tail.c, src/tr.c, src/tsort.c, src/unexpand.c, src/uniq.c: * src/wc.c (usage): Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION instead of hard-coding --help and --version descriptions. * po/POTFILES.in: Add src/sys2.h.2001-11-27 Jim Meyering <meyering@lucent.com> * src/system.h (SET_MODE) [O_BINARY]: Call setmode, not set_mode. From Matthew Smith.2001-11-26 Jim Meyering <meyering@lucent.com> * src/cat.c (cat): Don't test whether the full_write return value (of type size_t) is less than 0. Reported by Nelson H. F. Beebe, as a warning from Irix 6.5's C compiler.2001-11-25 Jim Meyering <meyering@lucent.com> * src/cksum.c (usage): Indent --help and --version strings to start in the 7th column. * src/pr.c (usage): Likewise.2001-11-23 Jim Meyering <meyering@lucent.com> Factor out some common strings to make translation easier. * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fmt.c, fold.c: * head.c, join.c, md5sum.c, nl.c, od.c, paste.c, pr.c, ptx.c: * sort.c, split.c, sum.c, tac.c, tail.c, tr.c, tsort.c, unexpand.c: * uniq.c, wc.c: Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says ``Mandatory arguments to long options are mandatory for short options too.'' Suggestion from Karl Eichwalder. * src/ptx.c (main): Don't split copyright string in the middle of a sentence.2001-11-22 Jim Meyering <meyering@lucent.com> * Version 2.0.17. csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2 * src/csplit.c: No longer include assert.h. (process_line_count): Remove invalid assertion. The test that caused the failure has been in the code since before 1992-11-08, but since 1996 it's been in an assertion. That assertion was disabled by default until textutils-1.22g (1999-01-10). Reported by Eric Pemente. * tests/misc/csplit: New file. Test for the above fix and others. * tests/misc/Makefile.am (TESTS): Add csplit. * tests/Makefile.am (EXTRA_DIST): Add lang-default.2001-11-19 Jim Meyering <meyering@lucent.com> * src/tail.c (xlseek): New function. Call it instead of lseek, in most cases, so any failure is reported.2001-11-18 Jim Meyering <meyering@lucent.com> * config.sub: Update from master repository. * config.guess: Likewise.2001-11-17 Jim Meyering <meyering@lucent.com> * Makefile.cfg ($(srcdir)/m4/jm-glibc-io.m4): Use $(move_if_change), not the literal `move-if-change'. * src/tail.c (tail_forever): Add a cast. Avoid compiler warnings. * src/fmt.c: Remove `unsigned' attribute from type of global `prefix'. (copy_rest): Cast to (unsigned char *) before dereferencing. (get_prefix): Likewise. * configure.ac: Replace use of the one-arg form of AC_INIT with a use of the 3-arg form and a use of AC_CONFIG_SRCDIR.2001-11-14 Paul Eggert <eggert@twinsun.com> * src/tail.c (file_lines): Remove unnecessary cast. (tail_lines): Could have called file_lines even though the first lseek failed. Fix that.2001-11-14 Jim Meyering <meyering@lucent.com> * src/tail.c (file_lines): Add a parameter, start_pos. Work properly even when the read pointer is not at beginning of file. (tail_lines): Call file_lines for any regular file, as long as lseek can be used to seek to its end, not just when the initial read pointer is at beginning of file.2001-11-13 Jim Meyering <meyering@lucent.com> * src/tail.c (tail_lines): Move declaration of local `length' into scope where it's used. (tail_file): Likewise for local `stats'. * tests/tail-2/Makefile.am (TESTS): Add proc-ksyms and start-middle. * tests/tail-2/start-middle: New test, for the bug fixed on 1995-07-24. `tail /proc/ksyms' would segfault on Linux. * src/tail.c (tail_lines): Use status of lseek (...SEEK_END) call in deciding whether to call file_lines or pipe_lines. From Herbert Xu. * tests/tail-2/proc-ksyms: New test, for the above fix.2001-11-11 Jim Meyering <meyering@lucent.com> * src/od.c (struct tspec): Declare function pointer with prototype. * src/sum.c (main): Declare function pointer with prototype. * src/tsort.c (count_items): Mark parameter as unused. * src/sort.c (struct_month_cmp): Guard definition with the same cpp condition that guards the use. * src/tail.c (xwrite): Remove assertion that size_t N >= 0. * src/pr.c (struct COLUMN) [print_func]: Declare with a protype. (struct COLUMN) [char_func]: Declare with a protype. * src/od.c (parse_old_offset): Declare to be static. * src/join.c (make_blank): Declare to be static. (prfield): Declare local to be of type size_t, not int. Some help strings were very long. Split them so that they're no longer than the magic length 509 that ISO C89 compilers are required to support. Sorry, translators :-( * src/md5sum.c (usage): Split --help output into smaller pieces. * src/ptx.c (main, usage): Likewise. * src/fmt.c (usage): Likewise. * src/wc.c (usage): Split --help output into smaller pieces. Use fputs, not printf. * src/cat.c (usage): Likewise. * src/cut.c (usage): Likewise. * src/csplit.c (usage): Likewise. * src/expand.c (usage): Likewise. * src/head.c (usage): Likewise. * src/join.c (usage): Likewise. * src/nl.c (usage): Likewise. * src/od.c (usage): Likewise. * src/pr.c (usage): Likewise. * src/sort.c (usage): Likewise. * src/split.c (usage): Likewise. * src/tac.c (usage): Likewise. * src/tr.c (usage): Likewise.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -