summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-15 18:00:58 +0000
committerJim Meyering <jim@meyering.net>2004-06-15 18:00:58 +0000
commitb10701b78e2b3af1a6962a3930cdcc591b4fbd26 (patch)
treef38b71c416a1db96adabd6e666a3d0e2645479a5 /src
parent5afcf8697f2bbdaa4eb8abbebb1c0807427411d9 (diff)
downloadcoreutils-b10701b78e2b3af1a6962a3930cdcc591b4fbd26.tar.xz
(parse_obsolescent_option): Support multiple file operands
even if POSIXLY_CORRECT, since POSIX does not require a diagnostic.
Diffstat (limited to 'src')
-rw-r--r--src/tail.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/tail.c b/src/tail.c
index bfb059cb3..b6bd04ae1 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'"),