Age | Commit message (Collapse) | Author |
|
[posix_pedantic]: Don't consider TABSIZE environment variable.
|
|
Detect and ignore invalid value for COLUMNS environment variable.
In error about invalid TABSIZE, don't reference optarg!
|
|
|
|
|
|
Enclose message strings in _().
From Karl Berry.
|
|
|
|
|
|
integer overflow with large files.
|
|
place of `argc - optind'. Use `file' instead of `argv + optind'.
|
|
|
|
|
|
to invalid (and reverse sense) to avoid conflict with the
macro definition in /usr/include/locale.h on SunOS 4.1.3.
|
|
Remove long-deprecated and nowhere-documented --path, a synonym
for --parents. It was confusing to get an error about `--p'
being ambiguous.
|
|
|
|
|
|
(UT_TIME_MEMBER): New macro.
(print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
(print_entry): Likewise.
|
|
|
|
Include memcasecmp.h.
(different): Compare with memcasecmp if ignoring case.
(main): Handle 'i'.
|
|
Include memcasecmp.h instead.
|
|
Reported by Karl Eichwalder.
|
|
(print_factors): Give a better diagnostic.
(main): Suggest --help upon failure.
Reported by Karl Eichwalder <ke@ke.Central.DE>.
|
|
|
|
|
|
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.
|