platform/upstream/coreutils.git
28 years agoInclude xstrtol.h.
Jim Meyering [Sun, 21 Apr 1996 05:18:19 +0000 (05:18 +0000)]
Include xstrtol.h.
[!BITSPERBYTE]: Define.
[!UID_T_MAX]: Define.
[!GID_T_MAX]: Define.
(get_ids): Use xstrtol, not atoi.
(is_number): Remove now-unused function.

28 years agoRemove obsolete FIXME.
Jim Meyering [Sun, 21 Apr 1996 05:15:39 +0000 (05:15 +0000)]
Remove obsolete FIXME.

28 years ago(decode_switches): Replace two more atoi uses with xstrtol.
Jim Meyering [Sun, 21 Apr 1996 04:45:12 +0000 (04:45 +0000)]
(decode_switches): Replace two more atoi uses with xstrtol.

28 years ago(decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic.
Jim Meyering [Sun, 21 Apr 1996 04:11:43 +0000 (04:11 +0000)]
(decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic.

28 years ago(decode_switches): Clean up last change.
Jim Meyering [Sun, 21 Apr 1996 04:07:41 +0000 (04:07 +0000)]
(decode_switches): Clean up last change.
[posix_pedantic]: Don't consider TABSIZE environment variable.

28 years ago(decode_switches): Use xstrtol, not atoi.
Jim Meyering [Sun, 21 Apr 1996 03:52:30 +0000 (03:52 +0000)]
(decode_switches): Use xstrtol, not atoi.
Detect and ignore invalid value for COLUMNS environment variable.
In error about invalid TABSIZE, don't reference optarg!

28 years ago.
Jim Meyering [Sun, 21 Apr 1996 03:27:32 +0000 (03:27 +0000)]
.

28 years ago(usage): Improve help message. From Karl Berry.
Jim Meyering [Sun, 21 Apr 1996 03:26:46 +0000 (03:26 +0000)]
(usage): Improve help message.  From Karl Berry.

28 years ago(usage): Improve help message. From Karl Berry.
Jim Meyering [Sun, 21 Apr 1996 03:25:53 +0000 (03:25 +0000)]
(usage): Improve help message.  From Karl Berry.

28 years ago(usage): Improve help message.
Jim Meyering [Sun, 21 Apr 1996 03:24:47 +0000 (03:24 +0000)]
(usage): Improve help message.
Enclose message strings in _().
From Karl Berry.

28 years ago. TEXTUTILS-1_14b
Jim Meyering [Sat, 20 Apr 1996 04:50:26 +0000 (04:50 +0000)]
.

28 years ago.
Jim Meyering [Sat, 20 Apr 1996 04:46:11 +0000 (04:46 +0000)]
.

28 years ago.
Jim Meyering [Sat, 20 Apr 1996 03:51:17 +0000 (03:51 +0000)]
.

28 years agoNo longer call sync by default.
Jim Meyering [Sat, 20 Apr 1996 03:51:10 +0000 (03:51 +0000)]
No longer call sync by default.

28 years ago(main): Make separation of case for n_files == 0 more clear.
Jim Meyering [Sat, 20 Apr 1996 03:43:10 +0000 (03:43 +0000)]
(main): Make separation of case for n_files == 0 more clear.

28 years ago.
Jim Meyering [Fri, 19 Apr 1996 05:07:58 +0000 (05:07 +0000)]
.

28 years ago(copy_reg): Rearrange arithmetic in conditional to avoid
Jim Meyering [Fri, 19 Apr 1996 05:07:52 +0000 (05:07 +0000)]
(copy_reg): Rearrange arithmetic in conditional to avoid
integer overflow with large files.

28 years ago(basename): Rewrite so it doesn't rely on strrchr,
Jim Meyering [Fri, 19 Apr 1996 04:41:27 +0000 (04:41 +0000)]
(basename): Rewrite so it doesn't rely on strrchr,
and hence doesn't need to include string.h -- on some alpha-based
OSF systems, there's a conflicting prototype for basename in string.h.
Reported by Kaveh Ghazi.

28 years ago.
Jim Meyering [Fri, 19 Apr 1996 04:34:53 +0000 (04:34 +0000)]
.

28 years ago.
Jim Meyering [Fri, 19 Apr 1996 03:17:31 +0000 (03:17 +0000)]
.

28 years ago(main): Make code clearer: use new variable `n_files' in
Jim Meyering [Fri, 19 Apr 1996 03:17:23 +0000 (03:17 +0000)]
(main): Make code clearer:  use new variable `n_files' in
place of `argc - optind'.  Use `file' instead of `argv + optind'.

28 years agoIndent cpp-directives.
Jim Meyering [Thu, 18 Apr 1996 23:02:17 +0000 (23:02 +0000)]
Indent cpp-directives.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 05:03:22 +0000 (05:03 +0000)]
.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 05:02:34 +0000 (05:02 +0000)]
.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 05:01:56 +0000 (05:01 +0000)]
.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 05:01:10 +0000 (05:01 +0000)]
.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 05:00:17 +0000 (05:00 +0000)]
.

