summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-04-26 16:43:45 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-04-26 16:43:45 +0000
commitc906160906140d5f9b27617a7571b7d3fd7ee7ce (patch)
tree31ef9b0f79b27e192e66cbace03d70c682c1061c /src
parentc360992faf6abd14a1bee6b85a11220bdfc7ba3e (diff)
downloadcoreutils-c906160906140d5f9b27617a7571b7d3fd7ee7ce.tar.xz
(main): Don't complain about -NUM.
Diffstat (limited to 'src')
-rw-r--r--src/uniq.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/uniq.c b/src/uniq.c
index a02647091..8d17dfd15 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -510,7 +510,7 @@ main (int argc, char **argv)
delimit_method_map);
break;
- case 'f': /* Like '-#'. */
+ case 'f':
skip_field_option_type = SFO_NEW;
skip_fields = size_opt (optarg,
N_("invalid number of fields to skip"));
@@ -520,7 +520,7 @@ main (int argc, char **argv)
ignore_case = true;
break;
- case 's': /* Like '+#'. */
+ case 's':
skip_chars = size_opt (optarg,
N_("invalid number of bytes to skip"));
break;
@@ -543,13 +543,6 @@ main (int argc, char **argv)
}
}
- if (skip_field_option_type == SFO_OBSOLETE && 200112 <= posix2_version ())
- {
- error (0, 0, _("`-%lu' option is obsolete; use `-f %lu'"),
- (unsigned long int) skip_fields, (unsigned long int) skip_fields);
- usage (EXIT_FAILURE);
- }
-
if (countmode == count_occurrences && output_later_repeated)
{
error (0, 0,