📄 changelog
字号:
* po/POTFILES.in: Add lib/xmemcoll.c and src/sys2.h.2002-01-21 Jim Meyering <meyering@lucent.com> * Makefile.maint (strftime-check): New rule. (local-check): Convert this target to a list. Update uses. Mark them as .PHONY. (header-check): New rule. (local-check): Add header-check. * src/dirname.c: Don't include "xalloc.h", as system.h already does that via sys2.h. * src/expr.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-14 Paul Eggert <eggert@twinsun.com> * src/date.c, src/logname.c, src/pathchk.c: Comment fixes to bring us up to date with respect to POSIX 1003.1-2001. In particular, POSIX.2 is now obsolete.2001-12-28 Jim Meyering <meyering@lucent.com> * configure.ac (ALL_LINGUAS): Add Catalan (ca).2001-12-17 Jim Meyering <meyering@lucent.com> * 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-15 Jim Meyering <meyering@lucent.com> * src/basename.c, src/chroot.c, src/date.c, src/dirname.c, src/echo.c, * src/env.c, src/expr.c, src/factor.c, src/hostid.c, src/hostname.c, * src/id.c, src/kill.c, src/logname.c, src/nice.c, src/pathchk.c, * src/pinky.c, src/printenv.c, src/printf.c, src/pwd.c, src/seq.c, * src/sleep.c, src/stty.c, src/su.c, src/tee.c, src/test.c, src/true.c, * src/tty.c, src/uname.c, src/uptime.c, src/users.c, src/who.c, * src/whoami.c, src/yes.c (usage): Use fputs, not printf. Split --help output into smaller pieces. Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION instead of hard-coding --help and --version descriptions.2001-12-08 Jim Meyering <meyering@lucent.com> * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's no longer available at that location.2001-11-25 Jim Meyering <meyering@lucent.com> * basename.c, dirname.c, expr.c, factor.c, hostname.c (usage): * logname.c, printenv.c, printf.c, pwd.c, sleep.c, test.c (usage): * true.c, whoami.c, yes.c (usage): Indent --help and --version strings to start in the 7th column.2001-11-17 Jim Meyering <meyering@lucent.com> * 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-11 Jim Meyering <meyering@lucent.com> * src/Makefile.am (printf_LDADD): Reflect spelling change: s/POW_LIBM/POW_LIB/. (sleep_LDADD): Likewise.2001-11-10 Jim Meyering <meyering@lucent.com> * src/date.c (usage): Document %u. Reported by Albert Hopkins.2001-11-09 Jim Meyering <meyering@lucent.com> * configure.ac: Use AC_CONFIG_FILES(...) and call AC_OUTPUT with no arguments.2001-09-28 Jim Meyering <meyering@lucent.com> * configure.ac: Tell automake to use the file name `config.hin' rather than the two-`.' config.h.in.2001-09-26 Jim Meyering <meyering@lucent.com> * man/Makefile.am (common_dep): Define it, so we depend on configure.ac. * configure.ac: Renamed from configure.in.2001-09-25 Jim Meyering <meyering@lucent.com> * src/Makefile.am: (factor_DEPENDENCIES, printf_DEPENDENCIES seq_DEPENDENCIES): (sleep_DEPENDENCIES uptime_DEPENDENCIES su_DEPENDENCIES): Remove unnecessary definitions. They can cause trouble when @INTLLIBS@ expands to -lintl.2001-09-23 Jim Meyering <meyering@lucent.com> * Makefile.am (SUBDIRS): When using newer gettext (in which intl/libintl.h is created by rules intl/Makefile) `intl' must precede `lib'.2001-09-17 Jim Meyering <meyering@lucent.com> * src/printf.c (main): Change the `ignoring excess arguments' diagnostic to list the first one we're ignoring. Suggestion from Karl Berry.2001-09-16 Jim Meyering <meyering@lucent.com> * src/stty.c (usage): Prefix each line with a space, so that help2man produces a better stty.1 man page. From Colin Watson, via Michael Stone. http://bugs.debian.org/95816 * src/test.c (usage): Describe -h option. From Colin Watson, via Michael Stone. http://bugs.debian.org/99272 * man/pwd.x: Add note to help people understand that this documentation may not refer to the (shell built-in) command they're running. * man/echo.x: Likewise. * man/printf.x: Likewise. From Michael Stone. * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5. * man/Makefile.am: Revamp this file, as for fileutils.2001-09-11 Jim Meyering <meyering@lucent.com> * configure.in: Move HOST_OPERATING_SYSTEM code from this file into a new macro defined in m4/host-os.m4.2001-09-09 Jim Meyering <meyering@lucent.com> * src/test.c (binary_operator): Correct typo in diagnostic. From Jochen Hein.2001-09-03 Paul Eggert <eggert@twinsun.com> * NEWS: New 'uname' options -i or --hardware-platform, and -o or --operating-system. 'uname -a' now outputs -i and -o information at the end. New uname option --kernel-version is an alias for -v. Uname option --release has been renamed to --kernel-release, and --sysname has been renamed to --kernel-name; the old options will work for a while, but are no longer documented. * configure.in (HOST_OPERATING_SYSTEM): New macro; set it from $host_os with a translation table and other heuristics. * src/uname.c: Correct copyright notice as per latest coding standards. Remove list of options in comment, which wasn't worth maintaining separately from usage(). (print_element): Move definition up, avoiding the need for declaration and allowing inlining on some platforms. Keep track of whether something has been printed; this is more natural than modifying `toprint'. (PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME. (PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE. (PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION. (PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros. (toprint): Remove global var; now local in `main'. (long_options, usage, main): Implement changes described in NEWS. Reorder options to reflect output order. (main): Use buffers one byte longer, for compatibility with Solaris 8. Output newline at end. -a sets `toprint' to -1 now; this is simpler. Do not bother invoking system calls like uname if the resulting information does not need to be printed. Do not fail if sysinfo fails; just print "unknown".2001-08-30 Paul Eggert <eggert@twinsun.com> * src/tee.c (full_write): Remove decl; not needed.2001-06-19 Paul Eggert <eggert@twinsun.com> * NEWS: expr now uses LC_COLLATE for string comparison, as per POSIX. * src/expr.c (nextarg): Use strcoll, not strcmp.2001-08-24 Jim Meyering <meyering@lucent.com> * src/pinky.c (main): Fail if -l is specified with no username. * src/pinky.c (usage): Clarify description of -l. From Clark Morgan.2001-06-21 Paul Eggert <eggert@twinsun.com> * NEWS: 'expr' now requires '+' rather than 'quote' to quote tokens. * src/expr.c (posixly_correct): Remove; no longer needed. (main): Do not worry about POSIXLY_CORRECT, as it's OK for expr to have options (so long as they do not begin with digits). (eval6, usage): Use "+" rather than "quote" to quote tokens.2001-08-19 Jim Meyering <meyering@lucent.com> * src/Makefile.am (bin_PROGRAMS): Add kill. * src/kill.c: New program. Written by Marcus Brinkmann.2001-08-19 Jim Meyering <meyering@lucent.com> * po/POTFILES.in: Add src/kill.c2001-06-21 Paul Eggert <eggert@twinsun.com> * src/expr.c (nextarg): Advance ARGS by one if the next token matches. All callers changed.2001-06-21 Paul Eggert <eggert@twinsun.com> * src/expr.c (isstring): Remove. (eval2): Do comparisons as strings first, before trying to convert to integer. This avoids loss of information and wrong result, e.g. for "expr '00' '<' '0!'", where you don't want to convert '00' to '0'.2001-08-18 Jim Meyering <meyering@lucent.com> * tests/expr/basic (00): New test for the above.2001-06-21 Paul Eggert <eggert@twinsun.com> * src/expr.c: Code cleanup to avoid tricky macros and old-style function declarations. (cmpf, less_than, less_equal, equal, not_equal, greater_equal, greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod): Remove. (eval4, eval3, eval2): Rewrite to avoid the need for the above macros and functions.2001-08-18 Jim Meyering <meyering@lucent.com> * src/test.c (binary_operator): Move declarations of lt,rt `down' into the scopes where they're actually used. (unary_operator): Likewise for `fd'.2001-06-20 Paul Eggert <eggert@twinsun.com> * src/test.c (isint, binary_operator, unary_operator): Use intmax_t for argument integers, not long. (age_of, binary_operator): Use time_t for times, not long. (unary_operator): If N is out of int range, -t N now returns false.2001-06-20 Paul Eggert <eggert@twinsun.com> * src/expr.c (main): Handle a leading "--" option as POSIX requires.2001-08-18 Jim Meyering <meyering@lucent.com> * tests/expr/basic: Add a test for the above.2001-06-20 Paul Eggert <eggert@twinsun.com> * src/expr.c (toarith): Don't accept plain "-" as a valid integer.2001-06-20 Paul Eggert <eggert@twinsun.com> Modify 'expr' so that it uses intmax_t, not int, to calculate the value of integer expressions. * src/expr.c (struct valinfo.i): Now intmax_t, not int. (docolon, int_value, str_value, isstring, nextarg, toarith, freev, tostring, trace): Remove unnecessary forward decls. (int_value, printv, tostring, toarith, arithf, arithdivf, docolon, eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int. (docolon): Don't assume size_t fits in int.2001-08-18 Jim Meyering <meyering@lucent.com> * tests/expr/basic: New test for the above. * tests/expr/Makefile.am: New file. * tests/expr: New directory. * tests/Makefile.am (SUBDIRS): Add expr. * configure.in (AC_OUTPUT): Add tests/expr/Makefile.2001-08-18 Jim Meyering <meyering@lucent.com> Revert part of last change and solve the problem a better way. * src/date.c (show_date) [--rfc-822]: Set LC_ALL=C just before calling strftime and restore it just afterwards. Suggestion from Ulrich Drepper.2001-08-18 H. Peter Anvin <hpa@transmeta.com> * src/date.c (show_date) [--rfc-822]: Don't space-pad the day of the month. Set only LC_TYPE to the "C" locale. Setting LC_ALL is overkill, and would have unwanted side effects if there is an error message.2001-08-16 Jim Meyering <meyering@lucent.com> * src/date.c (main): When there are too many non-option arguments, include the first offending argument in the diagnostic. Suggestion from Karl Berry.2001-08-14 Jim Meyering <meyering@lucent.com> * src/Makefile.am (INCLUDES): Add -I../lib so sys2.h can include the new, generated file, unlocked-io.h. * tests/Makefile.am (TESTS_ENVIRONMENT): Remove first definition of this variable, and move its RHS into the RHS of the second. Thanks, automake! * src/su.c (xputenv): Remove parameter's const qualifier. * src/dirname.c, src/env.c, src/id.c, src/pathchk.c, src/pinky.c, * src/printenv.c, src/sleep.c, src/tee.c, src/test.c, src/uptime.c, * src/users.c, src/who.c: (AUTHORS): Mark string for translation, since it contains the English word `and'.2001-08-12 Jim Meyering <meyering@lucent.com> * src/pathchk.c (PATH_MAX_FOR): Use pathconf via wrapper. (NAME_MAX_FOR): Likewise. Guard the above pathconf-using definitions with `#if HAVE_PATHCONF' rather than with `#ifdef _POSIX_VERSION'. (pathconf_wrapper): New function. (validate_path): Declare length variables to be `long', not `int'. Adjust corresponding printf-style specs to use %ld. Reported by Neal H Walfield.2001-08-07 Jim Meyering <meyering@lucent.com> * src/printf.c (cfcc_msg): Remove now-inaccurate part of comment. From Bruno Haible.2001-07-04 Jim Meyering <meyering@lucent.com> * Makefile.cfg: New file with package-specific definitions. * Makefile.am (EXTRA_DIST): Add Makefile.cfg.2001-06-09 Jim Meyering <meyering@lucent.com> (PIDSTR_DECL_AND_INIT): Define.2001-06-05 Jim Meyering <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Turkish (tr).2001-05-27 Jim Meyering <meyering@lucent.com> * src/dirname.c (main): Add `const' to declaration of local, `result'.2001-04-01 Jim Meyering <meyering@lucent.com> Add options to make `who' more POSIX compliant. * who.c: Accept new options: --all (-a), --boot (-b), --dead (-d), --login, --process (-p), --runlevel (-r), --short (-s), --time (-t), --users (-u). The -u option now produces POSIX-specified results and is the same as the long option `--users'. --idle is no longer the same as -u. (time_string, print_line, print_boottime, print_deadprocs, print_login, print_initspawn, print_clockchange, print_runlevel): New functions. (print_user): Renamed from print_entry and reworked. (search_entries): Remove function. (who_am_i): Likewise. (usage): Describe new options. (main): Handle new options. Mostly from Michael Stone.2001-05-11 Paul Eggert <eggert@twinsun.com> dirname code cleanup. base_name now behaves more compatibly with POSIX basename when given file names that have trailing slashes, and similarly for dir_name. Add new primitives base_len and dir_len. Put the directory-name-related decls into dirname.h. * basename.c: Include "dirname.h". (base_name, strip_trailing_slashes): Remove decls; now in dirname.h. (main): Use base_len instead of strip_trailing_slashes to strip trailing slashes. * dirname.c (strip_trailing_slashes): Remove decl; now in dirname.h. (main): Use dir_len rather than dir_name_r. * su.c: Include "dirname.h". (base_name): Remove decl; now in dirname.h.2001-04-20 Jim Meyering <meyering@lucent.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -