📄 changelog
字号:
* 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 <meyering@lucent.com> * 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 <meyering@lucent.com> 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 <meyering@lucent.com> * Makefile.maint (my-distcheck): Remove spurious blank line. Remove $(DEPDIR) *after* making distclean, not before.2000-04-30 Jim Meyering <meyering@lucent.com> * src/yes.c: Detect and terminate upon write failure.2000-04-14 Jim Meyering <meyering@lucent.com> * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and remove unnecessary uses of `defined' (aesthetics).2000-04-12 Jim Meyering <meyering@lucent.com> 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 <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Estonian (et).2000-04-01 Jochen Hein <jochen@jochen.org> * 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 <meyering@lucent.com> * 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 <eggert@twinsun.com> * src/date.c: Include <langinfo.h> 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds.2000-03-12 Jim Meyering <meyering@lucent.com> 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 <meyering@lucent.com> * 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 <haible@clisp.cons.org> * 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 <meyering@lucent.com> 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * Makefile.am (EXTRA_DIST): Include GNUmakefile. * src/seq.c (get_width_format): Fix portability problem with `-0' vs. `0'.2000-02-22 Jim Meyering <meyering@lucent.com> * tests/date/Test.pm (datevtime-1): New test. From John Kendall.2000-02-15 Jim Meyering <meyering@lucent.com> * man/Makefile.maint ($(man_MANS)): Remove $@-t1.2000-02-13 Jim Meyering <meyering@lucent.com> * tests/Fetish.pm (run_tests): Discard stderr. Reverse diff args, so `expected' is last, as in mk-script.2000-02-12 Jim Meyering <meyering@lucent.com> * tests/mk-script: Invoke `diff' when differences are found. * tests/Fetish.pm (run_tests): Likewise.2000-02-09 Jim Meyering <meyering@lucent.com> * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard to go along with corrected autoconf test: Reported by Ga雔 Qu閞i.2000-02-05 Jim Meyering <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <haible@linuix.math.u-bordeaux.fr> 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 <meyering@lucent.com> * configure.in (ALL_LINGUAS): Add Galician (gl).2000-01-16 Jim Meyering <meyering@lucent.com> * 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 <meyering@lucent.com> * 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 <meyering@lucent.com> * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST.2000-01-11 Jim Meyering <meyering@lucent.com> 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 <meyering@lucent.com> * 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 <meyering@ascend.com> * 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 <eggert@set.twinsun.com> * 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 <eggert@twinsun.com> 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 <meyering@ascend.com> 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 <meyering@ascend.com> * lib/nanosleep.c: Include both time.h and sys/time.h only #if TIME_WITH_SYS_TIME.2000-01-03 Paul Eggert <eggert@twinsun.com> 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 (<fenv.h>): 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 <meyering@ascend.com> * Version 2.0b. * lib/Makefile.in: Regenerate. * Version 2.0a.1999-12-26 Jim Meyering <meyering@ascend.com> * lib/nanosleep.c (nanosleep): New file.1999-12-23 Jim Meyering <meyering@ascend.com> * 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -