]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(parse_obsolescent_option): Support multiple file operands
authorJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 18:00:58 +0000 (18:00 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 18:00:58 +0000 (18:00 +0000)
even if POSIXLY_CORRECT, since POSIX does not require a diagnostic.

src/tail.c

index bfb059cb34b732f0f8f30015ba7cb3c8b64c12d4..b6bd04ae162b93979e854831c3720a5889f8dd9a 100644 (file)
@@ -1462,28 +1462,6 @@ parse_obsolescent_option (int argc, const char *const *argv,
 
   if (!*fail)
     {
-      if (argc > 3)
-       {
-         /* When POSIXLY_CORRECT is set, enforce the `at most one
-            file argument' requirement.  */
-         if (getenv ("POSIXLY_CORRECT"))
-           {
-             error (0, 0, _("\
-too many arguments;  When using tail's obsolescent option syntax (%s)\n\
-there may be no more than one file argument.  Use the equivalent -n or -c\n\
-option instead."), argv[1]);
-             *fail = 1;
-             return 1;
-           }
-
-#if DISABLED  /* FIXME: enable or remove this warning.  */
-         error (0, 0, _("\
-Warning: it is not portable to use two or more file arguments with\n\
-tail's obsolescent option syntax (%s).  Use the equivalent -n or -c\n\
-option instead."), argv[1]);
-#endif
-       }
-
       if (! obsolete_usage)
        {
          error (0, 0, _("`%s' option is obsolete; use `%s-%c %.*s'"),