From b10701b78e2b3af1a6962a3930cdcc591b4fbd26 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 15 Jun 2004 18:00:58 +0000 Subject: [PATCH] (parse_obsolescent_option): Support multiple file operands even if POSIXLY_CORRECT, since POSIX does not require a diagnostic. --- src/tail.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/tail.c b/src/tail.c index bfb059cb34..b6bd04ae16 100644 --- a/src/tail.c +++ b/src/tail.c @@ -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'"), -- 2.47.3