Age | Commit message (Collapse) | Author |
|
is inconsistent with FROM and TO.
(usage): Clean up help message.
|
|
Reported by Karl Eichwalder <ke@ke.Central.DE>.
|
|
|
|
Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
follows a long option) gets an error.
|
|
|
|
|
|
|
|
tr -cs '[:upper:]' '[X*]'
tr -dcs '[:lower:]' n-rs-z
tr -ds '[:xdigit:]' [:alnum:]'
tr -dcs '[:alnum:]' [:digit:]'
tr -dc '[:upper:]'
Reported by Ross Ridge (ross@worf.mks.com).
(validate): Add missing conjunct (translating) in test for
`translating and complementing character classes' error. Before,
valid uses of tr could fail. E.g. `tr -dcs '[:cntrl:]' '[:alnum:]''.
(homogeneous_spec_list): New function.
(validate): Use it to relax the old (overly restrictive) restriction
that prohibited use of complemented character classes when translating.
Now, that is allowed as long as the translation maps many to one.
(get_spec_stats): Rename and redefine global has_char_class from
has_upper_or_lower.
|
|
DEV_BSIZE.' From H.J. Lu (hjl@lucon.org).
|
|
(path_concat): New function.
(do_copy): Use path_concat instead of open-coding part of its
functionality in two places. This has the additional benefit
of avoiding forming destination names like `D//file' when the
destination directory D includes a trailing slash -- as would
happen when cp is used like this:
mkdir D; touch file D/file; cp -i file D/
Reported by François Pinard.
|
|
|
|
ASCII-centric tests against literals.
(length_of_file_name_and_frills): Likewise.
|
|
|
|
|
|
Say `too few arguments' if that's why we display usage.
Protoize.
Include error.h.
Update copyright.
|
|
|
|
to be POSIX compliant. From Stephen Gildea <gildea@x.org>.
|
|
|
|
|
|
|
|
(scan_double_arg): Use xstrtod rather than strtod directly.
|
|
Rename global FROM to START.
(print_numbers): Rewrite loops to avoid incrementing. Instead,
use `x = first + i * increment' paradigm. Otherwise, with inexact
increment, you could miss the last value.
|
|
|
|
Declare index I to be of type size_t to avoid warning from gcc -Wall.
|
|
|
|
This doesn't change `error (1' calls.
|
|
Be careful to exit with 1 only when -c is used and the
input is not properly sorted. In all other cases, use
SORT_FAILURE as required by POSIX.
(main): Change some `error (1, ...' to use SORT_FAILURE.
Upon successful termination, exit with EXIT_SUCCESS instead of `0'.
Replace all uses of `2' (as exit code) with SORT_FAILURE.
|
|
(process_line_count): Replace if-abort with a slightly relaxed
assertion. Before, `echo |csplit - 1 1' would abort.
Reported by Samuli.Karkkainen@hut.fi.
(parse_patterns): Disallow uses like `csplit FILE 0' with zero
line number, `csplit FILE 2 1' with decreasing line numbers, and
warn about uses like `csplit FILE 3 3' that have equal line numbers.
|
|
|
|
|
|
|
|
<seebs@taniemarie.solon.com>.
|
|
(main): Use PACKAGE_VERSION instead of version_string.
|
|
(main): Use PACKAGE_VERSION instead of version_string.
|
|
|
|
(main): Use PACKAGE_VERSION instead of version_string.
|
|
|
|
comparing with strlen(path).
|
|
Reported by François Pinard.
(remove_suffix): Move to precede use. Remove prototype.
Declare formal parameter SUFFIX to be const.
|
|
call setlocale, bindtextdomain, and textdomain.
|
|
|
|
bindtextdomain, and textdomain.
|
|
|
|
Remove SIZE parameter. It was always 1.
Update all callers.
Rename NELEM parameter to N_BYTES and change its type to size_t.
|
|
be of type size_t (rather than int) to avoid warnings from gcc -Wall.
|
|
|
|
bindtextdomain, and textdomain.
|
|
|
|
when the user specifies --print-type or -T. From Michael Rendell
<michael@cs.mun.ca>
|
|
|