28 years ago.
Jim Meyering [Wed, 17 Apr 1996 03:41:47 +0000 (03:41 +0000)]
.

28 years agoTest cpp-defined __sun as well as sun, because
Jim Meyering [Sun, 14 Apr 1996 02:12:46 +0000 (02:12 +0000)]
Test cpp-defined __sun as well as sun, because
in strict ANSI mode, only __sun is defined.  From Kaveh Ghazi.

28 years ago.
Jim Meyering [Sun, 14 Apr 1996 00:34:30 +0000 (00:34 +0000)]
.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 18:27:27 +0000 (18:27 +0000)]
.

28 years ago(usage): Add missing `\n\' at the end of newly added lines for %e and %z.
Jim Meyering [Sat, 13 Apr 1996 18:27:24 +0000 (18:27 +0000)]
(usage): Add missing `\n\' at the end of newly added lines for %e and %z.

28 years ago(print_uptime): Invoke getloadavg only if we have it.
Jim Meyering [Sat, 13 Apr 1996 18:26:39 +0000 (18:26 +0000)]
(print_uptime): Invoke getloadavg only if we have it.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 18:13:16 +0000 (18:13 +0000)]
.

28 years agoUnprotoize.
Jim Meyering [Sat, 13 Apr 1996 18:13:09 +0000 (18:13 +0000)]
Unprotoize.
[ISASCII]: Define.
[ISUPPER]: Define.

28 years ago(decode_field_spec): Rename local variable `valid'
Jim Meyering [Sat, 13 Apr 1996 18:11:43 +0000 (18:11 +0000)]
(decode_field_spec): Rename local variable `valid'
to invalid (and reverse sense) to avoid conflict with the
macro definition in /usr/include/locale.h on SunOS 4.1.3.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 04:42:15 +0000 (04:42 +0000)]
.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 03:59:26 +0000 (03:59 +0000)]
.

