]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
merge with 1.8i
authorJim Meyering <jim@meyering.net>
Tue, 26 Oct 1993 01:19:12 +0000 (01:19 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 26 Oct 1993 01:19:12 +0000 (01:19 +0000)
old/textutils/ChangeLog
src/sort.c

index c8f2794eeee878dce03f6864985845e39bc4fe5a..9c752f542852b213d4e0f892d04706be0c7de4d8 100644 (file)
@@ -1,5 +1,18 @@
+Mon Oct 25 20:16:33 1993  Jim Meyering  (meyering@comco.com)
+
+       * sort.c: Accept but ignore -y0 for compatibility with Solaris 2.
+       From Chuck Hedrick (hedrick@klinzhai.rutgers.edu).
+
+       * sort.c (main): Handle --help and --version options.
+       * Makefile.in (sort.o): Depend on long-options.h.
+
 Sun Oct 24 00:31:02 1993  Jim Meyering  (meyering@comco.com)
 
+       * csplit.c, cut.c, expand.c, fold.c, head.c, nl.c, od.c, paste.c,
+       split.c, tac.c, tail.c, unexpand.c, uniq.c: Use the preferred
+       `--longopt=arg' syntax in --help message rather than `--longopt arg'.
+       From Francois Pinard.
+
        * tail.c: Don't include <signal.h>.  It hasn't been necessary
        since the Dec 12, 1992 change.
 
index ce3d271c17040c2fb15d72787a5238760993076a..74d4b466ffc5892c87ed477f06077262f0510b9f 100644 (file)
@@ -37,6 +37,8 @@
 #include <signal.h>
 #include <stdio.h>
 #include "system.h"
+#include "long-options.h"
+
 #ifdef _POSIX_VERSION
 #include <limits.h>
 #else
@@ -1458,6 +1460,9 @@ main (argc, argv)
 #endif                         /* _POSIX_VERSION */
 
   program_name = argv[0];
+
+  parse_long_options (argc, argv, usage);
+
   have_read_stdin = 0;
   inittables ();
 
@@ -1673,6 +1678,10 @@ main (argc, argv)
                  case 'u':
                    unique = 1;
                    break;
+                 case 'y':
+                   /* Accept and ignore e.g. -y0 for compatibility with
+                      Solaris 2.  */
+                   goto outer;
                  default:
                    fprintf (stderr, "%s: unrecognized option `-%c'\n",
                             argv[0], *s);