From: Jim Meyering Date: Sun, 25 Jan 1998 14:07:46 +0000 (+0000) Subject: (parse_obsolescent_option): -l is an obsolescent option. X-Git-Tag: FILEUTILS-3_16l~4 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e27d21668cd1fec7625d78ceb58ed3395e11b99a;p=thirdparty%2Fcoreutils.git (parse_obsolescent_option): -l is an obsolescent option. --- diff --git a/src/tail.c b/src/tail.c index 8783bfdd1d..a9d532d834 100644 --- a/src/tail.c +++ b/src/tail.c @@ -876,7 +876,9 @@ parse_obsolescent_option (int argc, const char *const *argv, if (argc < 2) return 0; - if ( ! (p[0] == '+' || (p[0] == '-' && ISDIGIT (p[1]))) ) + /* If P starts with `+', `-N' (where N is a digit), or `-l', + then it is obsolescent. Return zero otherwise. */ + if ( ! (p[0] == '+' || (p[0] == '-' && (p[1] == 'l' || ISDIGIT (p[1])))) ) return 0; if (*p == '+')