]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Mon, 14 Feb 1994 21:19:12 +0000 (21:19 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 14 Feb 1994 21:19:12 +0000 (21:19 +0000)
old/sh-utils/ChangeLog
old/sh-utils/NEWS
src/basename.c
src/dirname.c
src/stty.c

index f8255604263b10f65e33513cfe1fd922b72804bf..1df78dd8ac8023f10e1ff603a0fbf5a63e29acae 100644 (file)
@@ -1,3 +1,39 @@
+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 <jrs@world.std.com>
+       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
index 70292f824a934b9115ac53188bf6ecf533a3a3f5..90958f32d76b46320d46320758443191a14a1b1e 100644 (file)
@@ -1,4 +1,10 @@
 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
index 6fc11302e98e75b6abf144a561ab7110da9e1dec..8f773e9aad48bb80c53e8271d7fc573ebce692cc 100644 (file)
@@ -59,7 +59,11 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... PATH [SUFFIX]\n", program_name);
+      printf ("\
+Usage: %s PATH [SUFFIX]\n\
+  or:  %s OPTION\n\
+",
+             program_name, program_name);
       printf ("\
 \n\
   --help      display this help and exit\n\
index a0345be7ae8e3d6ac610719f5fc6384e7de719f3..17beaba203b57beaf352ec0ad5877171318feb20 100644 (file)
@@ -48,7 +48,11 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... PATH\n", program_name);
+      printf ("\
+Usage: %s PATH\n\
+  or:  %s OPTION\n\
+",
+             program_name, program_name);
       printf ("\
 \n\
   --help      display this help and exit\n\
index 5b3f7f4bef59bf95e049ef2850fcb3fd4d0a934a..b094f8bce09a7f916494f70b02561f21c5d33465 100644 (file)
@@ -452,7 +452,11 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... [SETTING]...\n", program_name);
+      printf ("\
+Usage: %s [SETTING]...\n\
+  or:  %s OPTION\n\
+",
+             program_name, program_name);
       printf ("\
 \n\
   -a, --all       print all current settings in human-readable form\n\