📄 changelog
字号:
2002-08-08 Jim Meyering <meyering@lucent.com> * Version 2.0.15.2002-08-05 Paul Eggert <eggert@twinsun.com> Fix some minor time-related bugs with POSIX time arguments. Some valid time stamps were being rejected (notably -1, and time stamps before 1900 on 64-bit hosts). And some invalid time stamps were being accepted, e.g. September 31. * src/date.c (main): Adjust to posixtime signature change.2002-08-05 Jim Meyering <meyering@lucent.com> * configure.ac: Change $am_cv_sys_posix_termios to $ac_cv_sys_posix_termios. From Andreas Schwab.2002-08-04 Jim Meyering <meyering@lucent.com> * Version 2.0.14.2002-07-30 Paul Eggert <eggert@twinsun.com> * src/chroot.c (main): Exit with status 126 or 127 when execvp or execv fails, for consistency with POSIX commands like env and nice. * src/su.c (run_shell): Likewise.2002-07-29 Paul Eggert <eggert@twinsun.com> * src/nohup.sh: Change behavior to conform to POSIX 1003.1-2001: - Do not adjust scheduling priority. - Redirects stderr to stdout, if stderr is not a terminal. - Exit status is now 126 if command was found but not invoked, 127 if nohup failed or if command was not found. Fix bug: command was run if nohup.out wasn't writeable. * NEWS, doc/coreutils.texi: Document the above.2002-07-28 Jim Meyering <meyering@lucent.com> * configure.ac: Require automake-1.6b.2002-07-27 Jim Meyering <meyering@lucent.com> * Version 2.0.13. * src/who.c (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions. Now they're defined in readutmp.h. (print_deadprocs): Remove obsolete FIXME comment.2002-07-07 Paul Eggert <eggert@twinsun.com> * src/nohup.sh: Port to POSIX 1003.1-2001 "nice", which requires the option "-n 5" rather than "-5". This matters with GNU "nice" if the user has set the _POSIX2_VERSION environment variable.2002-07-24 Jim Meyering <meyering@lucent.com> * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Exempt false.2002-07-20 Jim Meyering <meyering@lucent.com> * Upgrade to cvs automake -- required to work with 2.53b. * configure.ac: Require automake-1.6a. * tests/Makefile.am (TESTS_ENVIRONMENT): Remove now-unused parts of this definition. (EXTRA_DIST): Add priv-check. * tests/priv-check: New file. * Upgrade to gettext-0.11.3. * Upgrade to autoconf-2.53b.2002-07-18 Jim Meyering <meyering@lucent.com> * src/uname.c (main): Test sysctl(...) >= 0, not == 0, since on NetBSD the return value may well be positive. Use one-line aggregate initializations. Use tightly scoped static buffers to avoid warnings about unused variables on some systems.2002-05-07 Paul Eggert <eggert@twinsun.com> Add support for BSD-style sysctl to get the strings needed for uname -p and uname -i. Unfortunately the different BSDs vary, but I've surveyed FreeBSD, NetBSD, and OpenBSD. * src/uname.c (UNAME_HARDWARE_PLATFORM, UNAME_PROCESSOR): New macros. (main): Use them, along with sysctl, to support uname -i and uname -p on BSD hosts.2002-07-17 Jim Meyering <meyering@lucent.com> * src/uptime.c (print_uptime): Restore use of (equivalent, but more readable) `>=' from Bruno's patch. * configure.ac (jm_BOOT_TIME): Remove. (moved/renamed to m4/boottime.m4) Use the replacement: GNULIB_BOOT_TIME.2002-07-13 Bruno Haible <bruno@clisp.org> * src/uptime.c: Include sys/sysctl.h. (print_uptime): Add support for determining the boot time on FreeBSD.2002-07-15 Jim Meyering <meyering@lucent.com> * src/uptime.c (print_uptime): Use STREQ in place of !strcmp. * src/uname.c (main): Remove unnecessary uses of `defined' when operating on `HAVE_...' symbols. Remove unnecessary parentheses.2002-07-02 Jim Meyering <meyering@lucent.com> * src/basename.c, src/chroot.c, src/date.c, src/dirname.c (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. * src/echo.c, src/env.c, src/expr.c, src/factor.c: Likewise. * src/hostname.c, src/id.c, src/kill.c, src/logname.c: Likewise. * src/nice.c, src/pathchk.c, src/pinky.c, src/printenv.c: Likewise. * src/printf.c, src/pwd.c, src/seq.c, src/sleep.c, src/stty.c: Likewise. * src/su.c, src/tee.c, src/test.c, src/true.c, src/tty.c: Likewise. * src/uname.c, src/uptime.c, src/users.c, src/who.c: Likewise. * src/whoami.c, src/yes.c: Likewise. * src/Makefile.am (.sh): Also substitute @PACKAGE_BUGREPORT@. * src/groups.sh (usage): Use @PACKAGE_BUGREPORT@, rather than hard-coding a deprecated address. * src/nohup.sh (usage_help): Likewise. * src/date.c (usage): Mention that the expansions of %p and %P are empty in many locales. From matthew arnison.2002-06-22 Jim Meyering <meyering@lucent.com> * configure.ac: Invoke AC_GNU_SOURCE very early.2002-05-24 Jim Meyering <meyering@lucent.com> * tests/nice: Move this file... * tests/misc/nice: ...to here. * tests/Makefile.am (TESTS): Remove nice. * tests/misc/Makefile.am (TESTS): Add nice. * configure.ac (AC_CONFIG_FILES): Add tests/misc/Makefile. * src/pathchk.c (validate_path): Compare the result of the function -- not its (constant) address -- against zero. Patch from Tim J. Robbins <tjr@FreeBSD.ORG> * tests/misc/pathchk1: New test for the above. * tests/misc: New directory. * tests/Makefile.am (SUBDIRS): Add misc. * tests/misc/Makefile.am: New file.2002-05-03 Jim Meyering <meyering@lucent.com> * src/uptime.c (print_uptime): Use ngettext for day/days and user/users. Suggestion from Karl Eichwalder. * src/kill.c (usage): Add a little to the description of --list. Uncapitalize first word and remove period at end of each one line option description. * src/who.c (usage): Tweak description of --users. From Karl Eichwalder.2002-04-29 Jim Meyering <meyering@lucent.com> * Version 2.0.12. Avoid warnings from gcc. * src/who.c (PIDSTR_DECL_AND_INIT): Cast ut_pid value to int. (make_id_equals_comment): Cast sizeof expression (used as field width argument) to `int'. * configure, config.hin, Makefile.in, etc.: Regenerate using autoconf-2.53a.2002-04-28 Jim Meyering <meyering@lucent.com> * src/who.c: Don't include xalloc.h. It's already included via system.h.2002-04-28 Paul Eggert <eggert@twinsun.com> * src/kill.c: Rewrite from scratch. Support everything required by POSIX 1003.1-2001; when this conflicts with Bash, stick with POSIX. The conflicts are kill -l output format, and lower case signal names preceded by `-' (e.g., "kill -hup" is no longer supported). Remove -L or --long-list option. Add -t or --table option. Rename --sigspec to --signal; remove --signum and do not advertise obsolescent option -n. Use str2sig and str2sig to convert between signal names and numbers. * doc/coreutils.texi (kill invocation): Document the above. Document POSIX signals better. * lib/sig2str.h, lib/sig2str.c: New files. * configure.ac (AC_CHECK_DECLS): Add str2signal, strtoimax, sys_siglist, _sys_siglist. * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h. * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str). * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR. (jm_PREREQ_SIG2STR): New macro.2002-04-28 Jim Meyering <meyering@lucent.com> * src/test.c (test_syntax_error): Add `const' to paramater declarations to avoid new warning from gcc. (integer_expected_error): Likewise.2002-04-25 Jim Meyering <meyering@lucent.com> * configure.ac (AM_GNU_GETTEXT): Add external arg. (AC_CONFIG_FILES): Remove intl/Makefile. * Makefile.am (SUBDIRS): Remove intl. * src/Makefile.am (INCLUDES): Remove -I../intl.2002-04-16 Jim Meyering <meyering@lucent.com> * src/who.c (BOOT_TIME): Define. (NEW_TIME): Define to 0, not INT_MAX. (UT_PID, UT_ID, UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define. Replace literal uses of ut_pid, ut_id, and ut_exit members with uses through macros. (make_id_equals_comment): New function, factored out of three others. (UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define. (print_line): Use "%-8.8s" for the format: the user name is not always NUL terminated. (scan_entries) [need_users]: Use IS_USER_PROCESS, so that this works even on systems without ut_type.2002-04-15 Jim Meyering <meyering@lucent.com> * src/who.c: Include xalloc.h. Use xmalloc everywhere, not malloc.2002-04-12 Jim Meyering <meyering@lucent.com> * src/Makefile.am (LDADD): List ../lib/libfetish.a both before and after @LIBINTL@. Thanks to Paul Eggert for the fix and to Bruno Haible for diagnosing the problem.2002-02-26 Paul Eggert <eggert@twinsun.com> * src/test.c (age_of): Return -1 and 0 rather than 0 and 1. Might as well keep it simple, and like bash. (binary_operator): Fix bug with -nt and -ot, when one of the files did not exist. We want to be compatible with the ksh93 documentation, and with Bash.2002-03-17 Jim Meyering <meyering@lucent.com> * src/seq.c (usage): Mention that --format=FORMAT must be a *floating-point* format, also in description of that option. Reported by Karl Eichwalder. (usage): Also add the `=' signs here: --format=FORMAT, --separator=STRING.2002-03-16 Jim Meyering <meyering@lucent.com> * src/Makefile.am (datadir): Don't override $(datadir) which might be set by --datadir and different from $(prefix)/share. Patch from Albert Chin-A-Young.2002-03-10 Jim Meyering <meyering@lucent.com> * configure.ac (AM_INIT_AUTOMAKE): Specify here the required version of automake (1.6), and options (gnits dist-bzip2), rather than... * Makefile.am (AUTOMAKE_OPTIONS): ...here. Remove definition.2002-03-09 Jim Meyering <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Remove config/config.rpath, now that automake knows about it.2002-03-05 Jim Meyering <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Add config/config.rpath.2002-03-02 Jim Meyering <meyering@lucent.com> * tests/nice: Export _POSIX2_VERSION=199209, so we can continue to exercise the now-obsolete options. * Makefile.maint (strftime-check): Add `N'.2002-02-27 Paul Eggert <eggert@twinsun.com> * doc/coreutils.texi (Time directives): Add %N for nanoseconds. This documents the recent change to 'ls'. But for this to be accurate we also have to update 'date', as follows: * src/Makefile.am (date_LDADD): New macro. * src/date.c: Include timespec.h. (strftime, time, stime): Remove declarations; no longer needed. (usage): Document %N. (main): Use gettime rather than time to get the time of day, so that we can get fractional times. Similarly for settime and stime, so that we can set fractional times (though this currently is not available to the user since we don't parse fractional times; add FIXMES for that). Check for gettime failures; e.g. this can occur if it is past 2038 and we are a 32-bit app running on a 64-bit OS. Get fractional part of file time stamps. Do not falsely report failures just because time_t happens to be -1 (e.g. a file time stamp 1 second before the epoch). (show_date): 2nd arg is now struct timespec, not time_t. All uses changed. Use nstrftime rather than strftime, so that we can format fractional seconds.2002-02-24 Jim Meyering <meyering@lucent.com> * src/nice.c: Include posixver.h. * src/date.c: Likewise.2002-02-17 Jim Meyering <meyering@lucent.com> * ABOUT-NLS, intl/*: Update to Gettext 0.11. * INSTALL: Update to Autoconf 2.52h. * src/Makefile.am (datadir): Use `share' in place of @DATADIRNAME@, per Gettext-0.11. (LDADD): Use @LIBINTL@ instead of @INTLLIBS@, per Gettext-0.11. * configure.ac (AC_CONFIG_AUX_DIR): New macro invocation. (ALL_LINGUAS): Remove: now in po/LINGUAS as per Gettext 0.11. * config: New subdirectory, containing the following files from .: config.guess, config.sub, depcomp, missing, install-sh, mkinstalldirs. Move the following files here from doc: texinfo.tex, mdate-sh.2002-02-15 Paul Eggert <eggert@twinsun.com> Add support for _POSIX2_VERSION, which lets you pick which POSIX version you want the utilities to conform to. Remove warnings about failure to conform to a future POSIX version. * src/date.c (ISO_8601_OPTION): Remove; no longer needed. All uses changed to back to the corresponding short options. (short_options): Remove; no longer needed. (COMMON_SHORT_OPTIONS): New macro. * src/date.c (usage): Document only the intersection of the old and new behaviors, to encourage portability. (main): Parse options using POSIX 1003.1-2001 rules if conforming to that standard. Do not warn of obsolete options. * src/nice.c (usage, main): Likewise.2002-02-11 Paul Eggert <eggert@twinsun.com> * src/nice.c (main): Output warnings only if OBSOLETE_OPTION_WARNINGS.2002-02-11 Jim Meyering <meyering@lucent.com> * src/date.c (usage): Describe %F, %g, %G, %P, and %R. Tweak the description of %p. * tests/stty/basic-1: Use `tail -n +2', rather than `tail +2'.2002-02-03 Paul Eggert <eggert@twinsun.com> Add more support for POSIX 1003.1-2001, which requires removal for support of obsolete "-DIGITS" option syntax in nice, and which prohibits options with optional arguments like date's -I option. * NEWS, coreutils.texi: Document this. * src/date.c (ISO_8601_OPTION): New enum value. (long_options): Use it. (short_options): New constant. * src/date.c (usage): Document the change. * src/nice.c (usage): Likewise. * src/date.c (main): Conform to POSIX 1003.1-2001 if POSIX2_VERSION says to, otherwise warn of obsolete usage if OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT. * src/nice.c (main): Likewise.2002-02-02 Bruno Haible <bruno@clisp.org> * printf.c (print_esc): Call print_unicode_char with exit_on_error = false.2002-01-28 Jim Meyering <meyering@lucent.com> * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d. * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro.2002-01-22 Jim Meyering <meyering@lucent.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -