From: Jim Meyering Date: Mon, 3 Jan 1994 05:22:20 +0000 (+0000) Subject: merge with 1.9.2c X-Git-Tag: textutils-1_12_1~780 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82a709847437d01fc12ec90cb8670c470c40fb7e;p=thirdparty%2Fcoreutils.git merge with 1.9.2c --- diff --git a/old/sh-utils/ChangeLog b/old/sh-utils/ChangeLog index b48ebded1c..34d37cb3ae 100644 --- a/old/sh-utils/ChangeLog +++ b/old/sh-utils/ChangeLog @@ -1,3 +1,7 @@ +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. @@ -9,11 +13,13 @@ Tue Dec 28 15:49:32 1993 Jim Meyering (meyering@comco.com) * 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 safe_write instead and include the + (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. diff --git a/old/sh-utils/NEWS b/old/sh-utils/NEWS index 4f5b15bd35..3bbbcec412 100644 --- a/old/sh-utils/NEWS +++ b/old/sh-utils/NEWS @@ -3,6 +3,8 @@ User visible changes in release 1.10 * 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 diff --git a/src/date.c b/src/date.c index 2fe4783d48..65a41d9117 100644 --- a/src/date.c +++ b/src/date.c @@ -243,36 +243,36 @@ usage (status) FORMAT controls the output. Interpreted sequences are:\n\ \n\ %%%% a literal %%\n\ - %%A locale's full weekday name, variable length (Sunday..Saturday)\n\ - %%B locale's full month name, variable length (January..December)\n\ - %%D date (mm/dd/yy)\n\ - %%H hour (00..23)\n\ - %%I hour (01..12)\n\ - %%M minute (00..59)\n\ - %%S second (00..61)\n\ - %%T time, 24-hour (hh:mm:ss)\n\ - %%U week number of year with Sunday as first day of week (00..53)\n\ - %%W week number of year with Monday as first day of week (00..53)\n\ - %%X locale's time representation (%%H:%%M:%%S)\n\ - %%Y year (1970...)\n\ - %%Z time zone (e.g., EDT), or nothing if no time zone is determinable\n\ %%a locale's abbreviated weekday name (Sun..Sat)\n\ + %%A locale's full weekday name, variable length (Sunday..Saturday)\n\ %%b locale's abbreviated month name (Jan..Dec)\n\ + %%B locale's full month name, variable length (January..December)\n\ %%c locale's date and time (Sat Nov 04 12:02:33 EST 1989)\n\ %%d day of month (01..31)\n\ + %%D date (mm/dd/yy)\n\ %%h same as %%b\n\ + %%H hour (00..23)\n\ + %%I hour (01..12)\n\ %%j day of year (001..366)\n\ %%k hour ( 0..23)\n\ %%l hour ( 1..12)\n\ %%m month (01..12)\n\ + %%M minute (00..59)\n\ %%n a newline\n\ %%p locale's AM or PM\n\ %%r time, 12-hour (hh:mm:ss [AP]M)\n\ %%s seconds since 00:00:00, Jan 1, 1970 (a nonstandard extension)\n\ + %%S second (00..61)\n\ %%t a horizontal tab\n\ + %%T time, 24-hour (hh:mm:ss)\n\ + %%U week number of year with Sunday as first day of week (00..53)\n\ %%w day of week (0..6); 0 represents Sunday\n\ + %%W week number of year with Monday as first day of week (00..53)\n\ %%x locale's date representation (mm/dd/yy)\n\ + %%X locale's time representation (%%H:%%M:%%S)\n\ %%y last two digits of year (00..99)\n\ + %%Y year (1970...)\n\ + %%Z time zone (e.g., EDT), or nothing if no time zone is determinable\n\ "); } exit (status); diff --git a/src/id.c b/src/id.c index e5d12d16cf..6af012907f 100644 --- a/src/id.c +++ b/src/id.c @@ -373,10 +373,10 @@ usage (status) printf ("\ \n\ -g, --group print only the group ID\n\ + -G, --groups print only the supplementary groups\n\ -n, --name print a name instead of a number, for -ugG\n\ -r, --real print the real ID instead of effective ID, for -ugG\n\ -u, --user print only the user ID\n\ - -G, --groups print only the supplementary groups\n\ --help display this help and exit\n\ --version output version information and exit\n\ \n\ diff --git a/src/tee.c b/src/tee.c index 1444b2a015..ea257d1bca 100644 --- a/src/tee.c +++ b/src/tee.c @@ -38,7 +38,7 @@ char *xmalloc (); void error (); -int safe_write (); +int full_write (); static int tee (); @@ -207,7 +207,7 @@ tee (nfiles, files) for (i = 0; i <= nfiles; i++) { if (descriptors[i] != -1 - && safe_write (descriptors[i], buffer, bytes_read)) + && full_write (descriptors[i], buffer, bytes_read) < 0) { error (0, errno, "%s", files[i]); /* Don't close stdout. That's done in main. */