]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(parse_obsolescent_option): -l is an obsolescent option.
authorJim Meyering <jim@meyering.net>
Sun, 25 Jan 1998 14:07:46 +0000 (14:07 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 25 Jan 1998 14:07:46 +0000 (14:07 +0000)
src/tail.c

index 8783bfdd1db7711fd30b32b64dc95ae05aac0329..a9d532d834f47bd35f313ac49e82ea92abb76890 100644 (file)
@@ -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 == '+')