28 years ago(main): Add new option: --verbose.
Jim Meyering [Sat, 13 Apr 1996 03:59:20 +0000 (03:59 +0000)]
(main): Add new option: --verbose.
Remove long-deprecated and nowhere-documented --path, a synonym
for --parents.  It was confusing to get an error about `--p'
being ambiguous.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 03:58:33 +0000 (03:58 +0000)]
.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 03:18:47 +0000 (03:18 +0000)]
.

28 years agoMark translatable strings in new code.
Jim Meyering [Sat, 13 Apr 1996 03:17:44 +0000 (03:17 +0000)]
Mark translatable strings in new code.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 03:07:54 +0000 (03:07 +0000)]
.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 03:05:56 +0000 (03:05 +0000)]
.

28 years ago(usage): Document %e and %z. Reported by Karl Berry.
Jim Meyering [Sat, 13 Apr 1996 03:04:21 +0000 (03:04 +0000)]
(usage): Document %e and %z.  Reported by Karl Berry.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 02:54:59 +0000 (02:54 +0000)]
.

28 years ago.
Jim Meyering [Sat, 13 Apr 1996 02:54:13 +0000 (02:54 +0000)]
.

28 years ago.
Jim Meyering [Fri, 12 Apr 1996 04:27:03 +0000 (04:27 +0000)]
.

28 years agoReindent.
Jim Meyering [Thu, 11 Apr 1996 02:30:09 +0000 (02:30 +0000)]
Reindent.
(UT_TIME_MEMBER): New macro.
(print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
(print_entry): Likewise.

28 years ago(print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
Jim Meyering [Wed, 10 Apr 1996 04:57:09 +0000 (04:57 +0000)]
(print_uptime) [UPTIME]: New function.  From Kaveh Ghazi.

28 years ago.
Jim Meyering [Wed, 10 Apr 1996 04:03:47 +0000 (04:03 +0000)]
.

28 years ago.
Jim Meyering [Wed, 10 Apr 1996 03:52:01 +0000 (03:52 +0000)]
.

28 years ago.
Jim Meyering [Wed, 10 Apr 1996 03:51:41 +0000 (03:51 +0000)]
.

28 years agoDocument uniq's new --ignore-case option.
Jim Meyering [Wed, 10 Apr 1996 03:51:07 +0000 (03:51 +0000)]
Document uniq's new --ignore-case option.

28 years agoAdd new option --ignore-case (-i).
Jim Meyering [Wed, 10 Apr 1996 03:50:31 +0000 (03:50 +0000)]
Add new option --ignore-case (-i).
Include memcasecmp.h.
(different): Compare with memcasecmp if ignoring case.
(main): Handle 'i'.

28 years ago(memcasecmp): Remove static definition of function.
Jim Meyering [Wed, 10 Apr 1996 03:47:28 +0000 (03:47 +0000)]
(memcasecmp): Remove static definition of function.
Include memcasecmp.h instead.

28 years ago.
Jim Meyering [Wed, 10 Apr 1996 03:29:05 +0000 (03:29 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Apr 1996 04:57:19 +0000 (04:57 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Apr 1996 04:56:36 +0000 (04:56 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Apr 1996 04:54:35 +0000 (04:54 +0000)]
.

28 years ago.
Jim Meyering [Mon, 8 Apr 1996 04:54:00 +0000 (04:54 +0000)]
.

28 years ago(mon_week_ISO): New function to implement new %V format.
Jim Meyering [Mon, 8 Apr 1996 04:53:54 +0000 (04:53 +0000)]
(mon_week_ISO): New function to implement new %V format.
(sun_week): Make TM parameter `const'.
(mon_week): Likewise.
(mon_week): Rewrite to correctly implement %W format..

28 years ago(print_numbers): Fix off-by-one error in backwards-counting loop.
Jim Meyering [Mon, 8 Apr 1996 04:37:45 +0000 (04:37 +0000)]
(print_numbers): Fix off-by-one error in backwards-counting loop.
Reported by Karl Eichwalder.

28 years ago.
Jim Meyering [Sun, 7 Apr 1996 17:56:40 +0000 (17:56 +0000)]
.

28 years agoupdage from gettext-0.10.12
Jim Meyering [Sun, 7 Apr 1996 17:53:50 +0000 (17:53 +0000)]
updage from gettext-0.10.12

28 years ago(usage): Give minimal description of the program.
Jim Meyering [Sun, 7 Apr 1996 17:46:03 +0000 (17:46 +0000)]
(usage): Give minimal description of the program.
(print_factors): Give a better diagnostic.
(main): Suggest --help upon failure.
Reported by Karl Eichwalder <ke@ke.Central.DE>.

28 years ago.
Jim Meyering [Sun, 7 Apr 1996 17:27:27 +0000 (17:27 +0000)]
.

28 years agoFiddle with messages.
Jim Meyering [Sun, 7 Apr 1996 17:27:11 +0000 (17:27 +0000)]
Fiddle with messages.

28 years ago(print_numbers): Give more precise diagnostic when increment
Jim Meyering [Sun, 7 Apr 1996 17:10:21 +0000 (17:10 +0000)]
(print_numbers): Give more precise diagnostic when increment
is inconsistent with FROM and TO.
(usage): Clean up help message.

28 years ago(main): Rearrange loops to get it right.
Jim Meyering [Sun, 7 Apr 1996 16:59:12 +0000 (16:59 +0000)]
(main): Rearrange loops to get it right.
Reported by Karl Eichwalder <ke@ke.Central.DE>.

