summaryrefslogtreecommitdiff
path: root/src/uniq.c
AgeCommit message (Collapse)Author
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2002-02-16Include posixver.h.Jim Meyering
(usage): Document only the intersection of the old and new behaviors, to encourage portability. (shortopts): Remove; no longer needed. (main): Parse options using POSIX 1003.1-2001 rules if conforming to that standard. Do not warn of obsolete options.
2002-02-02(main): Prepend `warning: ' to the diagnostic, so it'sJim Meyering
consistent with all of the other `... is obsolete...' diagnostics.
2002-02-02Add more support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of obsolete "-N" option syntax in expand, head, fold, split, tail, unexpand, uniq, and which prohibits options with optional arguments in od and pr. (usage): Document this. (shortopts): New constant. (main): Check for obsolete options.
2002-01-18(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.Jim Meyering
2002-01-16add 2002 to Copyright lineJim Meyering
2002-01-16Add support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of obsolete "+" option syntax in sort, tail, and uniq. (usage, main): Implement this.
2001-12-17(usage): Remove strap `)' in --help output.Jim Meyering
2001-12-01Reflect renaming to, and new usage of these macros:Jim Meyering
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Factor out some common strings to make translation easier.Jim Meyering
Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says: Mandatory arguments to long options are mandatory for short options too.
2001-11-11(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-11-04(usage): Say thatJim Meyering
``Mandatory arguments to long options are mandatory for short options too.\n\''
2001-10-04Rename --all-repeated argument `precede' to `prepend'.Jim Meyering
* src/uniq.c (enum delimit_method): s/DM_PRECEDE/DM_PREPEND/ and change all uses. (delimit_method_string): s/precede/prepend/ Patch by Padraig Brady. * src/uniq.c (usage): Correct typo in description of --all-repeated. Patch by Padraig Brady.
2001-08-25(main): Fix a typo in the previous patch: missingJim Meyering
a bounds check for examples like `uniq a b c'.
2001-08-25(main): Fix some more incompatibilities with POSIX.2,Jim Meyering
(e.g. `uniq +3 --' did not work) by invoking getopt_long with leading '-', resembling what was done to 'sort' on 2001-03-20. Recognize an +N option only if it is an integer in range, and (if POSIXLY_CORRECT) only if a file name argument has not been seen; otherwise silently treat it as a file name. If the user specifies too many operands, output the first one in the error message, as a diagnostic aid.
2001-08-25(main): Don't report an error when given the valid options `+3 -d'.Jim Meyering
2001-08-25(different): Don't assume that lengths can fitJim Meyering
into size_t. Tune code for the common case where the line lengths differ: we avoid comparing them entirely in that case.
2001-08-25Remove arbitrary restrictions on sizes, fixing a bug reportedJim Meyering
by Geoff Whale. (skip_fields, skip_chars, check_chars): Now size_t, not int. (size_opt): New function. Do not arbitrarily reject size zero. Change the wording of the error message slightly, for convenience. (find_field): Use size_t, not int, to compute sizes. (different, main): check_chars==0 is no longer a special case, as it defaults to SIZE_MAX. (main): Check for overflow with args like -234234234234234. Use 'size_opt' to convert optional arguments to sizes.
2001-08-25(find_field): Don't count trailing newline to beJim Meyering
part of the field. This disagrees with POSIX.2, but it's gotta be a bug in the standard. An interpretations request has been submitted to PASC.
2001-08-13(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2001-05-20Rename new option values: s/all/precede/ and s/minimum/separate/.Jim Meyering
2001-05-19(delimit_method_map): Remove trailing comma.Jim Meyering
2001-05-19Support new modes for uniq's --all-repeated option.Jim Meyering
The default behavior is unchanged. Include argmatch.h. (usage): Update. (check_file): Implement it. (main): Handle new, optional arguments. Patch by Padraig Brady.
2001-03-18(usage): Warn that the +N form will be withdrawn.Jim Meyering
2000-06-20(main): Fix off-by-argc test, so +N-style options are recognized once again.Jim Meyering
Reported by Geoff Keunning. Fix typo in diagnostic: s/compare/skip/.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
1999-08-22tweak commentJim Meyering
1999-08-22(check_file): Explain why we have separate `if' and `else'Jim Meyering
blocks when the code in the else block could handle both cases.
1999-08-22(check_file): Generate each line of output earlier,Jim Meyering
when possible. It is possible when using none of these options: --count, -repeated, --all-repeated, --unique. Based on a patch from Ian Turner. (check_file): Move declarations of local variables into the scopes where used. (min): Remove macro definition. (different): Use MIN, not min. (SWAP_LINES): New macro. (check_file): Use it here.
1999-08-22(SWAP_LINES): New macro.Jim Meyering
(check_file): Use it here. [really remove min macro, this time]
1999-08-22(check_file): Move declarations of local variablesJim Meyering
into the scopes where they're used. (min): Remove macro definition. (different): Use MIN, not min.
1999-07-04(find_field, different): Use size_t, not int, for lengths.Jim Meyering
(writeline): Lines now contain trailing newline. (check_file): Use size_t, not int, for lengths.
1999-04-04Standardize --help and --version processing.Jim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1999-01-09declare `match'Jim Meyering
1999-01-09New option: --all-repeated (-D).Jim Meyering
(output_all_repeated) [output_mode]: New enum value. (usage): Describe it. (writeline): Test for new mode. (check_file): Likewise. Based on patches from Jochen Hein and Florin Iucha. (main): Diagnose `too many arguments'.
1998-09-19update bug-reporting addressJim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-27Remove definition of _GNU_SOURCEJim Meyering
1998-04-12Use STREQ rather than strcmpJim Meyering
1998-01-10CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAXJim Meyering
Remove definitions of those symbols. * src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h since it now includes limit.h which defines RE_DUP_MAX. * src/nl.c: Likewise. * src/tac.c: Likewise.
1997-10-07update bug-reporting addressJim Meyering