From c906160906140d5f9b27617a7571b7d3fd7ee7ce Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 26 Apr 2005 16:43:45 +0000 Subject: (main): Don't complain about -NUM. --- src/uniq.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/uniq.c') 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, -- cgit v1.2.3-54-g00ecf