summaryrefslogtreecommitdiff
path: root/src/cut.c
AgeCommit message (Collapse)Author
1999-09-02Remove xstrdup declaration.Jim Meyering
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-07(getstr): Change type of `delim' parameter from char to int.Jim Meyering
(cut_fields): Cast to `unsigned char' before comparing. (main): Cast to `unsigned char' before assigning.
1999-03-07(FATAL_ERROR): s/s/MessageJim 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-01-14Don't prototype usage as static.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-08-30(longopts): Don't assume ASCII.Jim Meyering
1998-07-26(cut_fields): Honor new --output-delimiter option.Jim Meyering
(main): Fix handling of --delimiter='' (-d ''). Until now, it has never worked as advertised. I guess no one tried it.
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-06-28add a FIXME for output delimiterJim Meyering
1998-04-26Do not define _GNU_SOURCE and/or NDEBUGJim Meyering
1998-04-12Use STREQ rather than strcmpJim Meyering
1997-10-25(ADD_RANGE_PAIR): Cast first arg of xrealloc to char*.Jim Meyering
(getstr): Cast xmalloc return value to char*. (xmalloc): Remove decl. (xrealloc): Remove decl.
1997-10-07update bug-reporting addressJim Meyering
1997-06-14(cut_fields): Detect when the input is empty and handleJim Meyering
that special case. Before `cut -f1 </dev/null' would improperly output a single newline. Reported by Phil Richards.
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-04(main): update --version output againJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-03-24Call error with EXIT_FAILURE (rather than `1') as first actual parameter.Jim Meyering
1996-03-24Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.Jim Meyering
This doesn't change `error (1' calls.
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-09(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-10-03(set_fields): Use memset (not open coded loop) to initialize array.Jim Meyering
1995-10-03Convert a lot of `int' types to `unsigned int' to avoid warnings fromJim Meyering
`gcc -Wall' about comparing signed and unsigned types.
1995-09-24Protoize.Jim Meyering
1995-09-23(print_kth): Change order of args in compare, and reverse sense of comparisonJim Meyering
(Hence, no semantic change).
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-05-13(usage): Include one- or two-line synopsis in --help output.Jim Meyering
From Karl Berry.
1995-03-25(set_fields): Declare index unsigned.Jim Meyering
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
1994-11-16Declare DELIM to be `int' rather than unsigned char.Jim Meyering
1994-11-02(cut_bytes): Print at least a newline for every line of input.Jim Meyering
(cut_fields): Print a newline even for lines whose only selected field is empty. But print nothing when using -s without -f1. And print nothing for empty input. Reported by Richard_Sharman@software.mitel.com.
1994-10-19merge with 1.9.1hJim Meyering
1994-04-13.Jim Meyering
1993-12-29.Jim Meyering
1993-12-23merge with 1.9.1bJim Meyering
1993-12-22.Jim Meyering
1993-12-19(set_fields): Convert ranges like 3-5,6- into 3-.Jim Meyering
Before, this was off-by-two and converted 3-5,4-, but not 3-5,5-