summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-25 14:07:46 +0000
committerJim Meyering <jim@meyering.net>1998-01-25 14:07:46 +0000
commite27d21668cd1fec7625d78ceb58ed3395e11b99a (patch)
tree384f53f29bcb22229d6a9c46532897b5e325e1bf /src/tail.c
parent902598d05dfd0441ad5376bea995658df57f7ea1 (diff)
downloadcoreutils-e27d21668cd1fec7625d78ceb58ed3395e11b99a.tar.xz
(parse_obsolescent_option): -l is an obsolescent option.
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index 8783bfdd1..a9d532d83 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 == '+')