diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-25 14:07:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-25 14:07:46 +0000 |
commit | e27d21668cd1fec7625d78ceb58ed3395e11b99a (patch) | |
tree | 384f53f29bcb22229d6a9c46532897b5e325e1bf /src | |
parent | 902598d05dfd0441ad5376bea995658df57f7ea1 (diff) | |
download | coreutils-e27d21668cd1fec7625d78ceb58ed3395e11b99a.tar.xz |
(parse_obsolescent_option): -l is an obsolescent option.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 4 |
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 == '+') |