28 years ago(sun_week): Make %U work properly.
Jim Meyering [Fri, 5 Apr 1996 23:33:09 +0000 (23:33 +0000)]
(sun_week): Make %U work properly.
Before, `date -d '1 Jan 1995' +%U' output `00'.  Now it prints `01'.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 16:08:32 +0000 (16:08 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 16:04:56 +0000 (16:04 +0000)]
.

28 years agoRemove diagnostic.
Jim Meyering [Fri, 5 Apr 1996 16:04:15 +0000 (16:04 +0000)]
Remove diagnostic.

28 years ago(main): Use `if' stmt, not while loop, around getopt invocation.
Jim Meyering [Fri, 5 Apr 1996 13:32:39 +0000 (13:32 +0000)]
(main): Use `if' stmt, not while loop, around getopt invocation.
Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
follows a long option) gets an error.

28 years agoPatch from Frank Korz.
Jim Meyering [Fri, 5 Apr 1996 13:14:59 +0000 (13:14 +0000)]
Patch from Frank Korz.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 04:37:05 +0000 (04:37 +0000)]
.

28 years agoRemove fixed FIXME.
Jim Meyering [Fri, 5 Apr 1996 04:00:05 +0000 (04:00 +0000)]
Remove fixed FIXME.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 03:58:37 +0000 (03:58 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 03:55:07 +0000 (03:55 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 03:28:34 +0000 (03:28 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 03:27:21 +0000 (03:27 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 03:11:47 +0000 (03:11 +0000)]
.

28 years ago.
Jim Meyering [Fri, 5 Apr 1996 01:22:42 +0000 (01:22 +0000)]
.

28 years ago.
Jim Meyering [Thu, 4 Apr 1996 23:16:13 +0000 (23:16 +0000)]
.

28 years ago.
Jim Meyering [Thu, 4 Apr 1996 23:10:35 +0000 (23:10 +0000)]
.

28 years agoThe following commands all failed unnecessarily.
Jim Meyering [Thu, 4 Apr 1996 23:08:30 +0000 (23:08 +0000)]
The following commands all failed unnecessarily.
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.

28 years ago.
Jim Meyering [Thu, 4 Apr 1996 20:57:13 +0000 (20:57 +0000)]
.

28 years agoAdd tests from Ross Ridge.
Jim Meyering [Thu, 4 Apr 1996 20:22:10 +0000 (20:22 +0000)]
Add tests from Ross Ridge.

28 years ago.
Jim Meyering [Thu, 4 Apr 1996 12:58:29 +0000 (12:58 +0000)]
.

28 years ago.
Jim Meyering [Thu, 4 Apr 1996 12:45:16 +0000 (12:45 +0000)]
.

28 years ago.
Jim Meyering [Wed, 3 Apr 1996 13:19:59 +0000 (13:19 +0000)]
.

28 years agoInclude stdio.h before grp.h.
Jim Meyering [Wed, 3 Apr 1996 13:19:16 +0000 (13:19 +0000)]
Include stdio.h before grp.h.
Because <grp.h> on alpha OSF1 V2.0 uses "FILE *".  From Kaveh Ghazi.

28 years ago.
Jim Meyering [Wed, 3 Apr 1996 12:56:09 +0000 (12:56 +0000)]
.

28 years agoupdate from gettext-0.10.11
Jim Meyering [Wed, 3 Apr 1996 12:52:22 +0000 (12:52 +0000)]
update from gettext-0.10.11

28 years ago.
Jim Meyering [Wed, 3 Apr 1996 12:33:23 +0000 (12:33 +0000)]
.

28 years ago.
Jim Meyering [Wed, 3 Apr 1996 12:28:18 +0000 (12:28 +0000)]
.

28 years ago(copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *
Jim Meyering [Wed, 3 Apr 1996 12:20:24 +0000 (12:20 +0000)]
(copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *
DEV_BSIZE.'  From H.J. Lu (hjl@lucon.org).

28 years agoInclude assert.h (disabled).
Jim Meyering [Wed, 3 Apr 1996 05:42:14 +0000 (05:42 +0000)]
Include assert.h (disabled).
(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.

28 years ago.
Jim Meyering [Tue, 2 Apr 1996 15:57:23 +0000 (15:57 +0000)]
.