]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
merge with 1.9.2c
authorJim Meyering <jim@meyering.net>
Mon, 3 Jan 1994 05:22:20 +0000 (05:22 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Jan 1994 05:22:20 +0000 (05:22 +0000)
old/sh-utils/ChangeLog
old/sh-utils/NEWS
src/date.c
src/id.c
src/tee.c

index b48ebded1cc5c749830c277812b012e36cc80c2f..34d37cb3aec82d59df25335d9a64646e258e62a6 100644 (file)
@@ -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.
index 4f5b15bd355c87a6848a24ed97861369883552a1..3bbbcec4123368a2943ee6e6c734eb85a2c58161 100644 (file)
@@ -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.
 \f
 User visible changes in release 1.9.2:
 * who output is better formatted on Solaris and other SysVr4 systems
index 2fe4783d48e2c51055a8b76ba8fb04dcc1250ce7..65a41d911710bbd8c0781183623bdf433a431a15 100644 (file)
@@ -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);
index e5d12d16cfe364323f6307a6406532b92e768b92..6af012907f11514374e3773a3b9f2fe33ac2e7f6 100644 (file)
--- 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\
index 1444b2a015b5b1a36e406a720838894238a70117..ea257d1bcaa71282ae070163706c50f3f12edd6b 100644 (file)
--- 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.  */