From 2c64bc87293bd8bf369b8dbd487a793ea9803775 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 31 Jan 2017 21:55:22 -0800 Subject: doc: only distribute 5 years of ChangeLogs Remove old log files that have corresponding entries in the source code repository. This saves about 2.5MB uncompressed, 0.5M compressed. * Makefile.am (gen-ChangeLog): Adjust to taking all logs since a particular version (8.15 in this case). Also mention in the truncated log where to get older entries. (changelog_etc): Remove the no longer distributed files. * build-aux/git-log-fix: Remove now unused entries. * ChangeLog-200[5-8]: Delete. * doc/ChangeLog-2007: Likewise. * po/ChangeLog-2007: Likewise. * old/*: Likewise. --- old/sh-utils/ChangeLog | 4865 ---------------------------------------------- old/sh-utils/ChangeLog.0 | 1719 ---------------- old/sh-utils/NEWS | 283 --- 3 files changed, 6867 deletions(-) delete mode 100644 old/sh-utils/ChangeLog delete mode 100644 old/sh-utils/ChangeLog.0 delete mode 100644 old/sh-utils/NEWS (limited to 'old/sh-utils') diff --git a/old/sh-utils/ChangeLog b/old/sh-utils/ChangeLog deleted file mode 100644 index 0b6c11c8a..000000000 --- a/old/sh-utils/ChangeLog +++ /dev/null @@ -1,4865 +0,0 @@ -2006-08-17 Paul Eggert - - * ChangeLog: Add copyright notice. - * ChangeLog.0: Likewise. - * NEWS: Likewise. - -2002-08-08 Jim Meyering - - * Version 2.0.15. - -2002-08-05 Paul Eggert - - 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 - - * configure.ac: Change $am_cv_sys_posix_termios to - $ac_cv_sys_posix_termios. From Andreas Schwab. - -2002-08-04 Jim Meyering - - * Version 2.0.14. - -2002-07-30 Paul Eggert - - * 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 - - * 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 - - * configure.ac: Require automake-1.6b. - -2002-07-27 Jim Meyering - - * 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 - - * 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 - - * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Exempt false. - -2002-07-20 Jim Meyering - - * 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 - - * 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 - - 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 - - * 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 - - * src/uptime.c: Include sys/sysctl.h. - (print_uptime): Add support for determining the boot time on FreeBSD. - -2002-07-15 Jim Meyering - - * 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 - - * 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 - - * configure.ac: Invoke AC_GNU_SOURCE very early. - -2002-05-24 Jim Meyering - - * 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 - * 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 - - * 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 - - * 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 - - * src/who.c: Don't include xalloc.h. - It's already included via system.h. - -2002-04-28 Paul Eggert - - * 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 - - * 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 - - * 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 - - * 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 - - * src/who.c: Include xalloc.h. - Use xmalloc everywhere, not malloc. - -2002-04-12 Jim Meyering - - * 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 - - * 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 - - * 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 - - * 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 - - * 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 - - * Makefile.am (EXTRA_DIST): Remove config/config.rpath, - now that automake knows about it. - -2002-03-05 Jim Meyering - - * Makefile.am (EXTRA_DIST): Add config/config.rpath. - -2002-03-02 Jim Meyering - - * 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 - - * 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 - - * src/nice.c: Include posixver.h. - * src/date.c: Likewise. - -2002-02-17 Jim Meyering - - * 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 - - 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 - - * src/nice.c (main): Output warnings only if OBSOLETE_OPTION_WARNINGS. - -2002-02-11 Jim Meyering - - * 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 - - 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 - - * printf.c (print_esc): Call print_unicode_char with exit_on_error = - false. - -2002-01-28 Jim Meyering - - * 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 - - * po/POTFILES.in: Add lib/xmemcoll.c and src/sys2.h. - -2002-01-21 Jim Meyering - - * 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 - - * 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 - - * 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 - - * configure.ac (ALL_LINGUAS): Add Catalan (ca). - -2001-12-17 Jim Meyering - - * 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 - - * 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 - - * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's - no longer available at that location. - -2001-11-25 Jim Meyering - - * 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 - - * 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 - - * src/Makefile.am (printf_LDADD): Reflect spelling change: - s/POW_LIBM/POW_LIB/. - (sleep_LDADD): Likewise. - -2001-11-10 Jim Meyering - - * src/date.c (usage): Document %u. Reported by Albert Hopkins. - -2001-11-09 Jim Meyering - - * configure.ac: Use AC_CONFIG_FILES(...) and call AC_OUTPUT with no - arguments. - -2001-09-28 Jim Meyering - - * configure.ac: Tell automake to use the file name `config.hin' - rather than the two-`.' config.h.in. - -2001-09-26 Jim Meyering - - * man/Makefile.am (common_dep): Define it, so we depend on configure.ac. - - * configure.ac: Renamed from configure.in. - -2001-09-25 Jim Meyering - - * 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 - - * 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 - - * 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 - - * 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 - - * 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 - - * src/test.c (binary_operator): Correct typo in diagnostic. - From Jochen Hein. - -2001-09-03 Paul Eggert - - * 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 - - * src/tee.c (full_write): Remove decl; not needed. - -2001-06-19 Paul Eggert - - * 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 - - * 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 - - * 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 - - * src/Makefile.am (bin_PROGRAMS): Add kill. - * src/kill.c: New program. Written by Marcus Brinkmann. - -2001-08-19 Jim Meyering - - * po/POTFILES.in: Add src/kill.c - -2001-06-21 Paul Eggert - - * src/expr.c (nextarg): Advance ARGS by one if the next token matches. - All callers changed. - -2001-06-21 Paul Eggert - - * 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 - - * tests/expr/basic (00): New test for the above. - -2001-06-21 Paul Eggert - - * 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 - - * 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 - - * 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 - - * src/expr.c (main): Handle a leading "--" option as POSIX requires. - -2001-08-18 Jim Meyering - - * tests/expr/basic: Add a test for the above. - -2001-06-20 Paul Eggert - - * src/expr.c (toarith): Don't accept plain "-" as a valid integer. - -2001-06-20 Paul Eggert - - 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 - - * 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 - - 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 - - * 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 - - * 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 - - * 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 - - * 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 - - * src/printf.c (cfcc_msg): Remove now-inaccurate part of comment. - From Bruno Haible. - -2001-07-04 Jim Meyering - - * Makefile.cfg: New file with package-specific definitions. - * Makefile.am (EXTRA_DIST): Add Makefile.cfg. - -2001-06-09 Jim Meyering - - (PIDSTR_DECL_AND_INIT): Define. - -2001-06-05 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Turkish (tr). - -2001-05-27 Jim Meyering - - * src/dirname.c (main): Add `const' to declaration of local, `result'. - -2001-04-01 Jim Meyering - - 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 - - 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 - - * doc/sh-utils.texi (false invocation): Describe how --help and - --version are treated with and without POSIXLY_CORRECT. - (true invocation): Likewise. Forwarded by Michael Stone. - -2001-03-18 Jim Meyering - - * 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-10 Jim Meyering - - * doc/sh-utils.texi (date invocation): Correct the description of how - date works when given no format. Reported by Ole Laursen. - - * src/factor.c: Include wheel-size.h. - (WHEEL_START): Adjust definition. - (wheel_tab[]): Remove body of definition. - Include generated file, wheel.h, instead. - - * src/wheel-gen.pl: New file. - * src/Makefile.am (noinst_HEADERS): Add wheel.h wheel-size.h. - (EXTRA_DIST): Add wheel-gen.pl. - (PERL): Define. - (wheel-size.h, wheel.h): New rules. - (BUILT_SOURCES): Add wheel.h and wheel-size.h. - (MAINTAINERCLEANFILES): Define. - -2001-03-09 Jim Meyering - - * Makefile.maint (my_distdir): Define new variable, and use this - in place of most old uses of $(distdir). - - * src/date.c (usage): Describe %C. - * doc/sh-utils.texi (Date directives): Likewise. - - * 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-07 Jim Meyering - - * tests/stty/Makefile.am (EXTRA_DIST): Remove input-tty. - * tests/Makefile.am (EXTRA_DIST): Add input-tty. - - * tests/stty/basic-1: Reflect change in location of input-tty. - * tests/stty/row-col: Likewise. - * tests/stty/input-tty: Move this file... - * tests/input-tty: ... to here. - -2001-02-24 Paul Eggert - - * doc/sh-utils.texi: Fix typo: '-d=1may' -> '-d 1may'. - Fix and clarify time zone usage in 'date' examples. - -2001-02-04 Jim Meyering - - * src/factor.c (usage): Tweak --help output: it prints the _prime_ - factors, not just any factors. - -2001-02-03 Jim Meyering - - Improve the performance of `factor' (more than 2x speed-up for large N). - * src/factor.c (wheel_tab): New global table. - (WHEEL_START, WHEEL_END): Define. - (factor): Remove the loop that special-cased `2'. - Instead of incrementing by `2', use the offsets from the wheel table. - From Michael Steffens. - -2000-11-27 Prashant TR - - * src/test.c (eaccess) [__MSDOS__]: Just use access. - -2001-01-26 Jim Meyering - - * src/dirname.c (main): Declare local result as non-const, now - that it's freed. - -2001-01-20 Jim Meyering - - * configure.in: Remove jm_CHECK_ALL_TYPES. - Now it's invoked by jm_MACROS. - -2001-01-04 Jim Meyering - - * src/date.c (main): Fail when --rfc-822 (-R) is specified along - with a format string. Reported by Jochen Hein. - -2000-12-17 Jim Meyering - - * doc/texinfo.tex: Update from master repository. - * config.sub: Likewise. - * config.guess: Likewise. - - * djgpp: New directory. - * djgpp/*: New files. - * Makefile.am (SUBDIRS): Add djgpp. - * configure.in (AC_OUTPUT): Add djgpp/Makefile. - From Prashant TR. - -2000-12-08 Jim Meyering - - * src/dirname.c: Include xalloc.h. - (main): Use dir_name rather than the underlying dir_name_r. - The former now handles cwd-relative names with drive-letter prefixes. - -2000-12-02 Jim Meyering - - * src/seq.c (valid_format): Move pre-increment to a separate statement - to avoid a warning. - - * src/id.c: Move dcls of globals used only in main... - (main): ...to here. - (usage): Clarify option descriptions. - -2000-11-18 Jim Meyering - - * po/Makefile.in.in: Sync with the one from fileutils. - - * configure, config.h.in, Makefile.in, etc.: Regenerate using the - very latest version (in CVS) of autoconf. - -2000-11-17 Jim Meyering - - * GNUmakefile (.NOTPARALLEL): New target. Prevent unwanted parallelism. - Suggestion from Ulrich Drepper. - - * src/pinky.c: Explicitly include sys/types.h before including system.h. - * src/uptime.c: Likewise. - * src/users.c: Likewise. - * src/who.c: Likewise. - -2000-11-13 Paul Eggert - - * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should - be tested with #ifdef, not with #if. - -2000-11-12 Jim Meyering - - * src/date.c (show_date): Add a comment explaining why the - format string must not be translatable via _(). From Paul Eggert. - -2000-10-31 Jim Meyering - - * doc/sh-utils.texi: Clean up indentation and punctuation. - Fix a couple typos. From Brian Youmans. - -2000-10-30 Jim Meyering - - * configure, config.h.in, Makefile.in, etc.: Regenerate using the - very latest version (in CVS) of autoconf. - -2000-10-29 Jim Meyering - - * Version 2.0.11. - -2000-10-27 Jim Meyering - - * src/date.c (usage): Mention the time zone, UTC, and write the date - in ISO format in the description of %s. Suggestion from Karl Berry. - -2000-10-25 Jim Meyering - - * src/dirname.c: Include dirname.h. - (main): Use dir_name_r rather than open-coding it. - -2000-10-23 Jim Meyering - - * Makefile.am (EXTRA_DIST): Add .prev-version. - -2000-10-18 Paul Eggert - - * src/date.c (universal_time): Remove; it's just a temptation to - do the wrong thing. - (main): The -u option now just sets TZ; it doesn't do anything else. - (show_date): Do not do anything special if -u is set. - This affects the behavior of the -I and -R options. - * doc/sh-utils.texi: Document the above. - -2000-10-18 Jim Meyering - - * doc/sh-utils.texi (Examples of date): Fix a typo. - -2000-10-11 Jim Meyering - - * doc/sh-utils.texi (Time directives) [%S]: Range is 0..60, not 0..61. - -2000-10-06 Paul Eggert - - Undo the effect of the 1997-07-12 change to date.c; it - broke "date -u MMDDhhmm" and it wasn't documented. - This reverts to the behavior of the 1996-01-03 patch. - - * src/date.c (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove. - (batch_convert): Don't futz with TZ. - (main): -u now parses all dates as UTC, not just some. - Reported by Karl-Michael Schneider. - * tests/date/Test.pm (utc-0, utc-1, relative-2): Adjust to - above change. - -2000-09-29 Jim Meyering - - * src/yes.c (usage): Add a separate usage line, just for `OPTION'. - Suggestion from M. P. Suzuki. - -2000-09-09 Jim Meyering - - * src/date.c (usage): Make the second `Usage' line more precise - (also making it match the texinfo documentation). - From Karl Eichwalder. - - * doc/sh-utils.texi (Setting the time): Correct the capitalization of - `HHMM' in the info-rendering of the texinfo documentation. - Reported by Karl Eichwalder. - -2000-08-14 Jim Meyering - - * src/tee.c (main): Remove incorrect `FIXME' comment. - -2000-08-07 Paul Eggert - - * src/su.c (xputenv): Invoke xalloc_die instead of printing - our own message. - -2000-07-30 Jim Meyering - - * src/tee.c (tee): Use SET_BINARY and SET_BINARY2. - From Prashant TR. - - * src/help-version: Remove file. Move it to ... - * tests/help-version: ...here - * tests/Makefile.am (TESTS): Add help-version. - (TESTS_ENVIRONMENT): Define. - * src/Makefile.am (EXTRA_DIST): Remove help-version. - (TESTS): Remove definition. - (TESTS_ENVIRONMENT): Remove definition. - -2000-07-23 Jim Meyering - - * src/help-version (su_args): Punt, so we don't try to start a shell. - - * src/su.c: Include if HAVE_SYS_PARAM_H is defined, - rather than if _POSIX_VERSION is defined. Remove declarations of - getpwuid, getgrgid, and getuid, now that they're in sys2.h. - Prompted by a report from John David Anglin. - - * src/sys2.h [!HAVE_DECL_GETPWUID]: Declare getpwuid. - [!HAVE_DECL_GETGRGID]: Declare getgrgid. - [!HAVE_DECL_GETUID]: Declare getuid. - -2000-07-19 Jim Meyering - - * src/date.c (batch_convert): Free `initial_TZ' only if it was set. - Reported by Michael Hohn. - -2000-07-17 Jim Meyering - - * src/stty.c (visible): Don't mark `' for translation. - The standard requires that exact string. - -2000-07-09 Jim Meyering - - * config.guess: Update from FSF. - * config.sub: Likewise. - - * src/Makefile.am (seq_LDADD): Don't hard-code `-lm' -- some systems - don't have/need it. From Bruno Haible. - -2000-07-06 Jim Meyering - - * src/help-version: Punt on `groups' test, since all it does - is run `id -Gn', and groups fails if GNU id is not installed. - Reported by Christian Krackowizer. - -2000-07-05 Bruno Haible - - * tests/nice: Avoid syntax error in "test" when `nice` generates - no output. - -2000-07-04 Jim Meyering - - * Version 2.0j. - - * tests/date/Test.pm (test_vector): Disable test #2 for all systems, - even though it fails only on SunOS4. - -2000-07-01 Jim Meyering - - * configure.in (jm_DUMMY_1): Wrap a snippet in a macro definition - so we can use AC_REQUIRE. - (jm_BOOT_TIME): Likewise. - -2000-06-17 Bruno Haible - - * configure.in: Add pinky, users, who to OPTIONAL_BIN_PROGS if either - or exists. Add uptime only if either or - exists. - * src/Makefile.am (bin_PROGRAMS): Remove pinky, users, who from here... - (EXTRA_PROGRAMS): ... and add them here. - -2000-06-26 Jim Meyering - - `id -Gn' (invoked by groups) would fail without giving a diagnostic - on malconfigured systems. - * src/id.c (print_user): Give a diagnostic if number->name lookup fails. - (print_group): Likewise. - -2000-06-25 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Danish (da). - -2000-06-21 Jim Meyering - - * tests/stty/basic-1: New test for that. - * src/stty.c (valid_options): Don't segfault on `stty erase -'. - Patch from Harry Liu. - -2000-06-15 Jim Meyering - - * tests/date/Test.pm: Add tests for getdate.y fix. - -2000-06-14 Jim Meyering - - * src/help-version: Punt on nohup; give it --version. - -2000-06-10 Jim Meyering - - * doc/sh-utils.texi: Typo-fixes and some clean-up from Brian Youmans. - -2000-05-29 Jim Meyering - - * tests/nice: Remove now-unused reference to srcdir. - - * src/help-version: Use `WARNING', not just `Warning' in the - broken-/bin/sh diagnostic, to be consistent with other such warnings. - -2000-05-21 Jim Meyering - - * tests/nice: Disable test on djgpp. - -2000-05-15 Jim Meyering - - * tests/date/Test.pm (test_vector): Skip the %c test on SunOS4 systems. - Suggested by Paul Eggert. Reported by Volker Borchert. - -2000-05-13 Jim Meyering - - * src/groups.sh: Detect and report write failure of --help/--version. - * src/nohup.sh: Likewise. - -2000-05-11 Jim Meyering - - * src/date.c (usage): Don't call close_stdout_status directly, - since that didn't cover --version output. - (main): Instead, call close_stdout_set_status and arrange to - call close_stdout via atexit. - * src/printenv.c: Likewise. - * src/tty.c: Likewise. - - * src/true.c (usage): Don't call close_stdout directly, since that - didn't cover --version output. - (main): Arrange to call close_stdout via atexit, instead. - * src/yes.c: Likewise. - * src/sleep.c: Likewise. - -2000-05-09 Jim Meyering - - * src/sys2.h (case_GETOPT_VERSION_CHAR): Don't call close_stdout. - * src/help-version: New test. - * src/Makefile.am (TESTS): Define. - (TESTS_ENVIRONMENT): Likewise. - (EXTRA_DIST): Add help-version. - -2000-05-08 Jim Meyering - - * Version 2.0i. - -2000-05-07 Jim Meyering - - * Version 2.0h. - - * src/basename.c: Include "closeout.h". - (main): Call atexit with close_stdout. - * src/chroot.c: Likewise. - * src/dirname.c: Likewise. - * src/echo.c: Likewise. - * src/env.c: Likewise. - * src/expr.c: Likewise. - * src/factor.c: Likewise. - * src/hostid.c: Likewise. - * src/hostname.c: Likewise. - * src/id.c: Likewise. - * src/logname.c: Likewise. - * src/nice.c: Likewise. - * src/pathchk.c: Likewise. - * src/pinky.c: Likewise. - * src/printf.c: Likewise. - * src/pwd.c: Likewise. - * src/seq.c: Likewise. - * src/stty.c: Likewise. - * src/su.c: Likewise. - * src/test.c: Likewise. - * src/uname.c: Likewise. - * src/uptime.c: Likewise. - * src/users.c: Likewise. - * src/who.c: Likewise. - * src/whoami.c: Likewise. - * src/tee.c: Likewise. Remove explicit close_stdout. - - * src/yes.c Include "closeout.h". - (usage): Call close_stdout just before exit. - * src/sleep.c: Likewise. - * src/true.c: Likewise. - * src/date.c (usage): Call close_stdout_status. - * src/printenv.c (usage): Likewise. - - * tests/date/Test.pm ($Test::env{'rfc822-1'}): Add TZ=UTC0. - -2000-05-06 Jim Meyering - - * src/Makefile.am (sleep_LDADD): Add @LIB_CLOCK_GETTIME@ and - @LIB_NANOSLEEP@. - - * src/tty.c (main): Warn about arguments, don't fail. - (usage): Call close_stdout_status from here as well as from main. - -2000-05-05 Jim Meyering - - Exit nonzero upon write failure. - * src/printf.c: Include "closeout.h". - (main): Call close_stdout. - Reported by Ian Jackson via Michael Stone. - -2000-05-04 Jim Meyering - - * Makefile.maint (my-distcheck): Remove spurious blank line. - Remove $(DEPDIR) *after* making distclean, not before. - -2000-04-30 Jim Meyering - - * src/yes.c: Detect and terminate upon write failure. - -2000-04-14 Jim Meyering - - * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and - remove unnecessary uses of `defined' (aesthetics). - -2000-04-12 Jim Meyering - - Move some code into m4/. - * configure.in (_GNU_SOURCE): Don't define here. - (AC_SYS_LARGEFILE): Don't use here. - (AM_C_PROTOTYPES): Don't use here. - (AC_DEFINE): Use 3-arg form. - * acconfig.h: Remove now-unused file. - -2000-04-09 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Estonian (et). - -2000-04-01 Jochen Hein - - * src/date.c: Use the "C" locale when using --rfc-822 (-R), as - required by rfc822. Before, in the de_DE locale, date would - print the German weekday and month abbreviations. - - * tests/date/Test.pm: Add test for rfc822 format and foreign - locale settings. - -2000-04-04 Jim Meyering - - * man/Makefile.am (man_MANS): Add uptime.1. - * man/uptime.x: New file. - - * man/Makefile.am (man_MANS): Add factor.1. - * man/factor.x: New file. - - * tests/seq/basic: Split a long line and tweak for font-lock mode. - * tests/factor/basic: Likewise. - * tests/basename/basic: Likewise. - -2000-03-29 Paul Eggert - - * src/date.c: Include if it exists. - (DATE_FMT_LANGINFO): New macro. - (show_date): Use it to get the locale-specific default format for - "date" if it exists. - -2000-03-19 Jim Meyering - - * Version 2.0g. - - * doc/sh-utils.texi (chroot invocation): Include a couple tips and - a simple example. - - * doc/getdate.texi (Calendar date item): Fix typos. - From Per Cederqvist. - -2000-03-18 Jim Meyering - - * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds. - -2000-03-12 Jim Meyering - - Merge from textutils. - * src/system.h (O_BINARY, O_TEXT): Define if necessary. - (SET_BINARY, SET_BINARY2): Define. - (DEV_BSIZE): Define to BBSIZE if appropriate. - -2000-03-11 Jim Meyering - - * tests/date/Test.pm: Set the default TZ value to UTC0, not UTC. - The latter didn't have any effect on alphaev56-dec-osf4.0f. - - Final merge with fileutils. - * src/system.h: Use standard `#if TIME_WITH_SYS_TIME...' block - rather than `#if TM_IN_SYS_TIME' one. - -2000-02-02 Bruno Haible - - * printf.c: Include "unicodeio.h". - (usage): Mention \u and \U directives. \x outputs a byte, not a - character. - (print_esc): Implement \u and \U. - * Makefile.am (printf_LDADD): Add @LIBICONV@. - -2000-03-03 Jim Meyering - - Make it so stty's rprnt attribute works on HPUX 10.20. - * src/stty.c [CREPRINT && !CRPRNT] (CRPRNT): Define. - (control_info): Recognize HPUX's CREPRINT. - -2000-03-02 Jim Meyering - - * doc/sh-utils.texi (printf invocation): Describe new unicode syntax. - From Bruno Haible. - - Unify with fileutils/src/system.h. - * src/system.h (ST_NBLOCKS): Sync with recent changes in fileutils. - [!_POSIX_VERSION]: Remove declarations of getlogin, ttyname, geteuid. - * src/sys2.h: Declare them here, if needed. - -2000-03-01 Jim Meyering - - * Makefile.am (EXTRA_DIST): Include GNUmakefile. - - * src/seq.c (get_width_format): Fix portability problem with - `-0' vs. `0'. - -2000-02-22 Jim Meyering - - * tests/date/Test.pm (datevtime-1): New test. - From John Kendall. - -2000-02-15 Jim Meyering - - * man/Makefile.maint ($(man_MANS)): Remove $@-t1. - -2000-02-13 Jim Meyering - - * tests/Fetish.pm (run_tests): Discard stderr. - Reverse diff args, so `expected' is last, as in mk-script. - -2000-02-12 Jim Meyering - - * tests/mk-script: Invoke `diff' when differences are found. - * tests/Fetish.pm (run_tests): Likewise. - -2000-02-09 Jim Meyering - - * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard - to go along with corrected autoconf test: Reported by Gaël Quéri. - -2000-02-05 Jim Meyering - - * Version 2.0f. - - * src/who.c: Use UT_USER in place of hard-coded `->ut_name' here, too. - * src/pinky.c: Likewise. - Reported by Tom Tromey and Andreas Schwab. - * src/uptime.c (print_uptime): Likewise. - * src/users.c (list_entries_users): Likewise. - -2000-01-30 Jim Meyering - - * Version 2.0e. - - * src/su.c (correct_password): Guard with `HAVE_GETSPNAM && - HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'. - - * po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c, - and lib/same.c. - -2000-01-29 Jim Meyering - - * configure.in: Move library-related tests into m4/lib-check.m4. - Remove lib-check for cposix now that we use m4/isc-posix.m4. - - * src/seq.c: Back out most of the 2000-01-21 and 01-22 changes. - [Instead, merely give examples showing how to accomplish the same - task with fewer limitations using existing tools. ] - Suggestion from Bruno Haible. - (valid_format): Rename from check_format. - * tests/seq/basic: Remove associated tests and add two equal-width ones. - - * tests/stty/row-col-1: Set COLUMNS envvar, just to be safe. - -2000-01-28 Jim Meyering - - * src/stty.c (wrapf): Emit a newline only if 0 < current_col. - (screen_columns): Use xstrtol, not atoi. - If get_win_size fails and $COLUMNS == 0, then return 80, not `0'. - -2000-01-23 Jim Meyering - - * configure.in (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN): - AC_SUBST these not here, but rather in m4/, so that the now-shared - lib/Makefile.am are all the same. - (AC_CHECK_FUNCS): Remove check for utmpname, since it's already - in m4/prereq.m4. - Remove many function checks (moved to m4/.) - - * configure.in (AM_FUNC_STRTOD): Move to m4/. - (AC_SUBST(POW_LIBM)): Likewise. - - * configure.in (SEQ_LIBM): Remove AC_SUBST of a constant. - * src/Makefile.am (seq_LDADD): Add -lm rather than constant $(SEQ_LIBM). - -2000-01-22 Jim Meyering - - * src/sys2.h [! HAVE_DECL_STRTOUL]: Declare strtoul. - [! HAVE_DECL_STRTOULL]: Declare strtoull. - Required for some AIX systems. Reported by Christian Krackowizer. - - * configure.in (ALL_LINGUAS): Add Slovenian (sl). - (AC_CHECK_HEADERS): Move these checks into m4/. - - * src/seq.c (enum Format_type): Declare. - (format_type): New global to take place of intconv. - (format_str): Move global declaration... - (main): ... to here. - (check_format): Rename parameter to avoid shadowing global. - (DO_printf): New macro. - (main): Use it. - Topologically sort the functions and remove fwd declarations. - -2000-01-21 Bruno Haible - - Add support for octal and hexadecimal output. - * seq.c (intconv): New variable. - (usage): Update. - (main): Call scan_arg instead of scan_double_arg. Call check_format - before scan_arg. - (scan_int_arg, scan_arg): New functions. - (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X. - (print_numbers): If intconv is true, pass an int argument to printf. - -2000-01-21 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Galician (gl). - -2000-01-16 Jim Meyering - - * lib/Makefile.am: Sync with fileutils/lib/Makefile.am. - - * src/date.c (usage): Correct error in %V description. - From Wolfram Kleff. - - * configure.in: Remove jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV, - AM_FUNC_GETLOADAVG, jm_SYS_PROC_UPTIME, AM_SYS_POSIX_TERMIOS, - jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL. - -2000-01-15 Jim Meyering - - * configure.in (AC_REPLACE_FUNCS): Remove gethostname, getusershell, - memcpy, and memset. Now that's done in m4/. - Remove these, too: stime strcspn stpcpy strstr strtol strtoul. - -2000-01-12 Jim Meyering - - * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST. - -2000-01-11 Jim Meyering - - Sync lib/ directories of sh-utils, and textutils. - - * lib/Makefile.am (libfetish_a_SOURCES): Add diacrit.c, hard-locale.c, - linebuffer.c, md5.c, memcasecmp.c, memcoll.c, obstack.c, safe-read.c - (noinst_HEADERS): Add bumpalloc.h, diacrit.h, hard-locale.h, - linebuffer.h, md5.h, memcasecmp.h, memcoll.h, obstack.h, safe-read.h. - - * lib/Makefile.am: s/su/fetish/ - * src/Makefile.am: s/libsu/libfetish/ - -2000-01-10 Jim Meyering - - * Version 2.0d. - - * src/Makefile.am (sleep_LDADD): Add @POW_LIBM@, for systems that use - lib/strtod.c and need -lm to resolve its pow reference. - -2000-01-07 Jim Meyering - - * Version 2.0c. - - * tests/basename/Makefile.am (TESTS_ENVIRONMENT): Add `pwd`/ prefix - to exported PATH value (though not strictly necessary, here). - * tests/factor/Makefile.am (TESTS_ENVIRONMENT): Likewise. - * tests/seq/Makefile.am (TESTS_ENVIRONMENT): Likewise. - * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Likewise. - -2000-01-06 Paul Eggert - - * tar/lib/getdate.y: Sync tm_diff with the GNU C Library. - (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed. - (tm_diff): Renamed from difftm. All uses changed. - Replace body with that taken from GNU C Library 2.1.3pre1. - (get_date): Prefer tm_gmtoff to tm_diff if available. - -2000-01-05 Paul Eggert - - Minor code cleanup. - * src/sleep.c (clock_get_realtime): Return argument, for convenience. - (main): Use this to simplify main sleep loop. - -2000-01-05 Jim Meyering - - Some systems lack a definition of struct timespec (AIX, Ultrix) - Reported by Christian Krackowizer. - * lib/Makefile.am (noinst_HEADERS): Add nanosleep.h. - * lib/nanosleep.h: New file. - * lib/nanosleep.c: Include it. - Don't include time.h or sys/time.h here. - * src/sleep.c: Include it. - (AUTHORS): Add Paul Eggert. - -2000-01-04 Jim Meyering - - * lib/nanosleep.c: Include both time.h and sys/time.h only - #if TIME_WITH_SYS_TIME. - -2000-01-03 Paul Eggert - - Fix some porting and rounding problems with the new `sleep' code. - - * configure.in (AC_CHECK_HEADERS): Add fenv.h. - (FESETROUND_LIBM): New macro. - - * lib/xstrtod.c: Add #pragma STDC FENV_ACCESS ON if C99. - * src/sleep.c: Likewise. - - * src/Makefile.am (sleep_LDADD, sleep_DEPENDENCIES): New macros. - - * src/sleep.c (): Include if available. - (main): Always round floating-point interval calculations upwards, - as we must sleep for at least the specified time. - Do the right thing with NaNs. - - (main): Sleep forever if the time calculations overflow. - (apply_suffix): Don't assert that *s <= TIME_T_MAX. - - (clock_get_realtime): Fix typo; address was improperly taken. - -2000-01-02 Jim Meyering - - * Version 2.0b. - - * lib/Makefile.in: Regenerate. - - * Version 2.0a. - -1999-12-26 Jim Meyering - - * lib/nanosleep.c (nanosleep): New file. - -1999-12-23 Jim Meyering - - * src/sleep.c (USE_CLOCK_GETTIME): Define. - [USE_CLOCK_GETTIME]: Include sys/time.h. - (timespec_subtract): New function. - (clock_get_realtime): New function. - (sighandler): Remove function. - (main): Reimplement again, using nanosleep and clock_gettime. - - * configure.in: Remove check for gettimeofday. - Now it's in m4/jm-macros.m4 - - * man/Makefile.summ: Remove now-unused summaries. - -1999-12-22 Jim Meyering - - * lib/getdate.y (get_date): Fix typo in time_t overflow test. - From Michael Stone. - - * tests/date/Test.pm (regress-1): New test for the above. - -1999-12-18 Jim Meyering - - * src/who.c (print_entry): Correct do_lookup test so that who - prints whatever host information it has, even without --lookup. - Reported by Bill Peters. - -1999-12-12 Jim Meyering - - Move 120+ lines of stat.h-related macros from system.h (not shared) - to sys2.h, which is shared between fileutils, sh-utils, textutils. - * src/system.h: Move them from here... - * src/sys2.h: ... to here. - -1999-11-27 Jim Meyering - - Rewrite to allow fractional seconds and to handle SIGCONT. - * src/sleep.c (main): Rewrite. - (sighandler): New function. - (apply_suffix): New function. - (timeval_subtract): New function. - Reported by Raul Miller. - - * src/sleep.c (argdecode): Move definition to precede use. - Remove prototype. - (usage): Add elipses to show that sleep allows more than one argument. - -1999-11-22 Jim Meyering - - * lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c. - -1999-11-09 Jim Meyering - - * src/expr.c (NEW): Undefine to avoid warning about redefinition. - (NEW): Redefine in terms of XMALLOC. - - * lib/xalloc.h (XMALLOC): Correct misnamed macro parameter name: - s/N_bytes/N_items/. - (XCALLOC): Likewise. - (XREALLOC): Likewise. - -1999-11-05 Jim Meyering - - * src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated - HAVE_ST_BLOCKS. - - * configure.in: Move some type/header/member tests into - m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of - fileutils, textutils, and sh-utils. - -1999-11-01 Jim Meyering - - * lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES). - -1999-10-07 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Japanese (ja). - -1999-10-04 Jim Meyering - - * depcomp: New file, for automake's new dependency support. - * missing: New version, from automake's user-dep-gen-branch. - -1999-09-28 Jim Meyering - - * src/system.h: Update from the system.h from fileutils. - Now they're finally almost identical... - -1999-09-09 Jim Meyering - - * src/Makefile.am (EXTRAdir): Remove unused variable. - (installed_su): Use `$(DESTDIR)$(bindir)' in place of $(bindir). - (install-exec-local): Likewise. - (.sh): Substitute `$(bindir)' rather than @bindir@. - Based on a patch from Andreas Schwab. - -1999-09-08 Andreas Schwab - - * tests/nice: Instead of failing, exit with 77 if running niced. - -1999-09-08 Jim Meyering - - * src/su.c: Remove declaration of xstrdup. - -1999-09-02 Jim Meyering - - * src/expr.c: Remove xstrdup declaration. - * src/date.c: Likewise. - * src/pathchk.c: Likewise. - * src/su.c: Likewise. - -1999-08-29 Jim Meyering - - * tests/nice: Use `nice' instead of $nice. - * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend ../src to PATH so - the above works. - - * src/env.c (main): Call exit explicitly to avoid warning from gcc. - * src/nice.c (main): Likewise. - Include "xstrtol.h". - (isinteger): Remove function and prototype. - (main): Use xstrtol in place of atoi. Remove associated FIXME comments. - - * configure.in (AC_YACC): Remove use, now that we require bison. - - * tests/date/Test.pm (test_vector): Add a test for the Risks-reported - problem with syntax like this: Nov 11 1996. - - * lib/getdate.y (get_date): Rename outermost local `probe' to `quarter'. - (get_date): Rename latter local `tm' to probe_tm. - - * lib/getdate.y (relative_time_table): Change `type' of `THIS' from - tMINUTE_UNIT to tUNUMBER. From Urs Thuermann. - * tests/date/Test.pm (test_vector): Add tests for use of `this'. - -1999-08-25 Jim Meyering - - * man/Makefile.summ (seq-summary): Define. - * man/Makefile.am (man_MANS): Add seq.1. - Reported by Dirk-Jan Faber. - -1999-08-23 Jim Meyering - - * src/pathchk.c (longopts): Restore accidentally-removed entry for - `--portability' long option. - * src/chroot.c (usage): Correct --help message. - * src/hostid.c (usage): Likewise. - * src/hostname.c (usage): Likewise. - * src/logname.c (usage): Likewise. - * src/nice.c (usage): Likewise. - * src/printenv.c (usage): Likewise. - * src/sleep.c (usage): Likewise. - * src/stty.c (usage): Likewise. - Reported by Daniel Bergstrom. - -1999-08-22 Jim Meyering - - * src/sys2.h (ATTRIBUTE_NORETURN): Define. - * src/test.c: Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE. - (NO_RETURN_ATTRIBUTE): Remove definition. - - * src/su.c (run_shell): Declare with gcc's noreturn attribute. - Use an explicit exit(1) rather than doing that through error. - - * src/sys2.h (IF_LINT): Define new macro. - * src/date.c (batch_convert): Use IF_LINT macro instead of #ifdef lint. - * src/pathchk.c (validate_path): Likewise. - -1999-08-21 Jim Meyering - - * src/hostid.c (usage): Remove the ` [-v]' from the Usage: line. - Reported by Daniel Bergstrom. - -1999-08-17 Jim Meyering - - * tests/stty/input-tty: New file, containing code factored out of - the two test scripts. Mention `at' and `batch' in addition to `rsh'. - * tests/stty/basic-1: Source it. - * tests/stty/row-col-1: Source it. - * tests/stty/Makefile.am (EXTRA_DIST): Add input-tty. - -1999-08-14 Jim Meyering - - * Version 2.0. - - * tests/stty/basic-1: Fail-77 if stdin is not a tty. - * tests/stty/row-col-1: Likewise. - Suggestion from Volker Borchert. - -1999-08-07 Jim Meyering - - * Version 1.16m. - - * Makefile.maint (po-check): New rule. - (alpha): Make it. - - * po/POTFILES.in: Add the following from lib/: argmatch.c, closeout.c, - error.c, getopt.c, human.c, long-options.c, version-etc.c, xmalloc.c. - Add these from src/: false.c, hostid.c, true.c. - - * lib/getdate.y (OtherTable[]): Use tDAY_UNIT for `tomorrow,' - `yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course - with correspondingly smaller numbers for tomorrow and yesterday. - This change does not change the way the code works, since the - grammar rules for the two symbols are analogous. - From Tadayoshi Funaba. - -1999-08-04 Jim Meyering - - false and true once again generate --help and --version output - * src/true.c: Honor --help and --version once again, bug ignore - those options when POSIXLY_CORRECT is set. - * src/false.c: Fail even for --help and --version. - * src/Makefile.am (false.c): Generate automatically from true.c. - (BUILT_SOURCES): Add false.c. - * man/Makefile.am (EXTRA_DIST): Remove false.1in and true.1in. - * man/Makefile.summ: Remove the rules added on 1999-07-31. - * man/Makefile.maint: Likewise. - * man/true.1in: Removed. - * man/false.1in: Removed. - - * configure.in: Remove getline-testing code. Now it's in m4/. - -1999-08-01 Jim Meyering - - * src/date.c (usage): Correct description of %S; (00..60, not 00..61). - From Ken Pizzini. - -1999-08-01 Paul Eggert - - * configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS. - -1999-07-31 Jim Meyering - - * Version 1.16l. - - false and true are now C programs rather than shell scripts - * src/true.c: New file. - * src/false.c: New file. - * src/true.sh: Removed. - * src/false.sh: Removed. - * src/Makefile.am (bin_PROGRAMS): Add true and false. - (bin_SCRIPTS): Remove true and false. - (EXTRA_DIST): Remove false.sh and true.sh. - * man/true.1in: New file. - * man/false.1in: New file. - * man/Makefile.am (EXTRA_DIST): Remove extra (shadowed) assignment. - (EXTRA_DIST): Add false.1in and true.1in. - * man/Makefile.maint (helpful-men): Define. - * man/Makefile.summ ($(helpless-men)): New manual-generating rules to - accommodate the fact that false and true no longer accept --help. - * doc/sh-utils.texi: Include a couple of sentences from the - truefalse package. - Prompted by Christi Alice Scarborough's truefalse package. - -1999-07-30 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR). - -1999-07-26 Jim Meyering - - * src/tee.c (tee): Convert from open/fds to using fopen/streams for - output, in preparation for addition of new compression option. - -1999-07-21 Jim Meyering - - * tests/stty/basic-1 (options): Avoid Solaris' broken /usr/ucb/tr by - removing offending use of tr altogether and removing hyphens with sed. - Reported by Kaveh Ghazi. - -1999-06-01 Volker Borchert - - * tests/Makefile.am: Make envvar-check depend on check-recursive rather - than on `check' so that its tests are performed before any real tests. - -1999-07-15 Jim Meyering - - * src/false.sh: Always exit unsuccessfully, even with - --help and --version. Suggested by Felix Lee. - -1999-07-12 Jim Meyering - - * src/sys2.h (mempcpy): Define only if not already defined. - Reported by Collin Rogowski. - -1999-05-27 Volker Borchert - - * tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix. - -1999-05-25 Jim Meyering - - * tests/stty/basic-1: Fix non-portable use of `tr' that caused - this test to fail when run with a SysV-style tr. - Based on a patch from Kaveh Ghazi. - -1999-05-21 Jim Meyering - - * Version 1.16k. - * configuration fixes: see m4/ChangeLog. - -1999-05-16 Jim Meyering - - * Version 1.16j. - - * configure.in (AC_SEARCH_LIBS): Set LIB_CRYPT to $ac_cv_search_crypt, - to go along with the new macro in m4/search-libs.m4. - -1999-05-14 Jim Meyering - - * lib/getugroups.c (getugroups): Don't dereference a null pointer when - running `id USER' for some USER that is listed on the RHS in /etc/group. - From Sander van Malssen. - Add some curly braces, use STREQ, reverse the sense of a test - and use `continue' to save a level of nesting. - - * tests/Makefile.am (envvar-check): Renamed from check-local. - (check): Depend on envvar-check so the envvar check is performed - before all other tests. Reported by Volker Borchert. - * tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects, - so CDPATH is mentioned in the message. Reported by Volker Borchert. - -1999-05-10 Jim Meyering - - * src/uptime.c (AUTHORS): add Kaveh. - - Expand each `&' character in the gecos field. - * src/pinky.c (count_ampersands): New function. - (create_fullname): New function. - (print_entry): Use create_fullname here. - (print_long_entry): Use it here, too. - From Kaveh Ghazi. - -1999-05-09 Jim Meyering - - * lib/regex.c: Update from libc. - - * Version 1.16i. - - * configure.in: Clean up checks for libraries so that we don't add - -lshadow unless necessary. Reported by Joseph S. Myers. - -1999-05-05 Jim Meyering - - Add definitions to help read utmpx on systems with utmpname. - * lib/readutmp.h (UTMP_NAME_FUNCTION): Define. - (SET_UTMP_ENT): Likewise. - (GET_UTMP_ENT): Likewise. - (END_UTMP_ENT): Likewise. - * lib/readutmp.c (read_utmp): Use the new definitions. - From Kaveh Ghazi. - - * src/date.c (show_date): Change an automatic aggregate initializer - to be a static one. For SunOS4's cc. From Kaveh Ghazi. - -1999-05-03 Jim Meyering - - * configure.in: Remove duplicate use of jm_FUNC_GNU_STRFTIME. - Kaveh Ghazi reported that strftime.o was listed twice in the command - to build libsu.a. - -1999-05-02 Jim Meyering - - * Version 1.16h. - - * src/hostname.c (main): Give a better diagnostic when we fail to - set the hostname. - - * man/Makefile.summ (hostid-summary): Use correct description. - Reported by Joseph S. Myers. - - * lib/readutmp.c (read_utmp): Ignore the return value from utmpname. - -1999-04-30 Jim Meyering - - * src/dirname.c (main): Manually handle `--', since we no longer - call getopt. Reported by Joseph S. Myers. - * src/basename.c (main): Likewise. - * src/factor.c (main): Likewise. - -1999-04-25 Jim Meyering - - * src/seq.c (main): Handle the case in which seq is given no args. - Reported by John Gotts. - (main): Revert last change. - Instead, loop on `optind < argc' to protect use of argv[optind]. - - * lib/human.c : Don't include it here. - * lib/human.h : Include it here instead. - : Include it here too. - Reported by Andreas Jaeger. - - * src/nice.c [NDEBUG]: Remove definition. - Reported by Andreas Jaeger. - -1999-04-24 Jim Meyering - - * src/who.c (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'. - - * Version 1.16g. - - * configure.in: Use AC_CANONICAL_HOST. - -1999-04-20 Jim Meyering - - Update factor to use `uintmax_t'. - * src/factor.c : Include this, not xstrtoul.h. - : Include. - Use uintmax_t in place of unsigned long. - Use human_readable to convert to strings for printing. - * lib/xstrtoumax.c: New file. - * lib/human.c: New file. - * lib/human.h: New file. - * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c. - (noinst_HEADERS): Add human.h. Remove xstrtoul.h. - -1999-04-19 Jim Meyering - - * src/seq.c (main): Restore `+' in getopt_long string. Otherwise, - commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab. - * tests/seq/basic: Add tests for that. - -1999-04-17 Jim Meyering - - * tests/seq: New directory and basic tests. - * tests/Makefile.am (SUBDIRS): Add seq. - * configure.in (AC_OUTPUT): Add tests/seq/Makefile. - -1999-04-17 Andreas Schwab - - * configure.in: Check for localeconv. - - * src/seq.c (decimal_point): New variable. - (main): Set it to locale's decimal point. Fix recognition of - negative number as argument. - (get_width_format): Correctly handle a negative min_val or step - when computing fraction width. Use decimal_point. - -1999-04-08 Jim Meyering - - 1999-03-25 James R. Van Zandt - * doc/sh-utils.texi (Options for date): Document --iso-8601 - * src/date.c: Accept new option: --iso-8601. - * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c. - (noinst_HEADERS): Add argmatch.h and quotearg.h. - * lib/argmatch.c: New file. - * lib/argmatch.h: New file. - * lib/quotearg.c: New file. - * lib/quotearg.h: New file. - -1999-03-30 Jim Meyering - - * src/sys2.h: Include "closeout.h" and "version-etc.h" - - * src/*.c (PROGRAM_NAME, AUTHORS): Define and use. - - * src/date.c: No longer include long-options.h. - [long_options]: Add entries for --help and --version. - Remove parse_long_options call. - (main) [getopt switch]: Add a case for each of --help and --version. - * src/env.c: Likewise. - * src/id.c: Likewise. - * src/pinky.c: Likewise. - * src/seq.c: Likewise. - * src/su.c: Likewise. - * src/sys2.h: Likewise. - * src/tee.c: Likewise. - * src/tty.c: Likewise. - * src/uname.c: Likewise. - * src/who.c: Likewise. - -1999-03-29 Jim Meyering - - * configure.in (GNU_PACKAGE): Remove related code -- now it's in - the catch-all for shared autoconf code, m4/jm-macros.m4. - (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use - this instead. - -1999-03-28 Jim Meyering - - * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME. - -1999-03-28 Paul Eggert - - * lib/getdate.y (get_date): Reuse tm_isdst of first localtime - call; this is an improvement on a bug fix suggested by - martin@dresden.nacamar.de. Do not assume that localtime and - gmtime return non-null. - -1999-03-27 Jim Meyering - - * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show - that only one of --help or --version is recognized at a time. - Reported by Meelis Roos. - * src/true.sh: Likewise. - - * src/id.c (print_user): Use uid_t instead of int. - (print_group): Use gid_t instead of int. - From John Bley. - -1999-03-26 Jim Meyering - - * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c. - (noinst_HEADERS): Add version-etc.h. - -1999-03-20 Jim Meyering - - * src/nohup.sh: Don't modify PATH just to get GNU nice. Instead, - try to find an absolute path for GNU nice. From Bruno Haible. - -1999-03-19 Jim Meyering - - * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of - open-coding it. - -1999-03-17 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk). - -1999-03-13 Jim Meyering - - * lib/basename.c (base_name): If NAME is all slashes, return `/' (in - conformance with the single unix spec). Reported by Peter Moulder. - -1999-03-10 Jim Meyering - - * src/uptime.c: Declare getloadavg so I can build with -Werror. - - * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread. - - * lib/canon-host.c (canon_host): Don't use he->h_addr directly. - Based on a patch from Savochkin Andrey Vladimirovich. - -1999-03-09 Jim Meyering - - Running `id USER' doesn't report any groups if there is no entry - for USER in /etc/group. Always include the one from /etc/passwd. - * src/id.c (xgetgroups): Take new parameter, gid, and pass - it to getugroups. - (print_group_list): Call getpwuid and adjust calls to xgetgroups - to include new parameter. - * lib/getugroups.c (getugroups): Take new parameter, gid. - Add gid to the list of groups. - From Ulrich Drepper. - * lib/getgroups.c (getgroups): Protoize. - -1999-03-08 Jim Meyering - - * tests/basename: New directory and tests. - * tests/Makefile.am (SUBDIRS): Add basename. - * configure.in (AC_OUTPUT): Add tests/basename/Makefile. - -1999-03-06 Jim Meyering - - * src/date.c (batch_convert): Use a `%s' format in error call, - in case the argument string contains a `%'. - - * man/Makefile.am (man_MANS): Add pinky.1. - * man/Makefile.summ (pinky-summary): Define. - - * src/date.c: Include long-options.h. - [long_options]: Remove the "help" and "version" entries. - Remove declarations of show_help and show_version. - (main): Use parse_long_options, including author name(s). - Remove the show_version and show_help blocks. - * src/env.c: Likewise. - * src/id.c: Likewise. - * src/logname.c: Likewise. - * src/pathchk.c: Likewise. - * src/pinky.c: Likewise. - * src/printenv.c: Likewise. - * src/seq.c: Likewise. - * src/sleep.c: Likewise. - * src/su.c: Likewise. - * src/tee.c: Likewise. - * src/tty.c: Likewise. - * src/uname.c: Likewise. - * src/uptime.c: Likewise. - * src/users.c: Likewise. - * src/who.c: Likewise. - * src/whoami.c: Likewise. - -1999-03-04 Jim Meyering - - * src/basename.c (main): Include author name argument in call to - parse_long_options. - * src/chroot.c: Likewise. - * src/dirname.c: Likewise. - * src/echo.c: Likewise. - * src/expr.c: Likewise. - * src/factor.c: Likewise. - * src/hostid.c: Likewise. - * src/hostname.c: Likewise. - * src/nice.c: Likewise. - * src/printf.c: Likewise. - * src/pwd.c: Likewise. - * src/stty.c: Likewise. - * src/test.c: Likewise. - * src/yes.c: Likewise. - -1999-03-02 Jim Meyering - - * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite. - -1999-02-15 Jim Meyering - - * src/stty.c (main): #ifdef-out unreachable code. - - * src/pinky.c (usage): Add a one-line description. - Suggestion from Karl Berry. - -1999-02-08 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Czech (cs). - -1999-02-07 Jim Meyering - - * tests/stty/basic-1: Run all tests even if some fail. - Don't use trap. - - * tests/stty/basic-1: Use `stty', not $STTY. - Fix typo in VERBOSE code: s/\$RM/stty/. - * tests/stty/row-col-1: Likewise. - - * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY. - - Include stdio.h before defining `_unlocked' macros. - * src/pinky.c: Include stdio.h. - * src/uptime.c: Likewise. - * src/users.c: Likewise. - * src/who.c: Likewise. - * lib/readutmp.c: Include stdio.h here... - * lib/readutmp.h: ...not here. - From Ulrich Drepper. - - * Version 1.16f. - - * Makefile.maint (my-distcheck): Don't depend on dist, now that this - is hooked up to the distcheck rule. - * Makefile.am (distcheck-hook): New target and rule -- link to shared - rule, my-distcheck, in Makefile.maint. - - * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file, - group-member.m4, and just use this new macro. - -1999-01-31 Jim Meyering - - * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of - @ifinfo so `makeinfo --html ...' works. From Karl Berry. - - * src/chroot.c (main): Call chdir ("/") after chroot. - Suggestion from James Youngman. - - * src/uptime.c (print_uptime): Use the C numeric locale for sscanf - of /proc/uptime data, then restore. - * lib/getloadavg.c: Include locale.h. - [!HAVE_SETLOCALE]: Define-away setlocale. - (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the - `C' numeric locale. Restore afterwards. - Based on a suggestion from Thomas Quinot. - - * lib/strtod.c: Protoize. - -1999-01-30 Jim Meyering - - * acconfig.h: Remove lots of now-unnecessary #undefs. - - * configure.in: Require autoconf 2.13. - - * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl. - - * configure.in (ALL_LINGUAS): Add Greek (el). - * po/el.po: New file. - -1999-01-25 Jim Meyering - - * src/date.c (usage): Remove static attribute. - Move function be the first in the file. - * src/env.c: Likewise. - * src/id.c: Likewise. - * src/nice.c: Likewise. - * src/pathchk.c: Likewise. - * src/tty.c: Likewise. - * src/uname.c: Likewise. - - * src/*.c (usage): Remove static attribute. - -1999-01-14 Jim Meyering - - * src/date.c: Include closeout.h. - (main): Use close_stdout_status. - * src/printenv.c: Likewise. - * src/tty.c: Likewise. - - * src/hostid.c: Include closeout.h. - (main): Use close_stdout. - * src/tee.c: Likewise. - -1999-01-10 Jim Meyering - - * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD, - who_DEPENDENCIES): Remove definitions. - - * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c. - (lstat.c, stat.c): New rules. - - * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver. - - * configure.in: Require autoconf-2.13. - Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries - to resolve gethostbyname. - -1998-12-22 Jim Meyering - - * configure.in (ALL_LINGUAS): Add chinese (zh). - -1998-12-13 Jim Meyering - - * lib/putenv.c: Don't include stdlib.h and declare malloc and free. - This works around Solaris 5.7's conflicting prototype. - Reported by Karl Berry. - - * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in. - (stat.c): Likewise. - (EXTRA_DIST): Add xstat.in. - * lib/stat.c: Remove file. - * lib/lstat.c: Remove file. - * lib/xstat.in (xstat@): New file. - -1998-12-10 Andreas Schwab - - * src/date.c (main): Arrange to exit unsuccessfully when stime fails. - -1998-12-07 Jim Meyering - - * configure.in (ALL_LINGUAS): Add Russian (ru). - -1998-10-31 Jim Meyering - - * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm. - * tests/Fetish.pm: New file. - - * tests/factor/Makefile.am: Rewrite to use new testing framework. - * tests/factor/Test.pm: Remove file. - * tests/factor/factor-tests: Remove file. - * tests/factor/basic: New file (rewrite of Test.pm). - - * acconfig.h (stat): New #undef. - -1998-10-03 Jim Meyering - - * man/Makefile.am: Switch to using help2man. - (EXTRA_DIST): Add Makefile.summ. - - * man/help2man: Invoke program with --manhelp option only if - --name=STRING not specified. Otherwise, this would fail with `yes'. - * man/Makefile.summ: New file. - * man/Makefile.maint: Include it. - * man/help2man: New file. - * man/GNUmakefile: New file. - * man/Makefile.maint: New file. - * man/*.x: New files. - * man/*.1: Remove files. - - * src/Makefile.am (install-exec-local): Change comments to use `##' - to avoid automake warning. - - * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/ - (libsu_a_SOURCES): s/posixtm.y/posixtm.y/ - (libsu_a_SOURCES): Remove getdate.c. Add fnmatch.h. - - * src/date.c (main): Update to use new version of posixtime. - * lib/posixtm.c: New file. - * lib/posixtm.h: New file. - * lib/posixtm.y: Remove file. - - * lib/fnmatch.c: New file. (unused) - * lib/fnmatch.h: New file. (unused) - -1998-09-27 Jim Meyering - - * src/seq.c (main): Decrement optind when we find an `option' that - looks like -N. Reported by Clark Morgan. - -1998-09-26 Jim Meyering - - * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return - LONGINT_INVALID for strings that begin with `-'. - - * tests/factor/Test.pm: Add a test for negative argument. - Tweak postprocessing framework. - -1998-09-19 Jim Meyering - - * src/stty.c (main): Revamp option processing, again. - stty couldn't parse some of its options. - * tests/stty/basic-1: New test. - * tests/stty/Makefile.am (TESTS): Add basic-1. - -1998-08-29 Jim Meyering - - * src/su.c (longopts): Use corresponding short-option character - in place of `1', and `NULL' in place of pointer in initialization. - -1998-08-11 Jim Meyering - - * src/uptime.c (usage): Correct description. Reported by John Murphy. - -1998-07-16 Jim Meyering - - * lib/Makefile.am (noinst_HEADERS): Add lchown.h. - * lib/lchown.h: New file, just to define ENOSYS on systems that lack it. - * lib/lchown.c: Include lchown.h. - -1998-07-15 Jim Meyering - - * src/seq.c (check_format): Add `5' to the list of digits. - Reported by Donni Erpel. - -1998-07-12 Jim Meyering - - * tests/test: New directory and tests. - * tests/Makefile.am (SUBDIRS): Add test. - * configure.in (AC_OUTPUT): Add tests/test/Makefile. - -1998-07-04 Jim Meyering - - * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's - automatically discovered by automake. - (noinst_HEADERS): Remove unused safe-read.h. - - * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in - DISTCLEANFILES. - (CLEANFILES): Add su, since we build it unconditionally, yet it's - never put in @OPTIONAL_BIN_PROGS@. - -1998-06-29 Jim Meyering - - * src/uptime.c: Include system.h only after error.h and readutmp.h - so we don't get redefinition warnings about getc, etc. - * src/who.c: Likewise. - * src/users.c: Likewise. - -1998-06-28 Jim Meyering - - * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers. - -1998-06-06 Jim Meyering - - * src/test.c (unary_operator): Fail if the operand to -t is not valid. - (posixtest): Treat `test -t' the same as `test -t 1'. - -1998-05-26 Jim Meyering - - * src/test.c (two_arguments): Don't test argv[pos][2] if it's - past end of string. - -1998-05-25 Jim Meyering - - * configure.in (_GNU_SOURCE): AC_DEFINE it here. - * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section. - [!_GNU_SOURCE]: Add #undef instead. - -1998-05-16 Jim Meyering - - * lib/readutmp.c (read_utmp): Add variant for systems that have - the utmpname function. - Ansideclify. - * configure.in: Check for utmpname. - - * configure.in (jm_MACROS): New wrapper macro. - Remove uses of most jm_* macros. - - * acconfig.h (chown): Add undef. - (D_INO_IN_DIRENT): Likewise. - (D_TYPE_IN_DIRENT): Likewise. - (ssize_t): Likewise. - - * lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS=' - lines from the m4/*.m4 macros, so the hack of including some - custom-replaced C source file names here is no longer needed. - -1998-05-03 Jim Meyering - - * po/: Update from gettext-0.10.35. - * intl/: Likewise. - * configure.in: Remove use of AC_LINK_FILES. - (AC_OUTPUT): Remove po/Makefile-generating sed command. - -1998-05-02 Jim Meyering - - * src/seq.c (check_format): Use ISDIGIT, not isdigit. - -1998-04-26 Jim Meyering - - * configure.in: Use jm_ASSERT. - * acconfig.h: Add NDEBUG. - -1998-04-13 Jim Meyering - - * lib/Makefile.am (noinst_HEADERS): Add safe-read.h. - -1998-04-09 Jim Meyering - - * configure.in (AM_MAINTAINER_MODE): Remove it. - No longer use AC_PATH_PROG to check for perl. - (jm_PERL): Use this instead. - -1998-04-04 Jim Meyering - - * lib/readutmp.h (PARAMS): Define. - - * tests/Makefile.am (SUBDIRS): Add stty. - * tests/stty/row-col-1: New file. - * tests/stty: New directory. - * configure.in (AC_OUTPUT): Add tests/stty/Makefile. - - * src/stty.c: Use STREQ in place of strcmp everywhere. - (valid_options): Indent. - Parenthesize assignment in while expr. - (main): s/case 'f':/case 'F':/ - Tweak error messages to make them consistent. - Remove #if-0'd block. - Move dcl of `fdflags' into scope where it's used. - Remove dcl of unused `cp'. - Use "%s", not device_name, as the format string, in case the - latter contains `%'. - - [1998-03-31 Theodore Ts'o ] - * src/stty.c (valid_options): New function. - (main): Fix broken options parsing that worked only - by serendipity (getopt_long_only already parsed short options; no - need to parse them again manually!). Add support for the --file - option, which allows the user to specify the device whose line - settings are to be set. This is necessary because POSIX ttys will - block waiting for carrier detect to go high if CLOCAL is not set, - unless the device is opened with the O_NONBLOCK flag. - Unfortunately, the shell doesn't use this flag, so users lose. - Opening the device in stty is the easist way to fix this. - (speeds): Add support for 230400 and 460800 line speeds, which are - supported by Linux. - - * acconfig.h (uintmax_t): Add #undef. - - * configure.in (jm_AC_HEADER_INTTYPES_H): Use it. - (jm_AC_TYPE_UINTMAX_T): Use it. - (jm_PREREQ): Use it. - - * src/system.h: Sync with system.c from fileutils. - - * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal - know about the m4/ subdirectory. - * Makefile.maint (aclocal-files): Remove now-unnecessary (with - automake-1.2h and the above change) aclocal-related rules and includes. - -1998-04-03 Jim Meyering - - * lib/closeout.c: New file. - * lib/closeout.h: New file. - * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c. - (noinst_HEADERS): Add closeout.h. - -1998-03-27 Jim Meyering - - * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h. - -1998-03-26 Jim Meyering - - * src/date.c (batch_convert): Remove spurious space in error message. - Reported by Karl Berry. - -1998-03-13 Jim Meyering - - * lib/getugroups.c (getugroups): Don't add a group number if it - would be a duplicate. From Ulrich Drepper. - -1998-02-22 Jim Meyering - - * tests/Makefile.am (EXTRA_DIST): Add mk-script. - * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl. - (mk_script): Set to ../mk-script. - (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script. - Remove @MAINT@ cruft. - (Makefile.am): Likewise. - Remove @MAINT@ cruft. Now `missing' will explain the failure - when people don't have Perl yet modify a file whose rebuilding - would lead to the use of Perl. - - * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@. - (who_LDADD): Likewise. - (pinky_DEPENDENCIES): Set to $(LDADD) - (who_DEPENDENCIES): Likewise. - -1998-02-20 Jim Meyering - - * lib/getdate.h: Removed. Could cause confusion with an - automake-generated `.y.h' rule. - * lib/get-date.h: Renamed from getdate.h. - * lib/getdate.y: s/getdate.h/get-date.h/ - * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/ - * src/date.c: s/getdate.h/get-date.h/ - -1998-02-16 Jim Meyering - - * configure.in (jm_FUNC_LSTAT): Use it. - (jm_FUNC_STAT): Use it. - * acconfig.h: Add lstat. - * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c. - -1998-02-06 Jim Meyering - - * tests/nice: Fail immediately if this test is run with `nice' - level different from zero. Reported by Philippe De Muyter. - -1998-02-03 Philippe De Muyter - - * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS. - - * lib/putenv.c (sys/types.h): Include to get size_t on some systems. - (NULL): Define if needed. - -1998-01-31 Jim Meyering - - * configure.in (AC_LFS): Use it. - -1998-01-25 Jim Meyering - - * Makefile.maint: New file. - * Makefile.am: Move rules common to textutils, fileutils, sh-utils - into Makefile.maint. - Include Makefile.maint. - (EXTRA_DIST): Add Makefile.maint. - -1998-01-03 Jim Meyering - - * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr. - - * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so - those files will be built via the ANSI2KNR-filtering rules if necessary. - -1997-12-25 Jim Meyering - - * configure.in: Remove AC_DEFINE of _GNU_SOURCE. - * acconfig.h (_GNU_SOURCE): Define if not already defined. - Put this code in @TOP@ section. - (_GNU_SOURCE): Remove #undef. - -1997-12-22 Jim Meyering - - * configure.in: AC_DEFINE _GNU_SOURCE. - * acconfig.h: Add _GNU_SOURCE. - -1997-12-21 Jim Meyering - - * src/date.c: s/__P/PARAMS/ - * src/env.c: Likewise. - * src/expr.c: Likewise. - * src/id.c: Likewise. - * src/nice.c: Likewise. - * src/pathchk.c: Likewise. - * src/seq.c: Likewise. - * src/sleep.c: Likewise. - * src/stty.c: Likewise. - * src/tee.c: Likewise. - * src/test.c: Likewise. - * src/tty.c: Likewise. - * src/uname.c: Likewise. - - * src/system.h: Merge in several things from fileutils' version of - this file. - - * src/factor.c: Don't include limits.h. - (UINT_MAX): Don't define. - (INT_MAX): Don't define. - These are all done in system.h now. - * src/hostname.c: Don't include limits.h. - * src/id.c: Don't include limits.h or sys/param.h. - * src/pathchk.c: Don't include limits.h. - * src/su.c: Likewise. - -1997-12-10 Jim Meyering - - * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying - to strdup it. - Patch from Dick Streefland. - -1997-11-17 Paul Eggert - - * lib/mktime.c, lib/strftime.c (_REENTRANT): #define, - as some hosts need this to declare localtime_r properly. - -1997-11-15 Jim Meyering - - * intl/Makefile.in (distclean): Don't remove libintl.h here. - * Makefile.am (DISTCLEANFILES): Remove it here instead. - - * m4/Makefile.am (EXTRA_DIST): Add mktime.m4. - * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake. - - * m4/strftime.m4: Check for %F format. - -1997-11-14 Jim Meyering - - * m4/mktime.m4: Temporarily add a copy of this file from the automake - distribution. - (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME. - (irix_6_4_bug): New function based on code from Ariel Faigon. - (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's - infinite looping mktime. - Portability tweaks from Paul Eggert. - -1997-11-13 Jim Meyering - - * lib/mktime.c: Update from FSF. - * lib/strftime.c: Update from FSF. - * m4/strftime.m4: Check for POSIX.2's %f format spec. - -1997-11-12 Jim Meyering - - * configure.in (AC_CHECK_FUNCS): Add mempcpy. - * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define. - * src/date.c (batch_convert): Use mempcpy rather than stpcpy. - -1997-11-09 Jim Meyering - - * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r. - * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r. - (jm_FUNC_GNU_STRFTIME): Use new macro. - (jm_FUNC_STRFTIME): New macro. Likewise. - Reported by Noel Cragg. - -1997-11-02 Jim Meyering - - * acconfig.h: Add malloc and realloc. - -1997-10-25 Jim Meyering - - * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc. - (xcalloc): #ifdef-out unused function. - (xrealloc): Remove code to work around deficient versions of realloc. - Now we have an autoconf-enabled replacement version. - (xmalloc): Remove code to work around deficient versions of malloc. - Now we have an autoconf-enabled replacement version. - - * configure.in (jm_FUNC_MALLOC): Use it. - (jm_FUNC_REALLOC): Use it. - * lib/Makefile.am (noinst_HEADERS): Add xalloc.h. - (EXTRA_DIST): Add realloc.c. - (EXTRA_DIST): Add malloc.c. - - * lib/malloc.c: New file. - * m4/malloc.m4: New file. - * m4/Makefile.am (EXTRA_DIST): Add malloc.m4. - - * lib/xalloc.h: New file. - * lib/xmalloc.c: Updated from textutils. - - * src/*.c: Remove old-style xmalloc and xrealloc decls. - * src/system.h: Include xalloc.h. - Remove dcls of xmalloc, xcalloc and xrealloc. - -1997-10-23 Jim Meyering - - * Makefile.am (aclocal-files): Also depend on m4/Makefile.am. - - * src/system.h [!HAVE_DECLARATION_FREE]: Declare free. - [!HAVE_DECLARATION_MALLOC]: Declare malloc. - [!HAVE_DECLARATION_REALLOC]: Declare realloc. - [!HAVE_DECLARATION_STPCPY]: Declare stpcpy. - [!HAVE_DECLARATION_STRSTR]: Declare strstr. - [STREQ]: Define. - * src/date.c: Remove stpcpy decl. - * src/expr.c: Remove strstr decl. - * src/test.c [STREQ]: Undef then redefine. - On some systems, strstr and stpcpy are macros, so declaring them - unconditionally gets syntax errors. - Reported by Mark M. Kettenis. - - * configure.in: Use jm_CHECK_DECLS. - * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4. - -1997-10-22 Jim Meyering - - * m4/decl.m4: New file. - * m4/check-decl.m4: New file. New macro, jm_CHECK_DECLS. - -1997-10-07 Jim Meyering - - * src/*.c: Update bug-reporting address. - * src/*.sh: Update bug-reporting address. - -1997-10-02 Jim Meyering - - * tests/date/Test.pm (test_vector): Remove _%Z from test `9'. - The timezone string was too system dependent. - -1997-09-25 Jim Meyering - - * src/echo.c: Make echo conform to POSIX. By default, don't - interpret backslash escape sequences. - [V9_DEFAULT]: Don't #define. - (usage): Document -e option. - (main): Recognize options iff POSIXLY_CORRECT is not set. - From Bruno Haible. - -1997-09-19 Jim Meyering - - * lib/getusershell.c (IN_CTYPE_DOMAIN): Define. - (ISSPACE): Define. - (readname): Use ISSPACE, not isspace. - * lib/strtod.c (IN_CTYPE_DOMAIN): Define. - (ISSPACE): Define. - (ISDIGIT): Define. - (TOLOWER): Define. - Use upper-case versions of ctype macros. - * lib/strtol.c (IN_CTYPE_DOMAIN): Define. - (ISSPACE): Guard with IN_CTYPE_DOMAIN. - (ISDIGIT): Guard with IN_CTYPE_DOMAIN. - (TOUPPER): Guard with IN_CTYPE_DOMAIN. - From Bruno Haible. - -1997-09-17 Jim Meyering - - * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT - is *not* set. Reported by Frank T Lofaro. - - * src/hostid.c: New file. - * src/Makefile.am (EXTRA_PROGRAMS): Add hostid. - * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid, - and if found add hostid to the list. - * man/hostid.1: New file. - * man/Makefile.am (man_MANS): Add hostid.1. - -1997-08-31 Jim Meyering - - * src/who.c (main): New option --lookup (-l). - (print_entry): Only call canon_host if user explicitly asks for it. - (usage): Describe --lookup. - From Galen Hazelwood. - - * configure.in (ALL_LINGUAS): Add Spanish (es). - -1997-08-02 Jim Meyering - - * src/Makefile.am (bin_PROGRAMS): Add pinky. - - * src/pinky.c: New file. From Kaveh Ghazi. - * po/POTFILES.in: Add pinky.c. - -1997-07-19 Andreas Schwab - - * src/date.c (show_date): Don't hang if strftime produces an empty - string. - -1997-07-16 Jim Meyering - - * src/groups.sh: Exit with status from subsidiary `id' command. - Don't print `$name : $groups' if id fails. - Reported by Austin Donnelly. - -1997-07-15 Jim Meyering - - * lib/getloadavg.c: Merge in changes from FSF. - -1997-07-13 Jim Meyering - - * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi. - Now, automake includes it automatically. - -1997-07-12 Jim Meyering - - * po/Makefile.in.in (DISTFILES): Remove ChangeLog. - * po/POTFILES.in: Add who.c, users.c, uptime.c. - Remove who-users.c. - - * src/who.c: Rename lots of `this' locals. - Make some parameters `const'. - (who): Update read_utmp caller. - (search_entries): Take additional param: utmp_buf. - Update read_utmp caller. - (who_am_i): Update read_utmp caller. - - * src/users.c (users): Update read_utmp caller. - * src/uptime.c (uptime): Update read_utmp caller. - - * lib/readutmp.h (PARAMS): Update prototype. - (utmp_contents): Remove dcl. - - * lib/readutmp.c (read_utmp): Take new params: count and buffer. - Return boolean indicating failure. - Now, caller must give diagnostic upon failure. - -1997-07-12 Kaveh R. Ghazi - - * lib/readutmp.c, lib/readutmp.h: New files implementing shared - functionality from src/who-users.c. - - * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c. - (noinst_HEADERS): Add readutmp.h. - - * src/who.c, src/users.c, src/uptime.c: Split these so they no - longer derive from the template source file who-users.c. Use - shared functionality from lib/readutmp.c instead. - - * src/Makefile.am: Remove rules to build who.c, users.c and - uptime.c from template source file who-users.c. Handle these - files as stand-alone sources. - - * src/who-users.c: Remove file. It is no longer used. - -1997-07-12 Jim Meyering - - * src/date.c (MAYBE_SET_TZ_UTC0): New macro. - (set_tz): New function. - (batch_convert): If necessary, save the initial value of TZ and - for each date in the file, restore it before each call to get_date, - then set it to UTC0 before each show_date call. - (main): Don't set TZ before calling get_date. - Set TZ after get_date call and before show_date call. - Reported by Matthew Braun. - * tests/date/Test.pm: Add new tests for this bug. - Add tests based on new examples in documentation. - - * stpcpy.c: New file. - * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c - -1997-07-05 Jim Meyering - - * src/Makefile.am (EXTRA_PROGRAMS): Add su here. - (bin_PROGRAMS): Remove su here. - (install-exec-local): Rewrite rule so that su is installed only if - it can be made setuid root. Before it was always installed and then - removed if it could *not* be made setuid root. That had the potential - undesirable side effect of removing (and not replacing) a working - version of su. - (all_local): New target. Dependend on su. Required now that su is - no longer in bin_PROGRAMS. - (uninstall-local): Remove su only if it comes from the GNU sh-utils. - - * src/su.c: Redefine/undef getusershell around inclusion of - (via system.h) so Cray's int-returning prototype doesn't conflict - with our char*-returning one. Reported by Johan Danielsson. - -1997-07-04 Jim Meyering - - * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to - generate tests/*/Makefile.am. - - * configure.in (ALL_LINGUAS): Add Norwegian (no). - - * tests/date/mk-script.pl (validate): Create test files in $(srcdir), - not in build dir. - * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir), - not in build dir. - * Makefile.am (aclocal-files): Look in source directory, not build dir. - From Andreas Schwab. - -1997-07-03 Jim Meyering - - * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment - setting. - -Wed Jul 2 11:05:09 1997 Jim Meyering - - * src/printf.c (STRTOX): Convert function header in macro definition - to K&R-style. Otherwise, ansi2knr would fail to convert the function - definitions to K&R for old style compilers. From Kaveh Ghazi. - -Tue Jul 1 06:28:00 1997 Jim Meyering - - * lib/putenv.c [putenv]: Undefine before including system headers. - Otherwise, the declaration of *rpl_putenv* conflicts with the system - prototype on at least Irix5.3. From Marcus Daniels. - -Sun Jun 29 07:18:25 1997 Jim Meyering - - * lib/putenv.c (rpl_putenv): Renamed from putenv. - [putenv]: Remove definition and subsequent #undef hack that avoided - conflicts with system prototypes. That didn't let the definition of - putenv to rpl_putenv from config.h get through. - Suggestion from Marcus Daniels. - - * configure.in (LIB_CRYPT): AC_SUBST new variable. Use it to add - crypt-related library (-lufc or -lcrypt) only for the program that - needs it (su), rather than to all executables. - * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'. - Suggestion from Ulrich Drepper. - - * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG - so tests get english strings. From Ulrich Drepper. - -Mon Jun 16 11:06:57 1997 Jim Meyering - - * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro. - * configure.in (jm_FUNC_PUTENV): Use it. - * acconfig.h (putenv): Add #undef. - * lib/Makefile.am (EXTRA_DIST): Add putenv.c. - (libsu_a_SOURCES): Remove putenv.c. - * m4/Makefile.am (EXTRA_DIST): Add putenv.m4. - -Thu Jun 12 06:48:23 1997 Jim Meyering - - * src/expr.c (eval6): Accept new unary operator, quote. - From Karl Heuer. - -Wed Jun 11 15:13:56 1997 Jim Meyering - - * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than - searching for `\(' to determine whether to return 0 or the empty - string. Before it would improperly return '' if the pattern - contained a substring like this: `\\('. From Karl Heuer. - For example, running expr c : '\\(' should print `0'. - -Sun Jun 1 12:00:10 1997 Jim Meyering - - * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units. - Patch from Richard Sharman . - * tests/date/Test.pm: Add tests using `next'. - -Tue May 27 06:08:06 1997 Jim Meyering - - * lib/basename.c: Don't include backupfile.h. - - * lib/Makefile.am (noinst_HEADERS): Add backupfile.h. - - * src/basename.c: Use base_name, not basename. - * src/su.c: Use base_name, not basename. - - * configure.in: Don't replace basename. Now it's always required. - - * lib/Makefile.am (libsu_a_SOURCES): Add basename.c. - - * lib/getopt.c: Update from glibc via patch-2.2.93. - * lib/getopt1.c: Likewise. - * lib/getopt.h: Likewise. - * lib/basename.c: Likewise. - -Sat May 24 13:26:04 1997 Jim Meyering - - * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are - distributed. This seems to be necessary for automake-1.1p. - -Thu May 1 00:10:11 1997 Jim Meyering - - * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c - spline.c test.c uname.c: Indent cpp-directives. - - * src/system.h (N_): Define. - -Sun Apr 27 18:30:53 1997 Jim Meyering - - * src/printf.c (cfcc_msg): File-scope constant. - (STRTOX): Use new constant as error message format string in macro. - Suggestion from Andreas Schwab. - (STRTOX): Don't fail because of extra character(s) following a - character constant. Give the *warning* only if !POSIXLY_CORRECT. - -Sun Apr 6 14:29:14 1997 Jim Meyering - - * src/printf.c: Reorder functions to obviate forward decls. - Change most char* dcls to const char*. - (STRTOX): New macro to eliminate code duplication. - (xstrtod, xstrtol, xstrtoul): Remove functions. - Use the STRTOX instead. - - * src/printf.c (STRTOX): Interpret arguments like 'a and "a - as POSIX requires. Derived from a patch by Dennis Henriksen. - -Sun Mar 23 15:20:17 1997 Jim Meyering - - * configure.in (ALL_LINGUAS): Add polish (pl). - -Sat Mar 22 00:03:02 1997 Jim Meyering - - * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l. - (aclocal.m4): Use aclocal's new -I option. - - * missing: New file -- from the automake-1.1m distribution. - -Thu Mar 20 21:10:44 1997 Jim Meyering - - * m4/ccstdc.m4: Remove file. - * m4/init.m4: Likewise. - * m4/sanity.m: Likewise. - * m4/protos.m: Likewise. - * m4/dmalloc.m4: Likewise. - * m4/error.m4: Likewise. - * m4/header.m4: Likewise. - * m4/install.m4: Likewise. - * m4/lispdir.m4: Likewise. - * m4/maintainer.m4: Likewise. - * m4/obstack.m4: Likewise. - * m4/ptrdiff.m4: Likewise. - * m4/regex.m4: Likewise. - * m4/strtod.m4: Likewise. - * m4/termios.m4: Likewise. - * m4/winsz.m4: Likewise. - -Tue Mar 18 06:46:54 1997 Jim Meyering - - * src/su.c: Indent cpp-directives to reflect nesting. - Change a few #ifdef to #if. - Remove 3 spurious #ifdef that were guarding an #undef each. - - * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid - shadowing global. - (print_numbers): Likewise. - - * src/who-users.c (idle_string): Rename local, IDLE, to avoid - shadowing global. - - * src/su.c (log_su): Resort to getpwuid if getlogin fails. - If no tty name is found, use `none' in the log message. - Based on a patch from Galen Hazelwood. - -Thu Mar 13 21:27:36 1997 Jim Meyering - - * lib/mktime.c (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0. - -Wed Feb 19 23:06:46 1997 Jim Meyering - - * src/factor.c (factor): Rewrite inner loop to be more efficient. - Patch from Torbjorn Granlund. - -Tue Feb 18 21:18:04 1997 Jim Meyering - - * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug - fixed on 1996-03-05. - Remove misleading `-' from leap-1 test. - - * tests/Makefile.am (SUBDIRS): Add factor. - * tests/factor: New directory. - * configure.in (AC_OUTPUT): Add tests/factor/Makefile. - -Tue Feb 4 22:03:13 1997 Jim Meyering - - * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H. - Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h. - * configure.in (AC_CHECK_HEADERS): Add termios.h. - -Fri Jan 31 21:13:13 1997 Jim Meyering - - * src/*.c (usage): Bracket bug-reporting address with <> and append - a period. - * src/*.sh: Likewise. - - * src/*.c: Compare getopt_long return value against -1, not EOF. - Use NULL, not `(int *) 0' as last parameter in getopt_long call. - -Mon Jan 27 21:43:50 1997 Jim Meyering - - * src/chroot.c (usage): Remove one space in message to make - colons line up. - -Sun Jan 26 12:51:05 1997 Jim Meyering - - * Version 1.16. - - * src/who-users.c (usage): Fix typo (--writeable -> --writable) - in help output. From Galen Hazelwood. - -Sat Jan 25 21:01:13 1997 Jim Meyering - - * src/factor.c (print_factors): Reflect changes to xstrtoul interface. - - * tests/date/mk-script.pl: Generated script now reflects - specification (in Test.pm) of default and per-test environment - settings. - -Fri Jan 24 23:36:00 1997 Jim Meyering - - * lib/long-options.c (parse_long_options): Reset optind to zero - before just returning so that getopt internals get initialized from - the probably-new parameters when/if getopt is called later. - This solves the problem (reintroduced with 1.15) where `stty -tabs' - would not work as advertised but instead act like `stty -a'. - Reported by Arne Juul. - Suggested fix from Ulrich Drepper. - -Wed Jan 22 20:12:31 1997 Jim Meyering - - * lib/getopt.c: Update from GNU C library. - * lib/getopt1.c: Update from GNU C library. - * lib/getopt.h: Update from GNU C library. - - * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in. - (SUBDIRS): Set to `date'. - - * configure.in: Check for perl. - (AC_OUTPUT): Add tests/date/Makefile. - * tests/date: New directory. - - * m4/getgroups.m4: Move the code from configure.in into - this macro that resorts to looking for getgroups in -lbsd. - Set new shell variable, GETGROUPS_LIB (that callers should check), - if it is found there. - * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS. - (AC_CHECK_FUNCS): Remove getgroups. - Remove code that resorts to looking for getgroups in -lbsd. - - * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values - for the TZ environment variable. Andre Novaes Cunha provided the - hairy TZ setting that exercized the Solaris tzset bug. - -1997-01-22 Paul Eggert - - * lib/strftime.c (_strftime_copytm): - New function, to work around Solaris 2.5 tzset bug. - - * m4/mktime.m4 (AM_FUNC_MKTIME): Fix bug in mktime test -- don't - test now, test a couple of thousand times. - - * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is - specified by Posix.1. - -Sat Jan 18 09:32:26 1997 Jim Meyering - - * lib/getdate.y (get_date): Change prototype to reflect const'ness - of parameters. - Indent cpp-directives to reflect nesting. - Indent with GNU indent. - - * lib/getdate.h: New file. - * src/date.c: Include getdate.h. - (, ): Don't include -- now getdate.h does it. - (get_date): Don't declare. getdate.h does it. - - * lib/Makefile.am (noinst_HEADERS): Add getdate.h. - - 1997-01-06 Paul Eggert - - * getdate.y: Rewrite to use mktime. - - : Don't include. - (mktime): Declare. - - (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode, - ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove. - (ToHour): New function (part of the old ToSeconds fn). - (ToYear): New function (part of the old Convert fn). - - (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour, - yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds, - Number): Now int instead of time_t. - (HOUR): Don't cast to time_t. - - (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens. - (UnitsTable): Use new units that are closer to the keywords. - - (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables. - (rel, relunit, get_date): Add support for them. - - (time): Fix timezone calculations for negative half-hour offsets - when integer division truncates towards minus infinity. - - (zone): Incorporiate DST calculation directly. - - (get_date): 2nd arg is now time_t *, not struct timeb *. - Use mktime to do most of the work, instead of computing it ourselves. - Guard against falsely reporting errors near the time_t boundaries - when parsing times in other time zones. - -Thu Jan 16 20:58:40 1997 Jim Meyering - - * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic. - * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here. - -Tue Jan 14 22:45:36 1997 Jim Meyering - - * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic. - Alphabetize functions. - - * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's - pstat_getdynamic function so we don't need any special privileges - to determine load averages. Patch from Kaveh Ghazi, based on a - sample implementation from Richard J. Rauenzahn. - Indent cpp-directives to reflect nesting. - -Wed Jan 8 16:38:24 1997 Jim Meyering - - * Version 1.15. - - * lib/getopt.c (_getopt_internal): Use `_', rather than the - (sometimes-)expansion `gettext'. - -Tue Jan 7 22:10:51 1997 Jim Meyering - - * src/nice.c (main): Work around failures induced by new version of - getopt.c by not modifying optind before the first getopt_long call - in main. With suggestions from Ulrich Drepper. - - * lib/getopt.c: New (more POSIX compliant) version from GNU libc. - [_]: Define to gettext also if ENABLE_NLS is defined. - This is temporary. - -Fri Jan 3 21:08:29 1997 Jim Meyering - - * acconfig.h (getgroups): Add #undef. - From Marcus Daniels. - -Fri Dec 27 17:25:18 1996 Jim Meyering - - * src/who-users.c [!WTMP_FILE]: Provide default path. - (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE. - Patch from Kaveh R. Ghazi. - Indent cpp directives. - - * m4/getgroups.m4: Rewrite the test so that systems lacking - getgroups don't try to use the supplied replacement function -- - that depends on the existence of such a function. - - * Makefile.am (aclocal.m4): No longer depend on acinclude.m4. - - * configure.in (jm_FUNC_GETGROUPS): Use it. - Reported by Marcus Daniels. - AC_REQUIRE version 2.12 of autoconf. - -Sun Dec 22 23:31:32 1996 Jim Meyering - - * configure.in: Increment version to 1.14a. - - * m4/Makefile.am (EXTRA_DIST): Add README. - -Fri Dec 20 19:28:37 1996 Jim Meyering - - * src/who-users.c (usage): Say that UTMP_FILE is the default FILE - rather than hard-coding /etc/utmp. Replace hard-coded /etc/wtmp - with WTMP_FILE. Suggestion from Eivind. - - * src/seq.c (usage): Tweak --help text. - - * configure.in (AC_OUTPUT): Add m4/Makefile. - - * lib/Makefile.am (EXTRA_DIST): Add getgroups.c. - - * Makefile.am (SUBDIRS): Add m4. - (aclocal-files): Add rules that rely on (GNU) make's include - directive that computes dependencies for aclocal.m4. - (aclocal.m4): Override automake-generated rule. - - * m4/Makefile.am: New file. - - * lib/strftime.c: Update from GNU libc. - - * m4/getline.m4: New file, extracted from acinclude.m4. - * m4/getloadavg.m4: Likewise. - * m4/jm-mktime.m4: Likewise. - * m4/jm-winsz1.m4: Likewise. - * m4/jm-winsz2.m4: Likewise. - * m4/memcmp.m4: Likewise. - * m4/strftime.m4: Likewise. - * m4/uptime.m4: Likewise. - - * m4/ccstdc.m4: Copied from automake-1.1l. - * m4/dmalloc.m4: Likewise. - * m4/error.m4: Likewise. - * m4/gettext.m4: Likewise. - * m4/header.m4: Likewise. - * m4/init.m4: Likewise. - * m4/install.m4: Likewise. - * m4/lcmessage.m4: Likewise. - * m4/lispdir.m4: Likewise. - * m4/maintainer.m4: Likewise. - * m4/mktime.m4: Likewise. - * m4/obstack.m4: Likewise. - * m4/progtest.m4: Likewise. - * m4/protos.m4: Likewise. - * m4/ptrdiff.m4: Likewise. - * m4/regex.m4: Likewise. - * m4/sanity.m4: Likewise. - * m4/strtod.m4: Likewise. - * m4/termios.m4: Likewise. - * m4/winsz.m4: Likewise. - - * m4/getgroups.m4: New file. - (jm_FUNC_GETGROUPS): New macro - * lib/getgroups.c: New file. - - * m4: New directory. - -Wed Dec 18 07:47:29 1996 Jim Meyering - - * configure.in (AC_CHECK_HEADERS): Add paths.h. - * src/su.c [HAVE_PATHS_H]: Include . - [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH. - [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH. - From Rik Faith. - - * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings - outside the quoted test program. Quote the test program with <<, >>. - Reported by Andreas Schwab. - (AM_FUNC_GETLOADAVG): Likewise. - (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier - -Tue Dec 17 18:54:32 1996 Jim Meyering - - * src/Makefile.am (install-exec-local): Properly redirect stdout - and stderr to /dev/null. From Eric Backus. - - * lib/strftime.c: Update from GNU libc. - - * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than - now-obsolete AC_C_CROSS. - (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one - since there's nothing GNU-specific about the replacement. Contrast - with gnu_ prefix added to strftime. - (jm_FUNC_MEMCMP): New macro. - * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP. - * acconfig.h: Add memcmp. - -Sun Dec 15 18:37:08 1996 Jim Meyering - - * configure.in (check for 3-argument setpriority function): Complete - partial change made on Dec 12. From Arne Juul. - -Sat Dec 14 14:51:50 1996 Jim Meyering - - * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable - name for cross compiling. - Remove definitions of gettext-related macros. The gettext - installation procedure installs corresponding .m4 files so that - aclocal will use them. - -Thu Dec 12 06:07:30 1996 Jim Meyering - - * Version 1.14. - - * src/system.h (ISDIGIT): Replace with smaller, faster edition - that yields nonzero only on ASCII digits. - (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT - used to have. From Paul Eggert. - - * configure.in: Bump version to 1.14. - - * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII. - (ISDIGIT): New definition from Paul Eggert. - This one evaluates its argument exactly once. - (yylex): Move increment out of ISALPHA argument. Use a - comma-expression instead. - - * src/false.sh (usage): Update bug-reporting address. - * src/groups.sh (usage): Likewise. - * src/nohup.sh (usage): Likewise. - * src/true.sh (usage): Likewise. - Reported by Karl Heuer. - - * configure.in (check for 3-argument setpriority function): Add nohup - to list of scripts, not the list of programs. - From Karl Heuer. - - * POTFILES.in: Add chroot.c. Reported by Michel Robitaille. - -Wed Dec 11 19:33:36 1996 Jim Meyering - - * Version 1.13. - -Tue Dec 10 06:36:57 1996 Jim Meyering - - * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro. Derived from the - code in configure.in, except now it punts when cross compiling. - Suggestion from Karl Heuer. - * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded - version. - - * lib/Makefile.am (EXTRA_DIST): Add mktime.c. - Reported by Thomas Bushnell. - - * configure.in: Bump version to 1.12t. - - * Regenerate all Makefile.in using a patched version of automake-1.1l. - - * acconfig.h (strftime): Add #undef. - From Karl Heuer. - - * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX. - From Karl Heuer. - -Mon Dec 9 06:58:11 1996 Jim Meyering - - * configure.in: Bump version to 1.12s. - - * lib/getdate.y (Convert): Don't reject all dates in 2038. - Some fit in 31 bits. - - * configure.in (jm_FUNC_GNU_STRFTIME): Use it. - - * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro. - (jm_FUNC_GNU_STRFTIME): New macro. - - * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c. - (EXTRA_DIST): Add strftime.c. - - * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo: - Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to - $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h. - Patch from Kaveh R. Ghazi. - - * src/stty.c: Include config.h before testing for - TERMIOS_NEEDS_XOPEN_SOURCE. - Patch from Karl Heuer. - - * configure.in (AC_ISC_POSIX): Remove kludgy macro. - Use this test instead: - (LIBS): Add -lcposix if it contains strerror. - Patch from Karl Heuer. - - * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to - ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation - problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such - space-separated assignments from right to left. Patch from Karl Heuer. - (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS. - Patch from Karl Heuer. - - * lib/strftime.c [HAVE_TZNAME]: Declare tzname. - Patch from Karl Heuer. - - * src/Makefile.am (.sh): Also substitute @bindir@. - Reported by Karl Heuer. - -Sun Dec 8 07:22:38 1996 Jim Meyering - - =========== Update for automake-1.1k. - * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k. - * configure.in (AM_CONFIG_HEADER): Use it. - (AC_OUTPUT): Remove stamp-h timestamping statement. - Now, AM_CONFIG_HEADER does it automatically. - * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per - new automake requirement. - Rename su_* variables to libsu_a_*. - -Sun Dec 8 00:08:44 1996 Jim Meyering - - * src/stty.c (get_win_size): Rename formal parameter from fileno to FD. - -Sat Dec 7 12:52:00 1996 Jim Meyering - - * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain. - From Michel Robitaille. - - * configure.in (ALL_LINGUAS): Add Portuguese (pt). - - * lib/getloadavg.c [__SVR4]: Define SVR4. - Remove duplicate `|| defined(SVR4)' disjunct guarding the - #define KERNEL_FILE "/unix" definiton. - - * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant - of the AM_ prefixed macro. - (check for TIOCGWINSZ in sys/pty): In essence, require - jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that - $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from - $gwinsz_in_termios_h) is defined. - - * lib/strftime.c (strftime): Remove " %Z" part of format for %c. - Correction from Paul Eggert. - -Fri Dec 6 20:52:07 1996 Jim Meyering - - * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of - AM_FUNC_MKTIME, simply AC_REQUIRE it. - -Mon Dec 2 20:59:38 1996 Jim Meyering - - * configure.in (su_cv_func_ut_host_in_utmp): Move test that can - define WINSIZE_IN_PTEM to precede test that checks whether - `TIOCGWINSZ in sys/pty.h'. The latter test uses the symbol. - (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME. - -Sun Dec 1 13:07:39 1996 Jim Meyering - - * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD - if L >= 1000, otherwise as MM/DD/YY. With this change, - date --date=DATE accepts dates like those in an RCS log listing. - -Sat Nov 30 22:08:00 1996 Jim Meyering - - * lib/strftime.c: Update from GNU libc. - -Fri Nov 29 22:16:40 1996 Jim Meyering - - * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support - --processor (-p). Print processor type. - (usage): Document it. - -Thu Nov 28 00:28:37 1996 Jim Meyering - - * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT - for gettext-0.10.25. - (AM_FUNC_GETLINE): Move the test to just before the check for getdelim. - -Sun Nov 24 11:02:29 1996 Jim Meyering - - * src/system.h [!defined STDIN_FILENO]: Define it. - [!defined STDOUT_FILENO]: Define it. - [!defined STDERR_FILENO]: Define it. - - * src/stty.c (get_win_size): Take a FILENO parameter rather than - trying to get a size from both stdin and stdout. - Update callers. - Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1. - - ========== From Karl Heuer ========= - * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE. - i386-pc-isc3.0, needs that in order to cause all of the useful - termios symbols to be defined, instead of just those that are - required by POSIX. This enables all of: iuclc ixany olcuc ocrnl - onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase. - - [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h. - - [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp. - termio.h defines VSWTCH, but termios.h defines VSUSP instead (since - POSIX requires that symbol). Define VSWTCH as a synonym if needed, - so that either one can be used on input. - (display_changed): If the slot for swtch is the same as the one for - susp, display only the setting for susp. - (display_all): Likewise. - - (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME). - On such systems, it's confusing to print both pairs. So, skip eof and - eol when icanon is unset, and skip min and time when icanon is set. - (display_all): Likewise. - - (set_window_size): Check only stdin (the device being queried) for - window size info. You don't want "stty - - * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline - isn't mentioned in AC_REPLACE_FUNCS. - - * env.c (usage): Alphabetize option descriptions the way sort -f would. - * test.c (usage): Likewise. - * who-users.c (usage): Likewise. - From Karl Berry. - -Fri Nov 22 20:33:26 1996 Jim Meyering - - * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this - way. AM_FUNC_GETLINE does it now. - - * configure.in New test to check for TIOCGWINSZ in sys/pty.h. - * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef. - From Karl Heuer. - - * src/printf.c (main): Warn if excess arguments are ignored. - E.g., printf foo bar now warns that it is ignoring the single - non-format argument, bar. - -Wed Nov 20 20:37:54 1996 Jim Meyering - - * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's - gethostname. Reported by Fletcher Mattox. - -Tue Nov 19 23:01:01 1996 Jim Meyering - - * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11 - has this built-in. - (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because - automake-1.1g couldn't deal with the _SCRIPTS suffix. - * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@. - -Sun Nov 17 20:49:37 1996 Jim Meyering - - * src/id.c (main): Ignore -a, for compatibility with SVR4. - Suggestion from Noah Friedman. - -Mon Nov 4 20:24:31 1996 Jim Meyering - - * configure.in (test for group_member): Handle it separately - so I can keep the hyphen (not the underscore) in the filename. - - Thu Oct 31 19:32:32 1996 Miles Bader - - * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname - returns an error other than buffer overflow, exit with an error - message instead of allocating infinite amounts of space. - [!EXIT_FAILURE] (EXIT_FAILURE): New macro. - : New include. - [!errno] (errno): New declaration. - - * acinclude.m4 (AM_FUNC_GETLINE): Use cache. - - * configure.in: Check for -linet library before checking for the - gethostbyname function. Suggested by Karl Heuer. - Use AM_FUNC_GETLINE. - - * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline. - Based on a test from Karl Heuer. - -Sun Nov 3 14:57:09 1996 Jim Meyering - - * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes - am_cv_saved_LIBS from LIBS. From Karl Heuer. - - * src/stty.c (recover_mode): Fail also if there are too many fields. - From Karl Heuer. - - * lib/canon-host.c: Include sys/types.h for the definitions - (otherwise missing on some systems) of caddr_t (used by - sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer. - -Sat Nov 2 00:16:16 1996 Jim Meyering - - * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split. - Otherwise, the generated info files have names longer than - the 14-byte max of some old systems. - Reported by Karl Heuer. - - * src/date.c (main): Give better diagnostic. - Suggestion from Karl Berry. - -Thu Oct 31 18:28:05 1996 Jim Meyering - - * lib/posixtm.y: Remap yacc globals to have pt_ prefix. - * lib/getdate.y: Remap yacc globals to have gd_ prefix. - Suggestion to do as in gdb/c-exp.y from Tom Tromey. - -Mon Oct 28 17:40:54 1996 Jim Meyering - - * src/Makefile.am (install-exec-local): Redirect stderr of chown to - /dev/null and suggest running `make install-root' upon failure to - install su. Suggestions from François Pinard. - - * configure.in: Don't output confusing diagnostic: `checking for - shadow password routines'. Suggestion from François Pinard. - -Thu Oct 24 13:50:46 1996 Andreas Schwab - - * src/tee.c (main): Ignore SIGPIPE. - -Wed Oct 23 23:42:43 1996 Jim Meyering - - * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START - with #if PROTOTYPES rather than with #ifdef __STDC__. The latter - loses with Dynix/PTX. - (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition. - Suggestion from Marcus Daniels. - -Mon Oct 21 16:49:08 1996 Jim Meyering - - * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel - defines or includes -- Linux systems simply read /proc/loadavg. - From Ulrich Drepper. - - * lib/Makefile.am (EXTRA_DIST): Remove group-member.c. - - * configure.in: Remove hack that created link from group_member.c - to group-member.c. - - * lib/group_member.c: New file. Renamed from group-member.c. - * lib/group-member.c: Delete. - - * src/stty.c (main): Remove TAB from diagnostic, for consistency. - -Sun Oct 20 09:03:51 1996 Jim Meyering - - * Makefile.am (install-root): Add it here, too. - - * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus. - - * src/Makefile.am (install-root): New rule. - Suggestion from François Pinard. - - * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER - directly. From Ulrich Drepper. - - * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'. - (EXTRA_DIST): Remove @README_ALPHA@. - - * configure.in: Remove README_ALPHA related code. Automake takes - care of it automatically now when in gnits mode. - - * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in - #include $srcdir/lib/getloadavg.c. The latter isn't defined at that - point in configure script. From Eric Backus. - -Fri Oct 18 21:31:58 1996 Jim Meyering - - * Makefile.am (cvs-dist): Uncomment cvs tag command. - (cvs-dist): Use cvs tag's -c option. - -Thu Oct 17 23:48:16 1996 Jim Meyering - - * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems - using YP. From Arne Juul. - -Sun Oct 13 07:34:15 1996 Jim Meyering - - * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG. - * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro - (by saving and restoring initial value). Instead, arrange for - substitution of @GETLOADAVG_LIBS@. - * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@, - not @UPTIME_LIBS@. - - * configure.in (ALL_LINGUAS): Add swedish (sv). - -Fri Oct 11 22:51:50 1996 Jim Meyering - - * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg - call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG. - From Kaveh R. Ghazi. - - * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@. - - * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but - with the following changes: - - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c. - Reported by Eric Backus. - - Check for Solaris' libkstat. - - Define C_GETLOADAVG if we end up using getloadavg.c. - From Kaveh R. Ghazi. - * acconfig.h (C_GETLOADAVG): Add it. - From Kaveh R. Ghazi. - - * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add - getloadavg-related libraries only when linking uptime. - -Thu Oct 10 23:50:05 1996 Jim Meyering - - * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y. - (su_SOURCES): Put them here instead. - Remove rules for building getdate.c and posixtm.c; now automake - generates those rules. - * lib/ylwrap: New file. - * lib/interlock: New file. - -Wed Oct 9 00:26:55 1996 Jim Meyering - - * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi. - - * lib/strftime.c (strftime): Accommodate the broken C compiler - that comes with SunOS -- don't initialize aggregates in decls of - automatic variables. Reported by Kaveh Ghazi. - - * tests/: Renamed checks/ directory. - * Makefile.am (SUBDIRS): Rename checks to tests. - * configure.in (AC_OUTPUT): Rename checks to tests. - - * configure.in (/proc/uptime check): Guard the read of /proc/uptime - with an existence test to avoid a messy configure-time warning on - systems that lack that special file. Reported by Kaveh R. Ghazi. - - * configure.in (check whether floor needs -lm): Fix typo: save $LIBS, - not $LIB. From Kaveh R. Ghazi. - - * checks/nice: Protect echoed args with leading `x' so echo doesn't - interpret leading -n on e.g. SunOS systems. - -Mon Oct 7 18:46:28 1996 Jim Meyering - - * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus. - - * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime. - (su_SOURCES): Remove memcmp.c. - Automake automatically includes at least these, now. - From François Pinard. - - * lib/Makefile.am (su_SOURCES): Remove getline.c. - -Sat Oct 5 11:38:23 1996 Jim Meyering - - * lib/Makefile.am (su_SOURCES): Remove gethostname.c -- - it's AC_REPLACE'd and already in EXTRA_DIST. - - * configure.in: Use AM_SANITY_CHECK_CC. - - * configure.in: Use AM_FUNC_ERROR_AT_LINE. - * lib/Makefile.am (EXTRA_DIST): Put error.c here. - (su_SOURCES): Remove error.c - Suggested by Ulrich Drepper. - - * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts. - * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@ - in the four installed scripts. - * src/*.sh: Update --version output to conform to the coding standard. - - * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro. - (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's - checking... messages don't get nested. - - * configure.in (GNU_PACKAGE): New variable. - (PACKAGE_VERSION): Remove it. - - * acconfig.h (GNU_PACKAGE): New variable. - (PACKAGE_VERSION): Remove now-unused variable. - - * src/*.c: Update --version output to conform to the coding standard. - -Sun Sep 22 22:41:54 1996 Jim Meyering - - * configure.in (AC_CHECK_HEADERS): Alphabetize. - Update for automake-1.1e. - -Thu Sep 19 07:47:18 1996 Jim Meyering - - * lib/regex.c: Merge with FSF version. - * lib/getloadavg.c: Replace with FSF version. - -Mon Sep 16 23:13:04 1996 Jim Meyering - - * lib/strftime.c (strftime): New version, from GNU libc. - -Sun Sep 15 23:08:48 1996 Jim Meyering - - * Makefile.am (EXTRA_DIST): Remove acinclude.m4. - -Mon Sep 9 22:10:45 1996 Jim Meyering - - * configure.in: Improve handling of math library so -lm is used - only when it's actually required. That makes a difference when - using dynamic linking. - Remove check that added -lm to LIBS. - (SQRT_LIBM): Test for and AC_SUBST it. - (POW_LIBM): Likewise. - (SEQ_LIBM): Likewise. - Motivation and suggestions from Ulrich Drepper. - - * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD): - Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp. - Also set corresponding _DEPENDENCIES variables. - -Sat Sep 7 12:41:39 1996 Jim Meyering - - * src/system.h: Add comments justifying IS* versions of ctype.h macros. - - * lib/getdate.y: Define and use upper case variants of ctype.h - is* macros. From Bruno Haible. - -Thu Sep 5 22:12:20 1996 Jim Meyering - - * lib/strftime.c: New version from glibc. - -Wed Sep 4 23:39:51 1996 Jim Meyering - - * configure.in (ALL_LINGUAS): Add dutch (nl). - -Mon Sep 2 10:52:55 1996 Jim Meyering - - * src/*.c (usage): Tell where to report bugs. - -Sun Sep 1 07:56:07 1996 Jim Meyering - - * configure.in (AM_FUNC_MKTIME): Use it. - (AC_REPLACE_FUNCS): Remove mktime. - (AM_INIT_AUTOMAKE): Use it. - (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this. - (AC_PROG_MAKE_SET): Likewise. - (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with - AM_ prefix for latest automake/aclocal. - - * Makefile.am (EXTRA_DIST): Add acinclude.m4. - - * acinclude.m4: New file -- derived from aclocal.m4. - * aclocal.m4: This file is now generated by the aclocal program - (which comes with the automake package.) - -Sat Aug 17 00:14:55 1996 Jim Meyering - - * lib/strftime.c: Update from GNU libc -- this adds back %z and %s - formats and reverts to old behavior where unrecognized format like - %E is treated as eqivalent to `E'. - -Sun Aug 4 09:14:28 1996 Jim Meyering - - * checks/: New directory. - * checks/Makefile.am: New file. - * checks/nice: New file. Derived from tests from Eric Backus. - * configure.in (AC_OUTPUT): Add new directory: checks. - * Makefile.am (SUBDIRS): Likewise. - - * src/nice.c (main): Allow `+' in options like -+8 and -+13. - -Fri Aug 2 21:45:06 1996 Jim Meyering - - * src/nice.c (main): Set minus_flag to zero in two places. - Otherwise, `nice --1 -3' would mistakenly do the equivalent of - `nice --3'. Thanks to Eric Backus for the - test cases. - - * configure.in (check for /proc/uptime): New check. - * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols - are sorted again. - *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from - /proc/uptime. - From Ulrich Drepper. - -Thu Aug 1 22:38:38 1996 Jim Meyering - - * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it. - It isn't necessary because the cpp-time checks of getopt.c and - getopt1.c are at least as good. - * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c. - (su_SOURCES): Add getopt.c and getopt1.c - This reverts much of the April 23 change. - -Sat Jul 27 17:22:14 1996 Jim Meyering - - * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid - redefinition warnings on solaris. - (textdomain) [!ENABLE_NLS]: Likewise. - -Sun Jul 21 09:47:55 1996 Jim Meyering - - * configure.in (AC_REPLACE_FUNCS): Replace getline.c. - Add related check for the getdelim function. - From Ulrich Drepper -- as done in gettext. - - * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message. - From Thomas Olsson . - -Sat Jul 20 17:01:56 1996 Jim Meyering - - * configure.in (PACKAGE_VERSION): Use space instead of hyphen to - separate PACKAGE and VERSION. - -Wed Jul 17 23:13:19 1996 Jim Meyering - - * src/chroot.c: Include before system.h. - * src/seq.c: Likewise. - * src/yes.c: Likewise. - From Arne Juul. - -Tue Jul 16 00:06:33 1996 Jim Meyering - - * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro. - Omitting that second arg made some HPUX C compiler report an error. - From Kaveh R. Ghazi. - -Mon Jul 15 23:42:57 1996 Jim Meyering - - * src/who-users.c (print_uptime): Reverse `days' and `day' in - uptime message. From Kaveh R. Ghazi. - - * Many files: Update FSF address. - -Sun Jul 14 20:05:34 1996 Jim Meyering - - * src/who-users.c (print_uptime): Use 0, not undefined errno in - couldn't-get-boot-time diagnostic. From Ulrich Drepper. - -Sat Jul 13 14:22:54 1996 Jim Meyering - - * src/chroot.c (usage): Add a `\' after `\n' in usage message. - Otherwise, SunOS's /bin/cc chokes. - - * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'. - GWINSZ_BROKEN can't be defined anymore. - - * configure.in (boot time test): Use AC_EGREP_CPP instead of - AC_EGREP_HEADER; #endif, instead of #fi. - (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use - these macros instead of the tests from which they were derived. - ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_. - -Wed Jul 10 22:57:29 1996 Jim Meyering - - * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program - so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with - those options on that system, sys/stat.h gets compile errors. - With help from Marcus Daniels. - - * getopt.c: Update from gettext-0.10.23. - * getopt1.c: Likewise. - * getopt.h: Likewise. - -Sun Jul 7 22:40:08 1996 Jim Meyering - - * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test - in configure.in. - (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise. - -Sat Jul 6 12:47:48 1996 Jim Meyering - - * configure.in (AC_REPLACE_FUNCS): Add group_member. - (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c. - * lib/Makefile.am (su_SOURCES): Remove group-member.c. - (EXTRA_DIST): Add group-member.c here. - -Thu Jul 4 22:40:06 1996 Jim Meyering - - * src/expr.c (docolon): Remove space before newline in usage message. - -Sat Jun 29 18:58:20 1996 Jim Meyering - - * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see - it in the output of --version. Reported by RMS. - -Tue Jun 18 22:14:42 1996 Jim Meyering - - * aclocal.m4: Update from gettext-0.10.20. - * ABOUT-NLS: Likewise. - * intl/*: Likewise. - -Sun Jun 16 13:44:36 1996 Jim Meyering - - * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex. - -Thu Jun 6 21:57:08 1996 Jim Meyering - - * po/Makefile.in.in: Update from gettext-0.10.16. - * intl/*: Likewise. - * ABOUT-NLS: Likewise. - * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede - gettext-related ones. - Update from gettext-0.10.16. - -Wed May 29 21:28:53 1996 Jim Meyering - - * expr.c (docolon): Give a warning when the first character - of the basic regular expression is `^'. - -Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * id.c (xgetgroups): New function, factored out of - print_group_list and print_full_info. - (print_group_list): Call it. - (print_full_info): Call it. - - * lib/Makefile.am (getdate.c): Disable dependencies that can - require rerunning YACC when not in maintainer mode. - (posixtm.c): Likewise. - -Tue May 14 18:47:35 1996 Andreas Schwab - - * id.c (print_group_list): When USERNAME is specified use - getugroups to get the number of groups. - (print_full_info): Likewise. - -Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * seq.c (usage): Make it clearer. - -Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * expr.c (main): Don't recognize --help, --h, --he, --version, - --v, etc. if the POSIXLY_CORRECT environment variable is set. - * echo.c (main): Likewise. - * printf.c (main): Likewise. - * test.c (main): Likewise. - - * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1. - -Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in: Require autoconf-2.10. - - * aclocal.m4 (jm_MAINTAINER_MODE): New macro. - * configure.in (jm_MAINTAINER_MODE): Use it. - -Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * lib/strftime.c: Update from GNU libc. - -Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII. - * seq.c: Remove useless void casts of *printf return values. - -Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * basename.c (usage): Mark translatable strings. - * chroot.c (main): Likewise. - * basename.c (main): Separate messages about `too few' and `too many' - arguments to ease translation. - * dirname.c (main): Likewise. - * date.c (usage): Change TAB in message to spaces. Doing that seems - to have worked around a problem with something in gettext that was - producing a truncated usage message for date's usage. - From François Pinard. - -Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE. - Otherwise, some systems lose because the value AC_C_INLINE choses - with plain `cc' is different from that chosen when using the ANSI-mode - C compiler. From Kaveh Ghazi. - -Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro. - * configure.in: Use it. - * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c. - (EXTRA_DIST): Add getopt.c and getopt1.c - - * whoami.c (main): Declare to return int, not void. - * who-users.c (main): Likewise. - * yes.c (main): Likewise. - - * src/*.c, src/*.h: Update Copyright years to include 1996. - -Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * date.c (usage): Describe new %V format. From Karl Berry. - - * Makefile.am (LDADD): Put @INTLLIBS@ before package library. - -Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * chroot.c (usage): Improve help message. - Enclose message strings in _(). - * seq.c (usage): Improve help message. - * factor.c (usage): Likewise. - From Karl Berry. - -Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * Makefile.am (cvs-dist): New rule. Based on the one from - Tom Tromey's automake. - -Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * basename.c (basename): Rewrite so it doesn't rely on strrchr, - and hence doesn't need to include string.h -- on some alpha-based - OSF systems, there's a conflicting prototype for basename in string.h. - Reported by Kaveh Ghazi. - - * configure.in (AC_REPLACE_FUNCS): Add basename. - * lib/Makefile.am (EXTRA_DIST): Add basename.c. - (su_SOURCES): Remove basename.c. - From Kaveh Ghazi. - -Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * src/Makefile.am (who.c): Qualify who-users.c reference with - $(srcdir)/ prefix. - (users.c): Likewise. - (uptime.c): Likewise. - From François Pinard. - - * configure.in: Always invoke AC_GETLOADAVG, not just if we're - building uptime. - -Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * getloadavg.c: Test cpp-defined __sun as well as sun, because - in strict ANSI mode, only __sun is defined. From Kaveh Ghazi. - - * date.c (usage): Add missing `\n\' at the end of newly added - lines for %e and %z. - - * who-users.c (print_uptime): Call getloadavg only if we have it. - -Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in (LINGUAS): Add de. - - * date.c (usage): Describe %e and %z. Reported by Karl Berry. - - * who-users.c: Mark translatable strings in new code. - -Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in: Add test for boot_time. - From Kaveh Ghazi. - - * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c. - - * src/Makefile.am (EXTRA_PROGRAMS): Add uptime. - (BUILT_SOURCES): Add uptime.c. - (MOSTLYCLEANFILES): Add uptime.c. - (uptime.c): Add rule to build it from who-users.c. - - * who-users.c: Reindent. - (UT_TIME_MEMBER): New macro. - (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else. - (print_entry): Likewise. - -Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi. - -Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * seq.c (print_numbers): Rearrange loops to get it right. - Reported by Karl Eichwalder . - - * seq.c (print_numbers): Give more precise diagnostic when INCREMENT - is inconsistent with START and LIMIT. - (usage): Clean up help message. - - * factor.c (usage): Give minimal description of the program. - (print_factors): Give a better diagnostic. - (main): Suggest --help upon failure. - Reported by Karl Eichwalder . - - * seq.c (print_numbers): Fix off-by-one error in - backwards-counting loop. Reported by Karl Eichwalder. - - * strftime.c (mon_week_ISO): New function to implement new %V format. - (sun_week): Make TM parameter `const'. - (mon_week): Likewise. - (mon_week): Rewrite to implement %W format correctly. - (strftime): Handle %V format. - Reported by Arne Juul. - -Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * strftime.c (sun_week): Make %U work properly. - Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'. - - * nice.c (main): Simplify option handling. Before, `nice -18 -- nice' - improperly printed `8'. Patch from Frank Korz. - (main): Use `if' stmt, not while loop, around getopt invocation. - Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option - follows a long option) gets an error. - -Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to - `-Xc -D__EXTENSIONS__' because of problems with Solaris header - files. Suggested by Kaveh Ghazi. - -Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h - when srcdir != builddir. From Kaveh Ghazi. - - * lib/getugroups.c: Include stdio.h before grp.h. Because - on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi. - -Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in: Simplify checking for math library. - This also eliminates some confusing output from configure. - Suggested by François Pinard. - -Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with - -I../intl. With the former, compiles didn't find libintl.h when - configured with `--srcdir=..'. Reported by Marcus Daniels - . - - * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file - gets distributed. - - * src/Makefile.am (EXTRAdir): Set to $(bindir). - -Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * ChangeLog.0: New file. - * Makefile.am (EXTRA_DIST): Add ChangeLog.0. - -Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * man/Makefile.am (man_MANS): Add chroot.1. - * src/Makefile.am (EXTRA_PROGRAMS): Add chroot. - -Sun Dec 24 10:55:34 1995 Roland McGrath - - * configure.in: Check for chroot a la uname. - * src/chroot.c, man/chroot.1: New files. - -Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * su.c: Protoize and reorder functions to obviate forward decls. - - * seq.c: Make parameters const where appropriate. - Rename global FROM to START. - (print_numbers): Rewrite loops to avoid incrementing. Instead, - use `x = first + i * increment' paradigm. Otherwise, with inexact - increment, you could miss the last value. - - * xstrtod.c: New file. - * xstrtod.h: New file. - * lib/Makefile.am: Add xstrtod.c and xstrtod.h. - * seq.c: Include xstrtod.h. - (scan_double_arg): Use xstrtod rather than strtod directly. - - * src/*: Update FSF's address. - -Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * src/*.c (main): Declare to be of type int, not void. - -Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in (PACKAGE_VERSION): New macro. - (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS. - * acconfig.h (PACKAGE_VERSION): Add it. - * src/Makefile.am: Remove rules for generating version.c. - Remove references to version.o, version.h, and stamp-v. - [.sh]: Change @VERSION@ to @PKG_VERSION@. - On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER. - (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS. - (install-exec-local): New target/rules to make the installed su - binary setuid root or failing that, to delete it. - * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@, - not @VERSION@. - * version.c: Remove file. - * version.h: Remove file. - * basename.c date.c dirname.c echo.c env.c expr.c factor.c - hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c - pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c - who-users.c whoami.c yes.c: Don't include version.h. - (main): Use PACKAGE_VERSION instead of version_string. - -Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * basename.c: Remove __P-protected prototype for basename. - Reported by François Pinard. - (remove_suffix): Move to precede use. Remove prototype. - Declare formal parameter SUFFIX to be const. - - * pathchk.c (validate_path): Cast path_max to size_t before - comparing with strlen(path). - - * who-users.c (read_utmp): Declare n_read to be of type size_t - rather than int. - -Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c - id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c - sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c - yes.c (main): Initialize for internationalized message support: - call setlocale, bindtextdomain, and textdomain. - * system.h: Add definitions and includes for NLS. - * Makefile.am (SUBDIRS): Add intl and po. - * src/Makefile.am (datadir): Define. - (localedir): Define. - (DEFS): Add LOCALEDIR definition. - (LDADD): Add @INTLLIBS@. - * aclocal.m4: Add NLS-related macro definitions from - gettext distribution. - * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES, - HAVE_STPCPY): New macros. - Add PACKAGE and VERSION. - * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED. - (VERSION): Likewise. - (ALL_LINGUAS): Define. - (ud_GNU_GETTEXT): Use it. - Link an nls file. - (AC_OUTPUT): Reflect addition of two new directories, intl and po. - Create po/Makefile. - Mostly from François Pinard. - -Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to - declare formal parameter. - -Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * getdate.y (RelativeMonth): Add 1900 to the year so that relative - date specs that push the year through the end of the century work. - For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001. - From Peter Dalgaard (pd@kubism.ku.dk). - -Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * seq.c (main): Exit after processing --version. - Reported by François Pinard. - -Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * expr.c (docolon): Don't initialize re_syntax_options to - deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE - \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead. - - * od.c (WINDOWS_SETFILEMODE_BINARY): New macro. - (skip) [_WIN32 && _O_BINARY]: Use it. - (read_char): Likewise. - (read_block): Likewise. - [_WIN32 && _O_BINARY]: Include malloc.h and io.h. - Based on changes by Gary Newman . - -Wed Feb 28 21:48:07 1996 Paul Eggert - - * configure.in (LOCALTIME_CACHE): - Also define if localtime mishandles unsetting TZ. - This works around a localtime bug in mips-dec-ultrix. - -Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * lib/Makefile.am (su_SOURCES): Add xstrtoul.c. - (noinst_HEADERS): Add xstrtoul.h. - - * factor.c: General cleanup. Use xstrtoul, not atoi. - Change output format. Allow inputs as large as ULONG_MAX. - Allow more than one command line argument. - - * stty.c (wrapf) [!__STDC__]: Indent by one space the first line - of the pre-ANSI function definition so ansi2knr doesn't munge it. - - * src/Makefile.am: Adapt for automake-0.30. - * lib/Makefile.am: Likewise. - - * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall. - -Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'. - (MOSTLYCLEANFILES): Add who.c and users.c. - (who.c): New rule to create this file. Concatenate definition of - WHO and contents of who-users.c. - (users.c): New rule to create this file. Concatenate definition of - USERS and contents of who-users.c. - -Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * readtokens.c: Unprotoize. - - * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them - for function dcls and munge them. - (arithf): Likewise. - (arithdivf): Likewise. - - * test.c: __P-protect forward declarations. - (main): Protoize function definition. - - * date.c (batch_convert): Declare BUFLEN local to be of type size_t, - not int. - - * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC - so expr's pattern matching uses BASIC (not GNU-extended) REs. - Reported by Jim Kingdon. - - * who-users.c (print_entry): Use strchr, not index. - - * configure.in (AC_CHECK_HEADERS): Add sys/socket.h. - * canon-host.c [HAVE_SYS_SOCKET_H]: Include for - definition of AF_INET on at least SunOS 4. - -Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * who-users.c (main): When failing because there were - `too many arguments,' say so. - -Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr, - and inet_ntoa. - (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h. - * lib/canon-host.c: New file. - * lib/Makefile.am (su_SOURCES): Add canon-host.c. - * src/who.c (print_entry): If possible, canonicalize the host hame. - From Miles Bader (miles@gnu.ai.mit.edu). - - Update for automake-0.29. - * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it. - * src/Makefile.am: Likewise. - * lib/Makefile.am: Likewise. - * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS. - * man/Makefile.am (man_MANS): Renamed from MANS. - -Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * lib/strftime.c (add_num_tz): New function. - (strftime): Handle new %z format. - * date.c (main): Accept new option, --rfc-822 (-R). - (show_date): Use RFC822-mandated strftime format. - From H. Peter Anvin (hpa@storm.net). - (usage): Add a line describing the new option. - - * lib/strftime.c (add_num_tz): Don't use local, LENGTH, - before it's defined. - -Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * acconfig.h (PROTOTYPES): Define it. - -Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * aclocal.m4 (fp_PROG_INSTALL): New macro. - * configure.in: Use it instead of AC_PROG_INSTALL. - - * who-users.c: Protoize. - -Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * stty.c: Protoize and __P-protect forward dcls. - (visible): Change parameter type to unsigned int from unsigned char. - (integer_arg): Use xstrtol instead of open-coding this. - - * lib/Makefile.am (su_SOURCES): Add xstrtol.c. - (HEADERS): Add xstrtol.h. - - * test.c (advance): Protoize function. - - * sleep.c (argdecode): Declare parameter const. - -Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * stty.c: Indent cpp directives. - -Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov) - - Use automake to generate Makefile.in files. - * Makefile.am: New file. - * doc/Makefile.am: New file. - * lib/Makefile.am: New file. - * man/Makefile.am: New file. - * src/Makefile.am: New file. - - * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables - used in place of PROGS. - -Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov) - - * configure.in (PACKAGE, VERSION): New variables. - (fp_C_PROTOTYPES): Use it. - - * printf.c (print_esc_char): Change type of argument from char - to int to avoid potential promotion problem. - * uname.c (print_element): Likewise. - - * system.h [__P]: New macro. - - * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c, - hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c, - printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c, - whoami.c, yes.c: Protoize and __P-protect forward dcls. - - * who-users.c: New file. Renamed from who.c. - * who.c: Define WHO and include who-users.c. - * uses.c: Define USERS and include who-users.c. - - * id.c Remove no-longer-used NGROUPS_MAX cpp macros. - (print_group_list) [HAVE_GETGROUPS]: Reorganize to use - getgroups (0, NULL) to compute number of groups at run time - rather than relying on NGROUPS_MAX at compile time. - (print_full_info) [HAVE_GETGROUPS]: Likewise. - Suggestion from Roland McGrath. - - * su.c: Remove NGROUPS_MAX junk. It wasn't being used. - -Wed Jan 3 19:03:26 1996 Paul Eggert - - * configure.in (LOCALTIME_CACHE): Define if tzset exists and - if localtime caches TZ. Check for tzset. - * acconfig.h (LOCALTIME_CACHE): New macro. - * date.c (putenv): Declare. - (universal_time): Remove. - (main): If -u is given, set TZ to "UTC0"; this causes date to use - UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'. - (show_date): Just use localtime and a single format, since TZ will - be set properly if -u is given. - -Fri Dec 22 21:34:55 1995 Andreas Schwab - - * configure.in: Touch stamp-h only if config.h is remade. - -Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com) - - * test.c (usage): Clarify usage. From Karl Berry. - -Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com) - - * Makefile.in (all et. al.): If make was invoked with -k and a - sub-make fails, fail after the loop rather than exiting right away. - Otherwise, make's -k option could be ineffective. - -Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com) - - * Makefile.in (default): New default target. Depend on `all' to work - around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik - . - -Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com) - - * stty.c (usage): Clarify descriptions of ignpar and ignbrk. - From Theodore Ts'o and Ulrich Windl. - -Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com) - - * test.c [TEST_STANDALONE]: Define. - * src/Makefile.in (test.o): Remove special rule. - -Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com) - - * aclocal.m4 (jm_WITH_AUTODEPS): New directive. - * configure.in: Use it. - - * lib/Makefile.in (INCLUDE, COMPILE): New variables. - (.c.o): Rewrite to be more like src/Makefile.in. - Add line that (--with-autodeps) will include mkdep-Makefile. - (distclean): Remove .deps. - * src/Makefile.in: Likewise. - - * mkdep-Makefile: New file. - * Makefile.in (DISTFILES): Add mkdep-Makefile. - - * doc/Makefile.in (mostlyclean): Remove *.info. - - * date.c: New option --reference=FILE (-r FILE) analogous to the - like-named touch option. - (main): Recognize it and give diagnostic for misuse. - (usage): Describe briefly. - From Franc,ois Pinard. - - * date.c (batch_convert): Close input stream also when it's not stdin. - (main): Reorganize to do option-consistency checks before all else. - -Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com) - - * man/Makefile.in (install-data, uninstall): Use sed not basename. - The GNU Coding Standard suggests that only a select set of - relatively standard utilities be used in Makefiles. basename is - not among them. Suggested by Ulrich Drepper. - -Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com) - - * yes.c: Include system.h to get definition of _. - -Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com) - - * system.h (_): Define macro -- as empty for now. - * src/*.c: Annotate localizable strings with _(...). From Franc,ois. - - * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB. - From Franc,ois. - -Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com) - - * configure.in (AC_REPLACE_FUNCS): Add memcpy and memset. - Add checks for floor, modf, and rint -- all used by seq.c. - -Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com) - - * getdate.y (Convert): Use 2037 as threshold, not 1999. - Before years after 1999 were treated as invalid. - From Andreas Schwab. - -Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com) - - * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h. - Without this, SunOS doesn't get type for memchr. - Reported by Kaveh Ghazi. - -Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com) - - * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois. - - * All Makefile.in (install-exec, install-exec): New targets. - From Karl Berry. - - * all Makefile.in (maintainer-clean): Renamed from realclean - per GNU Standards. - -Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com) - - * all source files (usage): Include one- or two-line synopsis - in --help output. From Karl Berry. - -Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com) - - * lib/Makefile.in (maintainer-clean): Rename from realclean. - (.PHONY): New dependencies. - [.c.o]: Remove -I. since safe-l?stat.h are no longer used. - -Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com) - - * test.c (usage): Remove duplicate descriptions of --help - and --version. From Karl Berry. - - * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat). - * test.c: Likewise. - * who.c: Likewise. - - * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c. - Remove all reference to (now unused) safe-xstat.hin. - -Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com) - - * configure.in (AC_OUTPUT): Use echo, not date, to avoid creating - unnecessary conflicts for people using version control software - like RCS and CVS. - (AC_ARG_PROGRAM): Use it. - -Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com) - - * src/*.c: Update Copyright dates. - -Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com) - - * system.h: Separate errno declaration from STDC_HEADERS. - Remove bcopy, bzero, strchr, strrchr definitions. - - * stty.c (main, set_window_size): Use memset instead of bzero. - * su.c (correct_password): Likewise. - - * seq.c Remove \n's from error format strings. - (main): Let `seq 1 1' work. - Invoke usage always with 1 when failing. - -Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com) - - * src/Makefile.in (install): Fix rules for su to avoid relying on - just-built `id' executable. That would lose when cross-compiling and - on systems like GNU in which a user may have several effective IDs. - (SOURCES, OBJECTS, PROGS): Add seq. - * Makefile.in (PROGS): Add seq. - - * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset. - (AC_CHECK_FUNCS): Add strchr and strrchr. - * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c. - - * system.h: Remove index/rindex and bcmp/bcopy/bzero references. - Separate errno declaration from STDC_HEADERS. - -Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com) - - * getdate.y (ToSeconds): Properly convert 12am and 12pm. - From Takeshi Sone . - - * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh]. - (all): Depend on safe-stat.h and safe-lstat.h. - - * date.c (batch_convert): Remove any trailing newline from offending - line before including it in the `invalid date' error from `date -f'. - Reported by Franc,ois Pinard. - -Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com) - - * factor.c: New file. - * Makefile.in (PROGS): Add factor. - * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor. - (factor): New rule. - -Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com) - - * test.c (term): Running `./test \( a -o b' got a seg fault. - From from Klaus.Reichl@aut.alcatel.at. - -Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com) - - * src/*.c: Include "error.h" rather than simply declaring - `void error ();'. - * src/Makefile.in (OBJECTS): Depend on ../lib/error.h. - - * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin. - (distclean): Remove references to safe-l?stat.c. - Remove all related rules and dependencies. - - * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros. - Now that we always define the functions, these are no longer needed. - - * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT. - * who.c (print_entry): Likewise. - * test.c (test_stat, binary_operator): Likewise. - (unary_operator): Use safe_lstat instead of SAFE_LSTAT. - -Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com) - - * expr.c (docolon): Zero out re_buffer and re_regs before using them. - From H.J. Lu . - -Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com) - - * dirname.c (main): Use strchr and strrchr instead of index and rindex. - * echo.c (main): Likewise. - * env.c (main): Likewise. - * pathchk.c (validate_path): Likewise. - * printf.c (print_formatted, print_esc): Likewise. - * test.c [member]: Likewise. - * who.c (extract_trimmed_name): Likewise. - * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to - rindex instead of the other way around. - - * doc/Makefile.in (DISTFILES): Add getdate.texi. - -Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com) - - * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr. - (AC_CHECK_HEADERS): Add stdlib.h. - (LIBS): If the strtod replacement is required, check for pow in -lm. - * src/Makefile.in (printf): Remove hard-coded -lm. Not every - system has it. - -Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com) - - * who.c (list_entries): Delete. Split in two actually... - (list_entries_users, list_entries_who, userid_compare): New functions. - (list_entries_users): Sort the user names. Reported by - Michael I Bushnell. - Topologically sort the functions and remove fwd declarations. - - - ----- - - Copyright (C) 1994-2017 Free Software Foundation, Inc. - - Copying and distribution of this file, with or without - modification, are permitted provided the copyright notice - and this notice are preserved. diff --git a/old/sh-utils/ChangeLog.0 b/old/sh-utils/ChangeLog.0 deleted file mode 100644 index 567b1143f..000000000 --- a/old/sh-utils/ChangeLog.0 +++ /dev/null @@ -1,1719 +0,0 @@ -Sat Nov 05 08:35:25 1994 Jim Meyering (meyering@comco.com) - - * Version 1.12. - -Fri Nov 04 06:01:00 1994 Jim Meyering (meyering@comco.com) - - * Version 1.11. - -Wed Nov 02 18:52:20 1994 Jim Meyering (meyering@comco.com) - - * doc/Makefile.in (install): Remove test for existence of info - file. Simply change to $(srcdir) instead. - -Wed Oct 26 23:40:07 1994 Jim Meyering (meyering@comco.com) - - * safe-xstat.hin [EINTR]: Always define safe_l?stat. - Define it __static -- which is `static' for most includers, - but `/* empty */' for safe-xstat.cin. - * safe-xstat.cin: Define __static to nothing so we get public - safe_l?stat functions in the library. - - * Makefile.in (All actions invoking $(MAKE) from within compound - (e.g. `for') sh statements): Exit non-zero if the sub-make fails. - Otherwise, the top-level make may exit successfully when it should - fail. From Jim Kingdon (kingdon@cygnus.com). - -Sun Oct 23 23:36:26 1994 Jim Meyering (meyering@comco.com) - - * safe-xstat.hin: Don't use a statement expression here. - Use an inline function instead. - * safe-xstat.cin: Don't duplicate the definition of safe_l?stat here. - Get the definition from safe-xstat.hin. - -Fri Oct 21 00:57:23 1994 Jim Meyering (meyering@comco.com) - - * man/Makefile.in: Fix typo that had su.1 being installed as - `man/man1/.1'. From Kjetil Torgrim Homme. - - * basename.c, dirname.c, expr.c, pathchk.c, sleep.c (main): Diagnose - wrong number of argument -- usually too few -- instead of just - referring the user to the --help option. Reported by Karl Berry. - -Mon Oct 17 23:55:41 1994 Jim Meyering (meyering@comco.com) - - * doc/Makefile.in (install): Install the info files from either - the source directory or the object directory. - From Ian Lance Taylor (ian@cygnus.com). - -Sun Oct 16 12:14:02 1994 Jim Meyering (meyering@comco.com) - - * lib/Makefile.in (distclean): Don't delete getdate.c and posixtm.c - here since they are not distributed. - (realclean): Delete them here instead. - From Francois Pinard. - -Mon Oct 10 21:44:42 1994 Jim Meyering (meyering@comco.com) - - * id.c (print_group_list, print_full_info): Use more precise - feature tests. Rather than assuming that a definition for - NGROUPS_MAX implies the existence of the getgroups function, - test for HAVE_GETGROUPS explicitly. - * su.c (log_su): Likewise. Similarly, check HAVE_INITGROUPS. - Both from Kaveh Ghazi. He reported that a Pyramid 9820 OSx 5.0d - (Dual universe SVR3/BSD4.2) system had NGROUPS_MAX and syslog.h - but not getgroups, initgroups or the syslog functions. - -Fri Oct 07 19:42:35 1994 Jim Meyering (meyering@comco.com) - - * doc/Makefile.in (sh-utils.dvi): Depend on version.texi. - * version.texi: Use RELEASEDATE, not RELEASE_DATE. - * sh-utils.texi: Likewise. - - * configure.in: Test for crypt in -lcrypt for NetBSD. - Reported by Greg Hudson (ghudson@mit.edu). - - * system.h: Don't define lstat. safe-l?stat.h does that now. - -Thu Oct 06 21:14:07 1994 Jim Meyering (meyering@comco.com) - - * src/Makefile.in (link_command): Remove $(CFLAGS). Because - the default value usually includes -g, Linux users were getting - statically linked executables. With this removal they'll get - much smaller, dynamically linked ones by default. - - * lib/Makefile.in (safe-lstat.o): Depend on safe-stat.h, too. - -Sun Oct 02 16:15:32 1994 Jim Meyering (meyering@comco.com) - - * src/Makefile.in: Don't use binprefix. Use autoconf-2's - @program_transform_name@ instead. - * man/Makefile.in: Likewise for manprefix. - - * safe-xstat.hin [!S_ISLNK]: Include safe-stat.h and define - SAFE_LSTAT and safe_lstat to their symlink-ignorant counterparts. - * lib/Makefile.in (extract_lstat, extract_stat): Add sed rules to - extract the new cpp directives into safe-lstat.h, but not into - safe-stat.h. - -Sat Oct 01 00:14:10 1994 Jim Meyering (meyering@comco.com) - - * system.h: Remove conditional definition of mode_t. - configure takes care of this now. - - * configure.in: Add -l$lib (not $lib) to LIBS when checking - for syslog. From Kaveh Ghazi. - - * date.c (batch_convert): Use K&R style function definition. - From Kaveh Ghazi. - - * date.c (main): When reading dates from a file with a +FORMAT-style - user-specified format, don't print the leading `+'. Franc,ois Pinard - noticed this problem. - Make an error message clearer. From Franc,ois. - - * lib/Makefile.in (DISTFILES): Add getline.h. - (SOURCES, OBJECTS): Add getline.c, getline.o. - - * safe-xstat.hin: Don't include or . - Otherwise, we'd lose when the includer has already included - on systems that aren't protected against multiple - inclusion. Add a note that those headers must be included before - this one. Don't include either. - * safe-xstat.cin: Include and here instead. - Include here, too. - Kaveh Ghazi reported this problem. - -Fri Sep 30 22:40:21 1994 Jim Meyering (meyering@comco.com) - - * date.c (main): Accept new option: (-f) --file=datefile. - (batch_convert): New function. Suggested by Karl Berry. - - * date.c (main): Diagnose use of conflicting options. - Revamp non-option argument processing. - Detect write errors. - - * lib/*.c, src/*.c: Remove CONFIG_BROKETS conditional. - * lib/Makefile.in src/Makefile.in: Don't define it. - - configure.in (AC_CHECK_FUNCS): Add getcwd. From Kaveh Ghazi. - - * safe-xstat.c.in, safe-xstat.h.in: Rename to safe-xstat.cin and - safe-xstat.hin so the names don't exceed the 14-character limit. - Reported by Kaveh Ghazi. - -Mon Sep 26 19:49:40 1994 Jim Meyering (meyering@comco.com) - - * configure.in: Don't use $su_cv_sys_tiocgwinsz_in_termios_h - uninitialized. From R. Bernstein and Kaveh Ghazi. - (NICE_PRIORITY): Fix typo that caused omission from PROGS of nice - and nohup on systems with nice but not setpriority. - From Andreas Schwab. - -Sat Sep 24 10:13:00 1994 Jim Meyering (meyering@comco.com) - - * Makefile.in (stamp-h.in): Create using echo, not date. - Using the latter could easily lead to rcs/cvs merge conflicts. - * configure.in (stamp-h): Ditto, though this is less important - because stamp-h isn't distributed. - - * nice.c (main): Revamp option processing to detect options - like `--7' manually and pass the rest off to getopt_long. - (isinteger): Use ISDIGIT. - Use parse_long_options. - - * system.h: Include and add IS* macros. - * expr.c: Don't include or define IS* macros since - system.h now does that. - * printf.c: Ditto. - - * date.c (usage): Add description of numeric modifiers. - - * printf.c (print_formatted): Declare DIREC_LENGTH size_t, not int. - (print_esc_string): Ditto for LENGTH. - * dirname.c (main): Cast string literal to (char*). - * stty.c (wrapf): Declare first argument const char *. - * tee.c (main, tee): More const dcls and casting. - * who.c (read_utmp): New variable: size to avoid type warnings. - All of these eliminate compilation warnings reported by - Franc,ois Pinard. - - * doc/Makefile.in (DISTFILES): Add version.texi because generating - that file now depends on having a version of date that can handle - formats like `+%Y %B'. - (version.texi): Generate RELEASE_DATE, too. - * sh-utils.texi: Use RELEASE_DATE instead of hard-coded date. - - * long-options.h: Prepend underscores to arg names in prototype - to avoid warnings about shadowing. - - * src/Makefile.in: Add dependencies on long-options.h. - - * configure.in: Make having autoconf-1.120 a prerequisite. - - * sh-utils.texi [INFO-DIR-ENTRY]: Add an entry for each `invoking' - node. Regularize punctuation, indexing, and xrefs. - From Franc,ois Pinard. - - * date.c (usage): Tweak the usage message a little. - Add `const' to more dcls. - - * stty.c: Add `const' to more dcls. - * su.c: Ditto. - * who.c: Ditto. - - * tee.c (main): Use _POSIX_SOURCE, not _POSIX_VERSION. - -Sat Sep 17 15:48:10 1994 Jim Meyering (meyering@comco.com) - - * (doc): New subdirectory with texinfo documentation. - Thanks to Franc,ois Pinard and Karl Berry! - Note however that it contains mainly the information from the - `man' pages, so it is not good documentation. But this way, - at least we don't have to maintain the troff man pages anymore. - - * su.c: Test !HAVE_ENDGRENT and !HAVE_ENDPWENT rather than - _POSIX_SOURCE to determine whether endgrent and endpwent should - be defined away. - * configure.in (AC_CHECK_FUNCS): Add endgrent and endpwent. - - * who.c: Test HAVE_SYS_PARAM_H rather than _POSIX_SOURCE - to determine whether should be included. - - * date.c (main): Rewrite command-line argument handling code - to give diagnostics for inconsistent options. - - * Makefile.in: Restructure dependencies using local-* - and recursive-* targets to avoid evil double-colon rules. - Although the actions assiciated with double-colon rules are - run sequentially using GNU make-3.71, POSIX doesn't guarantee - that behavior. The next release may run them in parallel. - Running the old rules in parallel would sometimes delete - config.status before it was used in a subdirectory make. - With several suggestions from Franc,ois Pinard. - -Thu Sep 15 19:10:51 1994 Jim Meyering (meyering@comco.com) - - * stty.c [VWERSE && !VWERASE]: Define VWERASE for AIX-3.2.5. - -Sat Sep 03 00:41:53 1994 Jim Meyering (meyering@comco.com) - - * lib/Makefile.in (safe-lstat.c, safe-lstat.h, safe-stat.c, - safe-stat.h): Use $(srcdir) to find source files. - (.c.o): Use -I. to get safe-lstat.h and safe-stat.h from the - build directory. - * src/Makefile.in (incl): Add -I../lib to get lib/safe-lstat.h and - lib/safe-stat.h from the build directory. From Michael I Bushnell - . - - * Makefile.in: Remove rules to create installation directories. - * {src,man}/Makefile.in: Put them here instead. - - * configure.in: Update to take advantage of autoconf 2.0 features. - -Sat Aug 27 16:57:20 1994 Jim Meyering (meyering@comco.com) - - * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's. - From Francois Pinard. - -Thu Aug 18 11:44:48 1994 Jim Meyering (meyering@comco.com) - - * su.1: Explain why GNU doesn't support the `wheel group'. - -Mon Aug 01 21:58:14 1994 Jim Meyering (meyering@comco.com) - - * date.c: Add --utc option. It will supercede --uct. - Change references to `universal coordinated time' to - correct `coordinated universal time'. From Harris Boldt Edelman - . - * date.1: Correct the documentation, too. - - * date.c (main, show_date): For -u, use gmtime instead of relying on - localtime's ability to interpret the TZ environment variable. - `date -u' failed (by reporting local time) on romp-ibm-bsd and PCs - (DOS and OS/2) running emx 0.8h. From R. Bernstein - . - -Sat Jul 30 07:52:27 1994 Jim Meyering (meyering@comco.com) - - * nohup.sh: Separate `nice -5' from COMMAND with `--' to ensure - that COMMAND isn't interpreted as an option to nice. - * groups.sh: Similarly, separate each name from `id -Gn' with `--'. - Karl Berry pointed out that `groups --help user' gave confusing - diagnostics. - -Tue Jul 26 11:33:53 1994 Jim Meyering (meyering@comco.com) - - * su.c (main): Make copies of the password information we'll use - so that log_su (through getlogin) doesn't clobber the static data. - With suggestions from Francois Pinard. - - * system.h: Remove `|| defined(_POSIX_VERSION)' from test that - decides whether to include . From Francois Pinard. - -Mon Jul 25 23:54:36 1994 Jim Meyering (meyering@comco.com) - - * pathchk.c (dir_ok): Use SAFE_STAT. - * test.c (test_stat, binary_operator, unary_operator): Use SAFE_STAT - and SAFE_LSTAT. - * who.c (print_entry): Use SAFE_STAT. - - * test.c (group_member): Remove function. Use the one broken out - into group-member.c instead. - -Fri Jul 15 00:23:17 1994 Jim Meyering (meyering@comco.com) - - system.h: Remove unneeded decls of atof and atol. - -Fri Jul 08 01:09:23 1994 Jim Meyering (meyering@comco.com) - - stty.c (main): Initialize max_col (used by wrapf) before calling - display_speed. Otherwise, `stty speed' output a spurious newline. - From Andreas Schwab . - -Sun Jul 03 08:44:00 1994 Jim Meyering (meyering@comco.com) - - * configure.in [AC_HAVE_HEADERS]: Add sys/param.h, for - definition of HAVE_SYS_PARAM_H, now tested in pathmax.h. - - * configure.in [AC_WORDS_BIGENDIAN]: Add it. This macro is - required by memcmp.c on big-endian systems. Its absence was - diagnosed by Lars Duening (duening@ibr.cs.tu-bs.de). - -Sun Jun 19 00:18:06 1994 Jim Meyering (meyering@comco.com) - - * nice.c (main): Accept options like `--5' (equivalent to `-n -5') - instead of letting getopt give an `unrecognized option' error. - - * long-options.c: Require another argument: version_string. - Don't include "version.h" or "system.h". - * basename.c, dirname.c, echo.c, expr.c, hostname.c, printf.c, - pwd.c, stty.c, test.c, yes.c: Adjust callers of parse_long_options - accordingly. - -Thu Jun 02 14:11:31 1994 Jim Meyering (meyering@comco.com) - - * stty.c (main): Set max_col and current_col before running - display_window_size. Otherwise, `stty size' output a spurious - newline. From Bauke Jan Douma (bjdouma@xs4all.hacktic.nl). - -Mon May 30 09:33:53 1994 Jim Meyering (meyering@comco.com) - - * test.c (test_syntax_error, beyond): Add __attribute__ ((noreturn)) - so gcc will know enough not to give warnings. - -Sun May 29 17:40:21 1994 Jim Meyering (meyering@comco.com) - - * long-options.c: Move from src/ to lib/. - * long-options.h: Ditto. - * src/Makefile.in: Remove references to long-options.[ch]. - * lib/Makefile.in (SOURCES, OBJECTS): Add long-options.[co]. - -Fri May 27 18:20:18 1994 Jim Meyering (meyering@comco.com) - - * stty.c [VFLUSH && !VFLUSHO]: Define VFLUSH0. - Ultrix's termios.h defines VFLUSH, but not VFLUSHO. - From Kjetil Torgrim Homme . - -Thu May 26 08:46:32 1994 Jim Meyering (meyering@comco.com) - - * configure.in [INSTALL]: Revert change of March 8. autoconf - has fixed this. - -Thu May 19 01:10:20 1994 Jim Meyering (meyering@comco.com) - - * Version 1.10. - - * lib/Makefile.in (DISTFILES): Add getdate.c and posixtm.c. - - * src/Makefile.in (users.c): Use cp if hard link fails. - From Ian Lance Taylor. - - * Makefile.in (dist): Change package name from shellutils to sh-utils. - That allows a hyphen and 5-character version number without exceeding - the 14-character limit on file name length. shellutils-1.10 would - have been too long. - * version.c: Update package name. - - * hostname.c: Include before "system.h". - From Kaveh Ghazi and Karl Berry. - - * hostname.c (sethostname) [!HAVE_SETHOSTNAME && HAVE_SYSINFO && - HAVE_SYS_SYSTEMINFO_H && HAVE_LIMITS_H]: New function. SVR4 systems - prefer sysinfo over sethostname. - * configure.in (AC_HAVE_FUNCS): Add sysinfo. - (AC_HAVE_HEADERS): Add sys/systeminfo.h. - From Kaveh Ghazi. - -Fri May 13 09:45:23 1994 Jim Meyering (meyering@comco.com) - - * lib/xgethostname.c (xgethostname): Call xmalloc outside the loop. - Correct loop termination condition. - - * pwd.c: Include before "system.h". - From Kaveh Ghazi. - - * {lib,man,src}/Makefile.in (Makefile): Use ../config.status - instead of $(srcdir)/../config.status. The latter didn't work - for builddir != srcdir. From Kaveh Ghazi. - - * Makefile.in (Makefile): Remove dependencies on */Makefile.in. - Change the rule so running config.status creates only Makefile. - (stamp-config): Have config.status generate only config.h. - - * {lib,man,src}/Makefile.in (Makefile): Add single dependency on - Makefile.in and rule to make config.status create only Makefile. - - * hostname.c: New program. - * hostname.1: New file. - * Makefile.in (PROGS): Add hostname. - (SOURCES): Add hostname.c - * src/Makefile.in: Add rules and dependencies for hostname. - * configure.in (AC_HAVE_FUNCS): Add sethostname. - - * pathchk.c (validate_path) [lint]: Initialize a variable to - suppress `used before initialized' warning. - - * who.c: Correct gethostname prototype to indicate the function - returns int, not char. - -Sun May 01 08:38:18 1994 Jim Meyering (meyering@comco.com) - - * who.c: Add #ifdefs to build the `users' executable. - * src/Makefile.in: Add corresponding rules. - * Makefile.in (PROGS): Add users. - From Kaveh R. Ghazi . - * users.1: Document it. - -Thu Apr 28 00:45:02 1994 Jim Meyering (meyering@comco.com) - - * pwd.c: New program. - * pwd.1: New file. - * Makefile.in (PROGS): Add pwd. - * lib/Makefile.in: (DISTFILES): Add pathmax.h. - (SOURCES, OBJECTS): Add xgetcwd.c and xgetcwd.o respectively. - * src/Makefile.in: Add rules and dependencies for pwd. - - * yes.c: Don't include version.h. - -Mon Apr 18 19:54:24 1994 Jim Meyering (meyering@comco.com) - - * documentation: Change uses of `pathname' and `path' as per - GNU standards. - - * long-options.c (parse-long-options): Take a new argument, - command_name, for use in --version output. - * basename.c, dirname.c, echo.c, expr.c, printf.c, stty.c, test.c, - yes.c (main): Update callers. - -Wed Mar 30 08:53:21 1994 Jim Meyering (meyering@comco.com) - - * configure.in: Use AC_SET_MAKE. - * Makefile.in: Edit MAKE assignments into @SET_MAKE@. - -Fri Mar 25 01:13:42 1994 Jim Meyering (meyering@comco.com) - - * configure.in: Use AC_VERBOSE, AC_CHECKING, and AC_WARN instead - of explicit echo commands. - When checking for shadow password routines, make sure the function - getspnam is available before defining HAVE_SHADOW_H. - reported that shadow.h exists on some - linux system that did not have the function. - -Tue Mar 8 10:29:13 1994 Jim Meyering (meyering@comco.com) - - * configure.in [INSTALL]: When AC_PROG_INSTALL resorts to setting - this to `./install.sh', make it `../install.sh' instead since that - script will be invoked only from subdirectories. - [WINSIZE_IN_PTEM]: Check for this unconditionally, rather than - only when TIOCGWINSZ is not defined through termios.h. The old - method loses on SCO ODT 3.0 systems. - -Sat Feb 19 14:23:14 1994 Jim Meyering (meyering@comco.com) - - * Version 1.9.4. - - * stty.c (main): Use getopt_long_only with "ag" instead of - getopt_long with "". The latter incremented optind so the - -a and -g options weren't recognized. - - * Version 1.9.3. - -Tue Feb 15 18:28:28 1994 Jim Meyering (meyering@comco.com) - - * stty.c (main): Use getopt only to recognize long options. - Hand code the loop to detect -a, -g, -ag and -ga. Using getopt - to detect the short options loses (because we have to ignore - unrecognized options and we are allowing GNU getopt to permute) - because e.g. `-tabs' is interpreted as a group of options, one of - which is `-a'. Before, running `stty -tabs echo' gave this error: - stty: when specifying an output style, modes may not be set - Reported by Arne H. Juul. - -Sun Feb 13 13:34:25 1994 Jim Meyering (meyering@comco.com) - - * basename.1, dirname.1, stty.1: Reflect usage changes. - * basename.c, dirname.c, stty.c (usage): Ditto. - - * long-options.h (parse_long_options): Invoke usage function - argument with explicit dereference as per GNU coding standards. - - * basename.c dirname.c: Use parse_long_options instead of the - conventional getopt_long paradigm. Before, the commands - `basename file-dist -dist' and `basename -- file.c .c' produced - incorrect results. Now, even `basename -file-dist -dist' works - and the command `basename -- file.c .c' fails for the right - reason: the `--' is not a special (to getopt) token for these - commands. It is interpreted as the filename, so there are too - many arguments to basename. Rick Sladkey - reported the problem with basename. - - * stty.c (set_window_size): When stty fails to get the window size - (as happens on telnet sessions to Solaris systems), initialize all - fields of the winsize struct. Before, it was using the uninitialized - pixel fields of the struct in the ioctl to set window size parameters. - From Rick Sladkey. - - * stty.c (main): Use parse_long_options to handle --help and --version. - (main): In the remaining getopt_long loop, don't jump out of the - loop from the `default' branch of the switch statement. Doing that - left optind in an inconsistent when there were non-option arguments - preceding `reversed' arguments (e.g. stty echo -echoe) and the - preceding non-option arguments were ignored. Rick Sladkey reported - that stty was ignoring arguments. - - * stty.c (main): Fail with a diagnostic when both -g and -a are given. - (main): Fail with a diagnostic when either -g or -a is used with - arguments for setting modes. - -Fri Feb 11 19:39:37 1994 Jim Meyering (meyering@comco.com) - - * stty.c (get_win_size): Don't use an ANSI-style function - definition. From Kaveh R. Ghazi . - -Thu Feb 10 01:22:37 1994 Jim Meyering (meyering@comco.com) - - * stty.c [CSWTCH] (__sparc__ && __svr4__): Define `swtch' to - _POSIX_VDISABLE by default. Otherwise, the default settings on - SunOS 5.3 (from /usr/include/sys/termios.h) have both `swtch' - and `susp' set to ^Z. Those default settings are not unusual. - What is unusual is that with such settings on SunOS 5.3, the tty - driver doesn't generate a signal for control-Z. Reported by - Brent Wiese . - - * stty.c (main) [CIBAUD]: Don't report an error on SunOS 4.1.x - systems if the only difference is in this nybble of c_cflag. - See the comments for the gory details. Thanks to - Erez "HWank1" Zadok for reporting this - and helping me reproduce it. - -Tue Feb 01 00:59:56 1994 Jim Meyering (meyering@comco.com) - - * stty.c (main): Call tcsetattr only if we've updated tty modes, - not e.g. if we've changed the window size. - - * Update Copyright dates in src/*. - -Fri Jan 28 11:02:21 1994 Jim Meyering (meyering@comco.com) - - * configure.in: Don't set LDFLAGS since linking now uses both - LDFLAGS and CFLAGS. - -Wed Jan 26 10:54:02 1994 Jim Meyering (meyering@comco.com) - - * stty.c (get_win_size): New function. Try getting size first - for the device on stdout. Try stdin only if that fails. Suggested - by Andreas Schwab . - (set_win_size): Call get_win_size instead of calling ioctl directly. - (display_window_size): Ditto. - (screen_columns): Ditto. - -Mon Jan 24 22:57:18 1994 Jim Meyering (meyering@comco.com) - - * stty.c (set_window_size): Work around SunOS 4.x kernel bug that - makes `stty rows 34 cols 80;stty rows 0;stty cols 0' incorrectly - set rows to 80 and columns to 0. Sun's stty has this problem, too. - The kernel bug is fixed in Solaris 2. Mostly from Alexander Dupuy - . - - * src/Makefile.in: Use both LDFLAGS and CFLAGS when linking. - * man/Makefile.in: Use binprefix as the default manprefix. - - * nohup.sh: Redirect usage message to stderr. - From Andreas Schwab . - -Thu Jan 13 17:27:38 1994 Jim Meyering (meyering@comco.com) - - * src/Makefile.in: Change all link commands to use both $(CFLAGS) - and $(LDFLAGS). - -Mon Jan 10 01:20:38 1994 Jim Meyering (meyering@comco.com) - - * man/Makefile.in (manprefix): Use binprefix as the default. - -Thu Jan 06 18:19:06 1994 Jim Meyering (meyering@comco.com) - - * who.c (print_entry): Prepend `/dev/' only if ut_line is not - already an absolute filename. Just to be safe. - -Fri Dec 31 00:22:59 1993 Jim Meyering (meyering@comco.com) - - * date.c (usage): Reorder listing of % formats in `sort -f' order. - -Tue Dec 28 15:49:32 1993 Jim Meyering (meyering@comco.com) - - * install.sh: New file. - Makefile.in [DISTFILES]: Add it. - - * who.c (read_utmp): Use stdio functions instead of open/read/close - to avoid having to handle POSIX read's -1/errno=EINTR failure case. - - * tee.c (tee): A POSIX implementation of the read system call - may return -1 and set errno to EINTR when it is interrupted. - Retry instead of failing with an error. - (tee): Don't use xwrite. Use full_write instead and include the - losing file name in the message reporting a write failure. - Don't treat standard output as a special case, so a failed write - to stdout doesn't exit immediately. - - * date.c (usage): Note that for %w, 0 corresponds to Sunday. - -Sat Dec 25 23:15:58 1993 Jim Meyering (meyering@comco.com) - - * who.c (main): Don't chdir ("/dev") for the stat in print_entry. - (print_entry): Instead of stat'ing the /dev-relative path, ut_line, - stat the absolute path with "/dev/" prefix. From David MacKenzie. - -Wed Dec 22 00:53:51 1993 Jim Meyering (meyering@comco.com) - - * expr.c (toarith): Interpret the empty string as just that - rather than as the integer zero. - Before, `expr "" == 0' output 1. Now it prints 0. - - * configure.in (AC_HAVE_HEADERS): Check for float.h for strtod.c. - - * configure.in (check for TIOCGWINSZ): Don't look in sys/ioctl.h - or sys/ptem.h if we've already found it in termios.h. This - eliminates redefinition warnings from including both termios.h - and sys/ioctl.h on sytems running SunOS. From Matthew Seaman - (matthew@dyson.ox.ac.uk). - - * date.1: Document new %s format and old `-' and `_' numeric field - modifiers. - - * memcmp.c: Use the latest version from GNU C library. - -Mon Dec 20 23:29:30 1993 Jim Meyering (meyering@comco.com) - - * configure.in [test for 8-bit clean memcmp]: Add a test to detect - losing memcmp from SunOS4.1.x. From Robert H. de Vries - . - -Sat Dec 18 01:12:24 1993 Jim Meyering (meyering@comco.com) - - * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg - so it goes in config.status. This eliminates unnecessary second run - of configure. - -Fri Dec 10 01:06:28 1993 Jim Meyering (meyering@comco.com) - - * stty.c (screen_columns): Instead of dying just because Solaris' - `ioctl (0, TIOCGWINSZ' fails (strangely only for telnet sessions, - not rlogin sessions), ignore its errno == EINVAL and try to get - the number of columns another way. - - * stty.c (set_window_size): If ioctl to get window size fails, - (as on telnet sessions to Solaris 2.[12] systems) try to set the - requested fields anyway, setting to zero any unspecified fields. - This is what Sun's /bin/stty appears to do. - * (display_window_size): Don't display anything for the number - of rows and columns if the ioctl call intended to get them fails. - -Tue Nov 30 23:58:54 1993 Jim Meyering (meyering@comco.com) - - * Version 1.9.2. - -Mon Nov 29 00:28:35 1993 Jim Meyering (meyering@comco.com) - - * stty.c, configure.in, acconfig.h: Revert change of Nov 26. - I am no longer able to reproduce the behavior that prompted - that patch -- but I had tested only using an old version of gcc. - When building with a more recent version of gcc or with /bin/cc - there is no problem. - -Sat Nov 27 15:11:21 1993 Jim Meyering (meyering@comco.com) - - * nice.c (main): If an adjustment is specified, but no command is - given, give a diagnostic in addition to the usage message. - (isinteger): Accept a leading `+'. - -Fri Nov 26 18:49:42 1993 Jim Meyering (meyering@comco.com) - - * stty.c [GWINSZ_BROKEN]: Define TIOCGWINSZ to TCGETS for Solaris-2.2. - On that system, ioctl (0, TIOCGWINSZ, &win) always fails, but using - TCGETS works. Reported by Francois Pinard. - - * configure.in [GWINSZ_BROKEN]: New test to detect Solaris' inability - to get window size from ioctl using TIOCGWINSZ. - * acconfig.h [GWINSZ_BROKEN]: Add an #undef. - -Mon Nov 22 23:40:21 1993 Jim Meyering (meyering@comco.com) - - * who.c [defined (UTMPX_FILE)]: (undef and) define UTMP_FILE to - this value even if UTMP_FILE is already defined. Because some - systems define both symbols. From Arne H. Juul. - * [MESG_BIT]: Rename to S_IWGRP (from sys/stat.h>) and define only - if not already defined. - -Fri Nov 19 23:08:03 1993 Jim Meyering (meyering@comco.com) - - * who.c (print_entry): Produce reasonably formatted output even when - sizeof (this->ut_name,ut_line) are much larger than 8. For Solaris - and other SysVr4. With help from Arne H. Juul. - * configure.in (HAVE_UTMPX_H): New test; combined with test for the - ut_host field. From Arne H. Juul. - - * memcmp.c: New file. - * lib/Makefile.in [SOURCES]: Add memcmp.c. - * configure.in (AC_REPLACE_FUNCS): Add memcmp. - Add test for 8-bit clean memcmp. - - * configure.in (AC_HAVE_FUNCS): Add isascii. - * expr.c [!defined (isascii) || defined (STDC_HEADERS)]: This failed - on AIX PS/2 1.3 systems because isascii is a function and it is used - in definitions (with the necessary side effect of assigning to a - global variable) of the is* macros. Also test HAVE_ISASCII and - redefine ISASCII(c) instead of isascii. - Reported by Minh Tran-Le (tranle@intellicorp.com). - * printf.c: Ditto. - - * configure.in (AC_HAVE_HEADERS): Add sys/timeb.h; getdate.y tests - HAVE_SYS_TIMEB_H. - - * stty.c (main): Detect the case in which POSIX-conformant tcsetattr - fails and still returns zero. - -Wed Nov 17 21:05:10 1993 Jim Meyering (meyering@comco.com) - - * yes.c (main): Complete my half-finished Nov 2 change. - yes with arguments did not print newlines. From Andreas Schwab - (ls5.informatik.uni-dortmund.de). - - * stty.c (wrapf): Fix off-by-one error that could make `stty -a' - output lines one character too long. From Andreas Schwab. - -Sat Nov 13 00:11:19 1993 Jim Meyering (meyering@comco.com) - - * Version 1.9.1. - - * configure.in [LIBS]: Add -lbsd if that is necessary to get the - syslog function. With help from Kaveh Ghazi. - - * configure.in [LIBS]: Reorganize/unify the code that adds libraries - solely to resolve syslog. Add a library only if it is required to - resolve the syslog reference. - - * configure.in [AC_HAVE_HEADERS]: Check for sys/timeb.h. - getdate.y needs to know. - [LIBS]: Check for initgroups in -los. This is required by SCO-ODT-3.0 - when linking su. - [LIBS]: Check -lufc for crypt. - Reported by Steven W Orr (steveo@world.std.com). - -Thu Nov 11 23:55:48 1993 Jim Meyering (meyering@comco.com) - - * id.c [NGROUPS_MAX]: Undefine before redefining. - From Kaveh R. Ghazi (ghazi@noc.rutgers.edu). - - * who.c (list_entries): Trim any trailing blanks from ut_name - and make sure the string is NUL-terminated before printing it. - Before, `who -q' displayed 8-character names with a tty - (e.g. `q1') suffix. - - * stty.c [CFLUSHO]: Move this definition so it follows the - one for VFLUSHO. - -Mon Nov 08 23:16:36 1993 Jim Meyering (meyering@comco.com) - - * Version 1.9. - - * su.c (correct_password): Report an error and fail if getpass - returns NULL. - -Tue Nov 02 01:14:21 1993 Jim Meyering (meyering@comco.com) - - * acconfig.h: Add comments. - - * printenv.c (main): Exit with status == 2 for file error. - - * yes.c (main): Restore argv/optind handling -- now that - parse_long_options doesn't change optind. - -Mon Oct 25 19:22:58 1993 Jim Meyering (meyering@comco.com) - - * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, id.c, - logname.c, nice.c, pathchk.c, printenv.c, printf.c, sleep.c, - stty.c, su.c, tee.c, test.c, tty.c, uname.c, who.c, whoami.c, - yes.c: Use the preferred `--longopt=arg' syntax in --help message - rather than `--longopt arg'. From Francois Pinard. - - * stty.c (main, integer_arg): Don't just call error(1,... about - improper usage. Call `error (0,...' then usage (1). - -Sun Oct 24 14:10:23 1993 Jim Meyering (meyering@comco.com) - - * test.c [member]: Don't try to cast index return value to an int. - That can lose on systems with 64-bit pointers. - - * long-options.c: Save and restore optind, too. - * long-options.h: New file. - * long-options.c, echo.c, expr.c, printf.c, test.c, yes.c: - Include it instead of duplicating dcls. - * src/Makefile.in: Add dependencies for it. - -Tue Oct 19 00:26:27 1993 Jim Meyering (meyering@comco.com) - - * expr.c [!__STDC__]: Don't define away `const'. configure alone - decides whether to do that. From Francois Pinard. - -Sat Oct 16 22:32:54 1993 Jim Meyering (meyering@comco.com) - - * whoami.c (main): Cast printf arg UID so it matches the type - expected by %u format no matter how uid_t is defined. - - * stty.c: Accept `status' option and VDISCARD as an alias for - VFLUSHO. From Arne H. Juul (arnej@imf.unit.no). - - * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, - false.sh, groups.sh, id.c, logname.c, long-options.c, nice.c, - nohup.sh, pathchk.c, printenv.c, printf.c, sleep.c, stty.c, - su.c, tee.c, test.c, true.sh, tty.c, uname.c, who.c, whoami.c, - yes.c: Using --help gets long well- formatted help. Now --help - writes to stdout and exits successfully. From Francois Pinard - . - -Wed Oct 13 13:10:27 1993 Jim Meyering (meyering@comco.com) - - * long-options.c: Include sys/types before system.h. - From Franc,ois Pinard (pinard@iro.umontreal.ca). - -Tue Oct 12 00:53:26 1993 Jim Meyering (meyering@comco.com) - - * stime.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include - or "config.h". - - * src/Makefile.in [clean]: Also delete '['. - -Sun Oct 10 14:05:23 1993 Jim Meyering meyering@comco.com - - * false.sh, groups.sh, nohup.sh, true.sh: Add --help and --version. - * src/Makefile.in (false, groups, nohup, true): Substitute the string - from version.c for @VERSION@ in *.sh. - -Sat Oct 9 23:12:53 1993 Jim Meyering meyering@comco.com - - * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS. - -Tue Oct 5 22:18:05 1993 Jim Meyering meyering@comco.com - - * tty.c (main): Detect write error. Use isatty (rather than - testing whether ttyname() is NULL) to determine exit status - because ttyname may return NULL when stdin is a terminal device. - - * expr.c (eval7): Rewrite if-else-if-else... sequence to avoid a - spurious `function returns without a value' warning. - - * printenv.c (main), tty.c (main): Detect and report write errors. - - * echo.c, patchchk.c, printenv.c, printf.c, sleep.c, stty.c, su.c, - tee.c, test.c, tty.c, uname.c, yes.c: Accept --help and --version - options. - - * long-options.c: New file. To let echo, expr, printf, test, and - yes accept --help and --version as unobtrusively as possible. - * src/Makefile.in [SORUCES]: Add it. - - * configure.in: Add AC_TIME_WITH_SYS_TIME and AC_STAT_MACROS_BROKEN. - - * nice.c (main) [NICE_PRIORITY]: When given an argument, don't - try to get current priority. nice() requires only the delta; - we don't need to compute the absolute priority as for setpriority. - -Mon Oct 04 22:15:07 1993 Jim Meyering (meyering@comco.com) - - * who.c (print_entry, print_heading, who_am_i): - Cast printf field width arguments to int to avoid warnings. - (idle_string): Cast idle seconds and minutes to int. - Declare functions read_utmp and idle_string to be static. - Don't declare ttyname as static. - - * echo.c (just_echo): Use putchar instead of printf. - - * expr.c (parse_long_options): New function. - (main): Use it to handle --version and --help properly. - - * tee.c (main): Put entire #ifdef inside if-braces to make structure - clearer. - (main, tee): Compare close() != 0 rather than close () == -1. - - * pathchk.c (portable_chars_only, dir_ok): Make a couple variables - const. - -Wed Sep 08 00:07:36 1993 Jim Meyering (meyering@comco.com) - - * test.c [advance, unary_advance]: Rewrite using do{...}while(0) - paradigm instead of comma expressions that make Alpha OSFv1.3 - C compiler segfault. - - * basename.c, date.c, dirname.c, env.c, id.c, logname.c, nice.c: - Add --help and --version options. - -Sat Jul 24 08:52:18 1993 Jim Meyering (meyering@comco.com) - - * configure.in: Check for -lshadow. Linux needs it when using shadow - passwords. Reported by Mattias Olofsson . - -Thu May 27 20:05:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - - * configure.in (c_line test): Add missing `fi'. - -Tue May 18 23:49:26 1993 Jim Meyering (meyering@comco.com) - - * mkinstalldirs: New file. - * Makefile.in (installdirs): Use it. - -Thu May 13 01:03:16 1993 Jim Meyering (meyering@comco.com) - - * Makefile.in (installdirs): New rules for creating installation - directories. (install): depend on it. - -Mon May 3 22:09:24 1993 Jim Meyering (meyering@comco.com) - - * configure.in: Add AC_GETGROUPS_T. - * id.c, test.c: Don't define GETGROUPS_T. Now configure does it. - -Sun May 2 00:21:05 1993 Jim Meyering (meyering@comco.com) - - * expr.c (eval6): Terminate result with a zero byte. - The command `expr substr xx 1 2' would fail on systems with - tight malloc. From Steve James . - - * expr.c (null): Recognize the string `0' as zero. - (divide, mod): Upon request to divide by zero, give an error - message instead of dumping core. - From J.T. Conklin . - - * configure.in: Check for sys/time.h; getdate.y needs it for - structs timeval and timezone on some systems. - * Check for gettimeofday and for `struct tm'. - * Add existence tests for memcpy and bcopy. - - * configure.in: Find a parser generator. - - * putenv.c: Include stdlib.h only if __GNU_LIBRARY__ is defined. - Many vendor-supplied have a declaration of putenv that - conflicts with ours. - -Tue Apr 20 02:33:24 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu) - - * stty.c: Use GWINSZ_IN_SYS_IOCTL, not _AIX, to determine - whether sys/ioctl.h is needed to support `stty size'. - -Thu Apr 1 18:03:47 1993 Jim Meyering (meyering@comco.com) - - * printf.c, expr.c [isascii]: Undefine before redefining. - -Sun Mar 28 00:07:45 1993 Jim Meyering (meyering@comco.com) - - * stty.c: Accept `flush' option. From Arne H. Juul arnej@lise.unit.no - * system.h: Don't define r?index, bcopy... if they're already defined. - -Thu Mar 25 22:41:01 1993 Jim Meyering (meyering@comco.com) - - * configure.in: Add AC_IRIX_SUN to get -lsun because - Irix-4.0.5's libc.a doesn't have yp/NIS entrypoints. - From Kjetil Wiekhorst J|rgensen . - -Fri Mar 05 00:02:53 1993 Jim Meyering (meyering@comco.com) - - * date.c: Add long-named options. - -Sun Dec 6 23:17:09 1992 Jim Meyering (meyering@comco.com) - - * date.c: Remove unused definition of isdigit. - * expr.c (toarith): Change single use of isdigit to ISDIGIT. - * printf.c (print_formatted, print_esc): Define ISDIGIT and - ISXDIGIT and use them instead of isdigit and isxdigit. - -Wed Dec 2 12:49:11 1992 Jim Meyering (meyering@comco.com) - - * env.c, id.c, nice.c, pathchk.c, stty.c, su.c, tee.c, tty.c, - uname.c, who.c: Convert static declarations of struct option - to use new macros from getopt.h: no_argument, required_argument, - and optional_argument. - -Tue Nov 24 09:46:02 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu) - - * echo.c: Use V9_DEFAULT instead of USG. Define it always. - - * system.h: Use HAVE_FCNTL_H and HAVE_STRING_H instead of USG. - -Wed Nov 11 18:19:10 1992 Jim Meyering (meyering@hal.gnu.ai.mit.edu) - - * All files in src: Make all functions and extern variables static. - Make all longopts arrays const as well as static. - Make a couple statically initialized aggregates `const.' - - * pathchk.c (portable_chars_only): Cast char used as array index. - - * echo.c (main), su.c (restricted_shell): Add parentheses to - assignment statements used in boolean context. - - * stty.c (set_mode): Parenthesize expressions with bit operations - to correctly set/reset modes bits. - -Wed Oct 28 14:16:48 1992 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu) - - * Version 1.8. - - * stty.c: Accept Irix VRPRNT for VREPRINT. - From Jim Meyering. - - * stty.c: Fix some type mismatches. From Bruce Evans, bde@runx.oz.au. - - * who.c (read_utmp): Close file on error. - From Bruce Evans. - - * su.c, test.c: Add some decls. From Bruce Evans. - - * sleep.c (main): Arg to sleep is unsigned, not long. - From Bruce Evans. - -Fri Sep 11 00:25:52 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * echo.c, echo.1: New files. - -Thu Sep 10 18:42:44 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * pathchk.c (main): Don't strip trailing slashes from args; - they might make a path invalid. - (portable_chars_only, dir_ok): New functions. - (validate_path): Renamed from validate_new_path. - Call them. Don't complain if a leading - dir doesn't exist. Don't replace `parent' with a dir that - doesn't exist. Don't print a message when falling back - from pathconf to constant values. - - * who.c [!UTMP_FILE]: If _PATH_UTMP is defined, use it instead - of /etc/utmp. From Marc Boucher . - -Tue Aug 25 17:02:25 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * Version 1.7. - - * groups.sh, nohup.sh: Add $(bindir) to front of path. - -Mon Aug 24 16:39:39 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * stty.c: make sane value for "min" 1, not 0. - From haible@ma2s2.mathematik.uni-karlsruhe.de (Bruno Haible). - -Sun Aug 23 03:02:07 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * id.c, test.c: Use NGROUPS_MAX if it's defined. 386BSD is like sun. - -Sat Aug 22 03:16:41 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * test.c: Rename STANDALONE to TEST_STANDALONE to avoid IBM RT - ACIS sys/param.h conflict. - - * su.c (correct_password) [HAVE_SHADOW_H]: Try to get the - encrypted correct password from the shadow password file. - -Fri Jul 17 15:25:01 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * su.c, getusershell.c: New files. - -Fri Jul 3 15:08:43 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * stty.c, who.c: Change FOO_MISSING to HAVE_FOO. - -Fri Jun 5 01:49:29 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * strcspn.c: New file. - - * expr.c: Misc. cleanups. - - * expr.c (eval7): Renamed from eval6. - Give syntax error if no more args. Don't coerce all values to numbers. - (eval6): New function. - (eval5): Accept == as a synonym for =. - (eval2): Coerce values to numbers for comparisons. - Above all from Dana Jacobsen (jacobsd@prism.cs.orst.edu). - -Thu Jun 4 19:32:09 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * printf.c (print_formatted): Move main loop into new function. - (main): Add an outer loop to use the format multiple times. - (verify): Don't reject a completely empty string. - Check errno (for overflow). - - * false.sh, true.sh: New programs. Oh, boy. - -Thu May 14 01:17:22 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * stty.c (set_mode): Support crt and dec modes partially if - necessary, so they work on, for example, Ultrix . . . . - -Wed May 13 14:47:45 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * stty.c (set_mode): Swap nl and -nl. Have them also affect - output as well as input. - -Tue May 12 00:07:28 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * date.c (show_date): Use strftime for the whole conversion. - -Tue May 5 15:20:24 1992 David J. MacKenzie (djm@hal) - - * stty.c (wrapf): Print the formatted buffer; don't redo the - formatting using vprintf. - -Thu Apr 30 01:17:08 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) - - * printf.c (xstrtol, xstrtoul, xstrtod, verify): New functions. - (main, print_direc): Use them. Make error messages more specific. - - * tee.c (tee): Only malloc and free the table of file descriptors - if >0 files are given. - -Fri Apr 17 11:56:48 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) - - * pathchk.c (validate_new_path): Print the name of the component that - failed the length test, not the whole path. - From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de). - -Mon Apr 6 15:11:36 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) - - * who.c (read_utmp): Check close return for error. - (print_heading): Align columns based on sizes of utmp members. - (who_am_i): Skip past /dev/ instead of skipping leading path. - -Mon Mar 16 23:47:03 1992 David J. MacKenzie (djm@apple-gunkies.gnu.ai.mit.edu) - - * date.c (show_date): Don't call strftime if FORMAT is the - empty string. - - * date.c (main): Reorganize to reduce duplicated code. - Add -d option. - (usage): Document -d. - (set_date): Function removed. - -Tue Feb 11 16:12:18 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * printf.c (print_esc): When a numeric escape is given, - don't call print_esc_char, and return 1 less. - From Thorston Ohl. - -Mon Jan 20 02:17:18 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.6. - - * test.c: HAVE_MULTIPLE_GROUPS -> HAVE_GETGROUPS, for bash 1.11. - -Fri Jan 17 15:46:18 1992 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * expr.c (docolon): Use re_nsub to find the number of - subexpressions . . . From Karl Berry, who knows. - -Wed Dec 25 23:27:53 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * expr.c (docolon): Use the new way (re_regs.num_regs > 0) to find - out if there were any subexpressions, instead of the old way - (re_regs.start[1] >= 0), which can cause random memory - accesses with regex 0.1. From Brian Matthews. - -Tue Dec 24 02:12:15 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * system.h, id.c, pathchk.c, tee.c: Change POSIX ifdefs to - HAVE_UNISTD_H and _POSIX_VERSION. - -Wed Dec 11 13:15:09 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.5. - - * expr.c (main): Set obscure_syntax to tell re_match to - allocate memory for the group registers. - -Mon Dec 9 16:03:14 1991 Charles Hannum (mycroft at hal.gnu.ai.mit.edu) - - * who.c (list_entries): Check type == USER_PROCESS if defined, for SysV. - -Sat Dec 7 00:32:02 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.4. - - * env, id, nice, pathchk, stty, tee, tty, uname: Change usage - messages and documentation to list long-named options starting - with `--' rather than `+'. - - * env.c (main), nice.c (main): Simplify test for which exit - status to use if exec fails. - -Fri Dec 6 23:49:42 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * tee.c (main) [POSIX]: Use sigaction instead of signal, which - POSIX doesn't have. - -Fri Oct 18 00:31:35 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * test.c (two_arguments): Fix from Chet. - - * expr.c: Include regex.h after sys/types.h, not before, so - size_t gets defined. - - * test.c: New version, adapted from bash 1.10. - - * id.c: GID_T -> GETGROUPS_T, for clarity. - -Sat Oct 12 14:38:34 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) - - * configure: Define uid_t and gid_t as int if they're not - defined in sys/types.h. That's probably right for old Unixes - and avoids trying to find the C preprocessor. - -Sat Sep 28 13:01:23 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) - - * stty.c (set_mode): Make `raw' and `cooked' not change parity - and character size, which would probably make them useless on - 7-bit lines. - Make `raw' set the `time' character to 0, not 1. - From Bruce Evans. - - * nohup.sh: If creating nohup.out, give it mode 0600, for POSIX. - -Fri Sep 13 14:59:51 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) - - * id.c [POSIX]: Always use sysconf to get NGROUPS_MAX. - -Thu Aug 29 14:43:07 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * test.c: Don't include sys/file.h if POSIX. - Use gid_t for getgroups. - - * stty.c (set_mode): Use CEOF and CEOL instead of hardcoding them. - (display_speed): Fix a printf string type mismatch. - From Bruce Evans. - -Mon Aug 26 16:52:51 1991 David J. MacKenzie (djm at pogo.gnu.ai.mit.edu) - - * configure, src/Makefile.in, lib/Makefile.in: Only put $< in - Makefiles if VPATH is being used, because older makes don't - understand it. - -Mon Aug 19 01:57:46 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.3. - -Sat Aug 17 22:48:15 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * src/Makefile.in (install): Install a link to test called '['. - -Wed Aug 14 12:22:57 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * test.c (unary_operator): Check first char of string, not its address. - -Sun Aug 11 18:10:30 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.2. - - * system.h: Define S_IFMT if needed, for test.c. - - * test.c: New file, from bash. - - * nice.c: Change +priority to +adjustment (more accurate). - -Sat Aug 10 13:09:51 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * stty.c [WINSIZE_IN_PTEM]: sys/ptem.h requires sys/stream.h. - - * nice.c, configure: Use nice if available and setpriority is missing. - -Thu Aug 8 01:34:05 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * date.c: USG needs TZ=GMT0 for UCT timezone, also. - - * stty.c: Add pass8 and litout modes. - -Sun Aug 4 22:45:51 1991 David J. MacKenzie (djm at wheat-chex) - - * Version 1.1. - -Fri Aug 2 13:22:31 1991 David J. MacKenzie (djm at apple-gunkies) - - * configure: Implement +srcdir. Don't check for bison. - - * stty.c: Don't change ixon in "sane" mode. - - * configure: Use 1 instead of 255 for checking tzname, - because of signedness. - -Thu Aug 1 13:40:58 1991 David J. MacKenzie (djm at apple-gunkies) - - * printenv.c (main): Don't print the variable names when given - args, as people seem to use printenv in scripts after all . . . . - - * stty.c: Don't change parity or character size settings in - "sane" mode. The right values for those depend on the hardware. - -Wed Jul 31 01:19:01 1991 David J. MacKenzie (djm at hal) - - * stty.c [_AIX]: Include sys/ioctl.h -- needed on - AIX to get window size. - -Tue Jul 30 00:06:54 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * getdate.y: New file. - * date.c: Add -s option to set date in English. - * configure: Check for ftime. - - * date.c: Remove COMPUTE_TM_ZONE code, which didn't work. - * configure: Instead of checking whether tzname is declared, - check whether it exists. - - * logname.c (main): Go back to just printing an error message - if getlogin fails, as required by POSIX. - - * stty.c (screen_columns, wrapf): New functions to implement - output wrapping. - Globally: use them. - - * configure: Define uid_t and gid_t if sys/types.h doesn't. - * system.h: Define F_OK et al. if nothing else does. - -Mon Jul 29 21:11:16 1991 David J. MacKenzie (djm at wombat.gnu.ai.mit.edu) - - * pathchk.c (validate_new_path): Rearrange tests so that - pathconf is only called on existing directories. Use access - instead of stat to determine directory searchability. - From Jim Meyering. - - * stty.c, configure: Add WINSIZE_IN_PTEM and GWINSZ_BROKEN for SCO. - -Wed Jul 24 02:13:31 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * stty.c (sane_mode): Always set control chars to sane values. - Set min and time if they're different from eof and eol. - - * whoami.c: Print UID as unsigned. - * logname.c: Do "whoami" if getlogin fails. - - * logname.c (main): fprintf was missing an arg. - -Tue Jul 23 02:20:15 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * id.c: GID_T is int if ultrix as well as if sun. - - * stty.c: Implement raw and cooked modes. - -Mon Jul 22 15:21:21 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * tee.c (main): close stdin and stdout to check for errors. - - * stty.c: Use tcflag_t for termios bitmasks. - Use speed_t for speeds. Use unsigned long for baud rates to - accommodate large values, and support 57600 and 115200 if available. - - * date.c, configure: Instead of SIZE_T_MISSING, - define size_t if it's missing. - - * id.c, whoami.c: Use uid_t and gid_t. - - * id.c: If POSIX and not sun (bogus!), pass getgroups and - getugroups an array of gid_t instead of int. - - * system.h: New file. - * Most programs: include it. - -Fri Jul 19 12:04:58 1991 David J. MacKenzie (djm at apple-gunkies) - - * env.c [!STDC_HEADERS]: Declare errno. - * printf.c, pathchk.c: Don't include errno.h; not needed. - - * version.c: New file. - * All C programs: Link with it, to get version number in the - binary where at least `strings -' and grep can find it. - - * pathchk.c (strip_trailing_slashes): Function removed; use - version in lib. - -Mon Jul 15 11:34:22 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * Version 1.0. - - * pathchk.c: Always check whether _POSIX_PATH_MAX and - _POSIX_NAME_MAX need to be defined. - [POSIX]: If no PATH_MAX or NAME_MAX and pathconf for the path - returns -1 (some systems do this if the path does not exist), - use pathconf for "/". - -Sun Jul 14 21:17:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * date.c (date_seconds): Function removed, replaced with - posixtm.y in lib. - (set_date): Change caller. - * configure: Check for bison. - - * stty.c [!C_LINE_MISSING]: Add support for setting and - printing the line discipline. - * configure: Check for C_LINE_MISSING. - - * configure: Check for Minix. - -Sat Jul 13 01:33:59 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * Add `man' directory and manual pages. - * configure: Set INSTALLDATA and MAN. - - * id.c: Add #ifdefs for POSIX ways of getting max groups list size. - (print_group_list, print_full_info): Allocate list of groups - with malloc since its size might not be constant. - - * nice.c (main): Don't adjust priority if printing it. - Default adjustment of 10, not 0. - - * printf.c: Add \c escape and %b conversion. - Implement '*' for field width and precision. - Make all errors fatal. - (print_esc_string, print_esc): New functions. - - * configure, date.c: Change SYS_TIME_H to TM_IN_SYS_TIME. - * configure: Always check where to find struct tm. - - * yes.c: Rewrite to accept multiple arguments. - - * Add groups.sh. - -Fri Jul 12 10:57:00 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) - - * dirname.c: Move code from dirname function into main, - simplifying things quite a bit. From Jim Meyering. - * Omit strdup from lib; no longer used. - * configure: Don't check for strdup. - - * printenv.c (main): If args given, print the values in the order - given on the command line rather than the order given in the - environment. - - * tee.c, tty.c (struct longopts): Revise to make short-option - equivalents clear. - -Thu Jul 11 12:46:11 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * nice.c: Add long options. - - * Add date command and libraries it needs. - * configure: Updated. - - * env.c: Add long options. Use GNU putenv instead of custom - setenv function. - - * id.c: Add long options. - - * pathchk.c [POSIX]: Use pathconf if necessary to get NAME_MAX - and PATH_MAX. - - * nice.c: Use exit status required for nohup by POSIX.2 - (nohup execs nice). - - * sleep.c: Don't bother with hex and octal. - - * env.c: Fix exit status for POSIX.2 draft 11.1. - - * Many files: Remove private copies of xmalloc, error, xstrdup, - etc. to use shared versions. - Fix #includes for USG, STDC_HEADERS, POSIX. - -Mon Jul 8 18:56:24 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) - - * date.c (main): For -u, set TZ to "" instead of "GMT0", - unless on HP-UX or Ultrix. - - * Rename some feature-test macros. - * stime.c: Created from code in date.c. - * date.c (compute_tm_zone): New function. - (date_seconds, show_date): Use it. - (xmalloc, xrealloc): Functions removed; use xmalloc.c instead. - -Tue Jul 2 02:28:11 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) - - * tee.c (tee): Report errors in closing files. - -Mon Mar 18 10:13:59 1991 Jeffrey A. Law (law at geech.ai.mit.edu) - - * date.c (date_seconds, show_date): #if COMPUTE_TMZONE then - compute the proper value to place in tm->tm_zone from - information returned by localtime and gettimeofday. - -Fri Apr 26 11:38:09 1991 David J. MacKenzie (djm at mole.gnu.ai.mit.edu) - - * stty.c: Define default values for control chars if necessary. - Complain about invalid options if no other options follow. - Use POSIX functions instead of ioctl, for manipulating termios. - - * expr.c (main): Exit status was backwards. - -Thu Dec 20 00:36:01 1990 David J. MacKenzie (djm at apple-gunkies) - - * id.c: Reorganization and many changes to fix bugs and POSIX - compliance problems. - -Mon Dec 10 03:09:13 1990 David J. MacKenzie (djm at apple-gunkies) - - * stty.c: Don't declare printf and some other functions that - might have variable numbers of args in system header file decls. - -Tue Nov 14 23:37:22 1990 Roland McGrath (roland at geech.ai.mit.edu) - - * id.c (print_groups): Put spaces after commas. - (print_group): New fn, to print a group id. Uses numeric fmt - unless -n, in which case it uses group names. - (print_groups): Call it. Find the rgid and egid, and print them as - well as the supplementary groups. Make sure we print each group only - once. - -Sun Sep 16 01:49:14 1990 David J. MacKenzie (djm at apple-gunkies) - - * id.c (main): Add -G option for POSIX.2 draft 10. - Allow a username to be given. - (print_groups): New function from code in main. - (getugroups): New function. - -Sun Aug 12 00:32:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * env.c (main): Instead of setting _POSIX_OPTION_ORDER, - tell getopt to not permute, with `+'. - -Sat Aug 11 01:32:53 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * expr.c: Use regex.c library instead of private regex routines. - - * nice.c (main): Add -n option for POSIX.2a. - (usage): New function. - -Fri Aug 10 23:58:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * who.c: Add -m, -i, -w options for POSIX.2a. - -Tue Aug 7 00:01:02 1990 David J. MacKenzie (djm at apple-gunkies) - - * expr.c: Use exit directly instead of longjmp on error. - Use argv[0] instead of hardcoded "expr" in messages. - Make some functions void. - -Sat Aug 4 21:19:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu) - - * env.c: Change exit statuses for POSIX draft 10. - -Wed Jul 4 04:32:51 1990 David J. MacKenzie (djm at apple-gunkies) - - * tee.c: Use error instead of perror_with_name and - out_of_memory. - -Wed Jun 20 02:39:49 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * date.c: Change -DSETTOD to -DSTIME_MISSING, -DSIZE_T to - -DSIZE_T_IN_TYPES, and -DSTDC_HDRS to -DSTDC_HEADERS. - Declare some more functions. Replace fatal, memory_out, and - nonfatal_perror with error. - -Mon Jun 18 00:16:52 1990 David J. MacKenzie (djm at apple-gunkies) - - * stty.c: Add some Unix compatibility modes. - -Sat Jun 16 21:05:59 1990 David J. MacKenzie (djm at apple-gunkies) - - * stty.c (display_changed, display_all): Print values of min - and time. - -Thu Jun 14 17:49:31 1990 David J. MacKenzie (djm at apple-gunkies) - - * stty.c: Implement tab, backspace, etc. delay args. - -Thu May 31 12:25:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * nohup.sh: Don't ignore SIGTERM. - If ./nohup.out is unwritable, try $HOME/nohup.out. - -Thu May 3 22:33:32 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * who.c: Use error instead of fatal and fatal_perror. - (print_headings): Print headings in all caps, like SYSV does. - (list_entries): New function for -q to make it like SYSV -q. - (valid_entries): Function removed. - -Mon Apr 2 01:27:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * id.c (main): Don't strip off leading path from program name. - Revise a couple of error messages. - - * whoami.c (main): Use geteuid, not getuid, for Unix compatibility. - -Tue Mar 20 14:28:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu) - - * tee.c (main): Pass list of files and its size as args to tee - rather than as global vars. Exit with return value of tee - instead of always 0. - (tee): Use unbuffered I/O instead of stdio, for POSIX. - Return an error status. - (xwrite): New function. - -Tue Mar 13 00:38:13 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * who.c (who_am_i): Print heading before checking to see - whether there is an entry for the tty on stdin, for - consistency with the who function. - (main): Use argv[optind], not argv[1], as alternate file. - -Fri Mar 9 15:49:04 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * who.c: Rename UTMP to UTMP_FILE for compatibility with SysV - utmp.h. Include some additional header files. - (main): Recognize some options from SysVr3 who. Call usage. - Set new global var `program_name' from argv[0]. - (usage): New function. - (who): If -q given, only print count of users logged on. - (print_entry): New function to format an entry on the output; - make format more like that of the Unix who programs. - (print_heading): New function to print a line describing each - output field. - (who, who_am_i): Call print_entry and print_heading. - (valid_entries): New function to return count of nonempty - entries in utmp. - (search_entries): Compare with utmp tty field instead of - username field. Don't assume null termination in utmp field. - (who_am_i): Print the entry for the tty on stdin rather than - the first entry found for the uid. If hostname is not - available, use a null one instead of "". - Don't hardcode max hostname length. - (idle_string): New function to format idle time field. - (fatal, fatal_perror): Use program_name instead of hardcoded "who" - in error messages. - -Tue Mar 6 00:59:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu) - - * printenv.c (main): Allow multiple variables to be specified. - (barf): Function removed. - -Sat Jan 20 18:41:48 1990 Jim Kingdon (kingdon at geech) - - * expr.c (nextarg): Do not pass *args to strcmp if NULL. - -Mon Dec 18 09:57:20 1989 David J. MacKenzie (djm at hobbes.ai.mit.edu) - - * printenv.c (main): Simplify error messages. - -Sat Dec 16 15:15:50 1989 David J. MacKenzie (djm at hobbes.ai.mit.edu) - - * expr.c: Indent to regularize spacing. - (cmpv, arithf): Change '#define foo (args)' to '#define foo(args)' - so they compile. - (docolon): Remove unused vars. - (multiply): Rename from times to avoid libc conflict. - (error): Include program name in message. - (xmalloc): Rename from Malloc. - (re_compiled): Rename from re_comp to avoid libc conflict. - - * basename.c: Fix some weird indentation. - (main): Print a clearer usage message. - Use a simpler method for removing suffix, if given. - (fatal): Function no longer used; removed. - - * sleep.c: (main): Rename `time' to `seconds'. Print usage - message if given no args. - Exit with status 0 instead of falling off end. - (error): Print to stderr, not stdout. - - * tee.c: (main): Use getopt_long instead of custom parser, - and adjust usage message. - Use list of filenames in argv rather than making a copy. - (tee): New function created from the second half of main. - Fix bug where it tried to fclose a loop index instead of a stream. - (xmalloc): Ok to return 0 if 0 bytes requested. - (xrealloc): Unused function removed. - - * whoami.c: Canonicalize usage message and fix error message. - - * who.c: Declare some functions. - (fatal_perror): New function for printing errors after system - calls. - Global: Use it when appropriate. - (xmalloc): Return char *, not int. - (read_utmp): Ok if utmp file is empty. - Include filename in error messages. - (scan_entries): Adjust columns to line up better, particularly - when there are users with 8 character long usernames logged in. - -Sat Oct 28 13:20:43 1989 David J. MacKenzie (djm at spiff) - - * uname.c: Added long options. - global: changed the word `part' to the word `element' - (more precise). - (program_name, long_options): New variables. - (main): Support long options. - (usage): Add long options summary to message. - - - ----- - - Copyright (C) 1989-2017 Free Software Foundation, Inc. - - Copying and distribution of this file, with or without - modification, are permitted provided the copyright notice - and this notice are preserved. - -Local Variables: -mode: indented-text -left-margin: 8 -version-control: never -End: diff --git a/old/sh-utils/NEWS b/old/sh-utils/NEWS deleted file mode 100644 index 83d0482f5..000000000 --- a/old/sh-utils/NEWS +++ /dev/null @@ -1,283 +0,0 @@ - [2.0.15] -* date no longer accepts e.g., September 31 in the MMDDhhmm syntax -* fix a bug in this package's .m4 files and in configure.ac - [2.0.14] -* nohup's behavior is changed as follows, to conform to POSIX 1003.1-2001: - - nohup no longer adjusts scheduling priority; use "nice" for that. - - nohup now redirects stderr to stdout, if stderr is not a terminal. - - nohup exit status is now 126 if command was found but not invoked, - 127 if nohup failed or if command was not found. - [2.0.13] -* uname and uptime work better on *BSD systems -* pathchk now exits nonzero for a path with a directory component - that specifies a non-directory - [2.0.12] -* kill: new program -* who accepts 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. -* The following changes apply on systems conforming to POSIX 1003.1-2001, - and are required by the new POSIX standard: - - `date -I' is no longer supported. Instead, use `date --iso-8601'. - - `nice -NUM' is no longer supported. Instead, use `nice -n NUM'. -* 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. -* 'expr' now uses the LC_COLLATE locale for string comparison, as per POSIX. -* 'expr' now requires '+' rather than 'quote' to quote tokens; - this removes an incompatibility with POSIX. -* date -d 'last friday' would print a date/time that was one hour off - (e.g., 23:00 on *thursday* rather than 00:00 of the preceding friday) - when run such that the current time and the target date/time fall on - opposite sides of a daylight savings time transition. - This problem arose only with relative date strings like `last monday'. - It was not a problem with strings that include absolute dates. -* factor is twice as fast, for large numbers - [2.0.11] -* setting the date now works properly, even when using -u -* `date -f - < /dev/null' no longer dumps core -* some DOS/Windows portability changes - [2.0j] -* `date -d DATE' now parses certain relative DATEs correctly - [2.0i] -* fixed a bug introduced in 2.0h that made many programs fail with a - `write error' when invoked with the --version option - [2.0h] -* all programs fail when printing --help or --version output to a full device -* printf exits nonzero upon write failure -* yes now detects and terminates upon write failure -* date --rfc-822 now always emits day and month names from the `C' locale -* portability tweaks for Solaris8, Ultrix, and DOS - [2.0g] -* date now handles two-digit years with leading zeros correctly. -* printf interprets unicode, \uNNNN \UNNNNNNNN, on systems with the - required support; from Bruno Haible. -* stty's rprnt attribute now works on HPUX 10.20 -* seq's --equal-width option works more portably - [2.0f] -* fix build problems with ut_name vs. ut_user - [2.0e] -* stty: fix long-standing bug that caused test failures on at least HPUX - systems when COLUMNS was set to zero -* still more portability fixes -* unified lib/: now that directory and most of the configuration framework - is common between fileutils, textutils, and sh-utils - [2.0d] -* fix portability problem with sleep vs lib/strtod.c's requirement for -lm - [2.0c] -* fix portability problems with nanosleep.c and with the new code in sleep.c - [2.0b] -* Regenerate lib/Makefile.in so that nanosleep.c is distributed. - [2.0a] -* sleep accepts floating point arguments on command line -* sleep's clock continues counting down when sleep is suspended -* when a suspended sleep process is resumed, it continues sleeping if - there is any time remaining -* who once again prints whatever host information it has, even without --lookup -Changes in release 2.0 -* disable stty tests (otherwise they fail) when `make check' is run via rsh - [1.16m] -* false and true now ignore --help and --version when POSIXLY_CORRECT is set - [1.16l] -* false and true are now C programs rather than shell scripts - [1.16k] -* fix typos in my version of AC_SEARCH_LIBS. -* fix dates on config files so builders don't need autoconf/automake - [1.16j] -* work around problems with my use of AC_SEARCH_LIBS -* fix a bug in id - [1.16i] -* portability tweaks for lib/readutmp.[ch] and src/date.c - [1.16h] -* seq with no arguments now elicits a useful diagnostic rather than a segfault -* portability tweaks to work around utmpname differences -* who works on Solaris - [1.16g] -* factor now uses uintmax_t, so the largest number it can factor is now 2^64 - 1 - on systems with type `long long'. -* nohup no longer modifies the shell's search path -* `basename /' now prints `/', per the single unix spec -* `who --lookup' no longer erroneously reports `localhost' for IP addresses - for which it could not do a reverse lookup. -* `id user' wouldn't report a group id in some situations. Now it always does. - [1.16f] -* chroot now calls chdir ("/") after chroot. -* `date -s' now exits with nonzero status upon failure -* new autoconf tests detect bugs in vendor mktime from Irix-6.4 and SunOS4.1.4 - Your executables will be a little larger on such systems because you'll use - GNU's mktime function, but date will work more reliably. -* hostid: new program -* `yes --help' and `yes --version' print those strings when the POSIXLY_CORRECT - environment variable is set -* who no longer does DNS lookups by default -- the new option, --lookup (-l), - enables lookups - [1.16e] -* pinky: new lightweight finger-style program - [1.16d] -* the groups script now exits non-zero and doesn't print anything more - when `id' fails - [1.16c] -* date -u -d DATE now prints the correct date -* don't remove already-installed su unless it is possible to install the - new one setuid root. - [1.16b] - [1.16a] -* expr accepts new unary operator, quote. -* expr now returns 0 for failed matches where pattern contained e.g., `\\(' -* date -d DATE now works on Unicos systems -* add tests for factor and more for date. -* factor runs a lot faster for large 64-bit inputs -* date works with relative offsets involving the `next' keyword - -Changes in release 1.16 -* stty -tabs works properly -* add tests for date -* date --date "02/29/1996 - 1 year" now works properly - -Changes in release 1.15 -* nice works with very recently-changed GNU libc getopt -* fix several bugs in m4 macros used to create `configure' script -* id works on systems with disfunctional getgroups function -* uptime configure test detects /proc/uptime on Linux - -Changes in release 1.14 -* fix bug in getdate.y that broke date's --date=DATE option on systems - like SunOS4. -* expr treats unadorned ? and + as literals. To make expr treat them as - operators you have to use \? and \+. - -Changes in release 1.13 -* two patches for ISC -* Regenerate all Makefile.in using a patched version of automake-1.1l. - [1.12s] -* lots of little bug fixes -- see ChangeLog - [1.12r] -* uname --processor (-p) works on systems that have sysinfo and define - SI_ARCHITECTURE. -* stty works better on systems like i386-pc-isc3.0 -* date --date=DATE accepts dates like those in an RCS log listing, e.g., - `1992/11/01 05:44:34'. -* printf now warns if excess arguments are ignored. -* tee no longer fails immediately upon receipt of SIGPIPE - [1.12q] -* running `make check' runs tests of nice -* lots of configuration-related improvements -* nice allows `+' in options like -+8 and -+13. -* when matching, expr warns about non-portability when the first character - of the basic regular expression is `^' -* `id user' no longer prints bogus group list -* uses automake-generated Makefile templates -* date accepts new %V format -* date's %U and %W formats work properly -* nice option handling works with 2-digit old-style-option adjustments. - Now, `nice -18 -- nice' prints `18'. Before it printed `8'. -* internationalized diagnostic messages -* `date -d "01/01/1998 3 years" +%Y' now works properly. It prints 2001. -* New programs: chroot, factor, seq, uptime. -* date accepts new option: --rfc-822 (-R) -* date accepts new format, %z, for RFC-822 style numeric timezone (-0500) -* date: fix bugs in the handling of date -u +'%s %Z'. -* date accepts new option --reference=FILE (-r FILE) analogous to the - like-named touch option. -* date can now format dates up to and including ones in the year 2037 -User visible changes in release 1.12 -* None. -User visible changes in release 1.11 -* date accepts new option: (-f) --file=DATEFILE -* skeletal texinfo documentation (mainly just the `invoking' nodes) -* `stty werase ^W' works. Before, werase wasn't enabled for AIX-3.2.5. -* su with no arguments works properly -* nice accepts options like `--5' (this is interpreted like `-n -5') -* nice now interprets `-1 -1' like `-1' not like `-11' -* `stty speed' and `stty size' no longer output a spurious newline -User visible changes in release 1.10 -* change package name from shellutils to sh-utils -* add hostname, pwd, and users commands -* --version outputs the name of the utility as well as the package name - and version number. -* Configure properly determines options for stty on SCO ODT 3.0 systems. -* `date -d' works better. Before, `date -d '4apr94'' produced - `Sun Apr 3 23:00:00 CDT 1994'. -User visible changes in release 1.9.4 -* Repair stty option handling. -User visible changes in release 1.9.3 -* `stty -a -g' gets a diagnostic -* `stty {-a|-g} any-other-argument' gets a diagnostic -* stty no longer ignores some of its arguments -* basename and dirname no longer treat `--' specially -* `basename -- file.c .c' generates a usage error. Before, it output `file'. -* `basename file-dist -dist' outputs `file'. Before it output `file-dist'. -* stty defaults `swtch' to undefined for Solaris so `susp' (^Z) will work. - Before, with the default settings ^Z did nothing. -* stty no longer gives an error message when it finds a spurious difference - (due to buggy tcgetattr/tcsetattr) between requested and current tty - modes under SunOS 4.1.x. -* stty no longer fails if the ioctl to determine the display width fails - when displaying settings. -* stty works around SunOS 4.x kernel bug that made `stty rows 0 cols 0' fail. -* who and tee no longer fail gratuitously when continued after an - interrupted read or write system call. -* date accepts new format: %s time in seconds since 1970-01-01 00:00:00 UCT -* date -d can parse dates like `11-JUL-1991' -* expr '' == 0 works (before, it printed 1) -* stty no longer fails on telnet sessions to Solaris systems -* `cd /etc; who utmp' now works. Before, any filename argument had to be - absolute or relative to /dev. - -User visible changes in release 1.9.2: -* who output is better formatted on Solaris and other SysVr4 systems -* fix a minor problem in formatting the output from `stty -a' -* yes with arguments outputs newlines again -* partial stty failures are reported - -Major changes in release 1.9.1: -* stty can be built on Suns again -* minor fix for who -q - -Major changes in release 1.9: -* su fails gracefully when getpass is unable to open /dev/tty. -* printenv and tty detect and report write errors -* fix bug in stty -* stty accepts the new options status and flush on systems that provide them -* `expr 1 / 0' gives an error message rather than trying to divide by zero -* expr's `substr' doesn't overrun malloc'd buffer -* expr recognizes the string `0' as zero -* better support for Linux, Dec Alpha, and SGI Irix -* all programs (even true and false) accept --version and --help options -* uname's --version option is no longer equivalent to its -v option -* configure uses config.h, so DEFS won't exceed preprocessor limits of - some compilers on the number of symbols defined via -D. -* work around problem where $(srcdir)/config.h was used instead of - ../config.h -- this happened only when building in a subdirectory - and when config.h remained in $(srcdir) from a previous ./configure. -* make may be run from the subdirectories - -Major changes in release 1.8: -* add echo command -* fix some incorrect warnings in pathchk -* look at the right utmp file on 386BSD -* date doesn't dump core on some systems now - -Major changes in release 1.7: -* add su, who, true, false commands -* add more tests to expr -* fix printf program handling of \ escapes -* printf can re-use format string for multiple groups of arguments -* printf catches numeric conversion errors with an ANSI C library -* stty nl and -nl were backwards -* date can format an arbitrary date without setting it - -======================================================================== - -Copyright (C) 1992-2017 Free Software Foundation, Inc. - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.3 or -any later version published by the Free Software Foundation; with no -Invariant Sections, with no Front-Cover Texts, and with no Back-Cover -Texts. A copy of the license is included in the ``GNU Free -Documentation License'' file as part of this distribution. -- cgit v1.2.3-70-g09d2