From: Jim Meyering Date: Tue, 15 Jun 2004 18:00:58 +0000 (+0000) Subject: (parse_obsolescent_option): Support multiple file operands X-Git-Tag: v5.3.0~1334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b10701b78e2b3af1a6962a3930cdcc591b4fbd26;p=thirdparty%2Fcoreutils.git (parse_obsolescent_option): Support multiple file operands even if POSIXLY_CORRECT, since POSIX does not require a diagnostic. --- 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'"),