platform/upstream/coreutils.git
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)]
.

28 years ago.
Jim Meyering [Tue, 2 Apr 1996 14:28:26 +0000 (14:28 +0000)]
.

28 years ago(unsetenv): unprotoize.
Jim Meyering [Mon, 1 Apr 1996 04:29:28 +0000 (04:29 +0000)]
(unsetenv): unprotoize.

28 years ago.
Jim Meyering [Mon, 1 Apr 1996 00:16:11 +0000 (00:16 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Mar 1996 23:30:43 +0000 (23:30 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Mar 1996 22:31:30 +0000 (22:31 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Mar 1996 17:20:34 +0000 (17:20 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Mar 1996 17:20:02 +0000 (17:20 +0000)]
.

28 years ago.
Jim Meyering [Sun, 31 Mar 1996 17:19:06 +0000 (17:19 +0000)]
.

28 years ago(quote_filename): Use ISGRAPH and ISPRINT in place of
Jim Meyering [Sun, 31 Mar 1996 17:18:28 +0000 (17:18 +0000)]
(quote_filename): Use ISGRAPH and ISPRINT in place of
ASCII-centric tests against literals.
(length_of_file_name_and_frills): Likewise.

28 years agoRip out color support.
Jim Meyering [Sun, 31 Mar 1996 14:22:12 +0000 (14:22 +0000)]
Rip out color support.

28 years agoupdate from FSF:/home/gd/gnu/lib
Jim Meyering [Sat, 30 Mar 1996 14:26:16 +0000 (14:26 +0000)]
update from FSF:/home/gd/gnu/lib

28 years agoUpdate from libc. SH-UTILS-1_12g
Jim Meyering [Sat, 30 Mar 1996 12:39:36 +0000 (12:39 +0000)]
Update from libc.

28 years agoUpgrade from gettext-0.10.10.
Jim Meyering [Sat, 30 Mar 1996 12:19:38 +0000 (12:19 +0000)]
Upgrade from gettext-0.10.10.

28 years ago.
Jim Meyering [Sat, 30 Mar 1996 04:18:13 +0000 (04:18 +0000)]
.

28 years ago. SH-UTILS-1_12f
Jim Meyering [Fri, 29 Mar 1996 16:14:36 +0000 (16:14 +0000)]
.

28 years ago. SH-UTILS-1_12e
Jim Meyering [Fri, 29 Mar 1996 05:47:21 +0000 (05:47 +0000)]
.

28 years ago.
Jim Meyering [Fri, 29 Mar 1996 05:45:25 +0000 (05:45 +0000)]
.

28 years ago.
Jim Meyering [Fri, 29 Mar 1996 05:01:14 +0000 (05:01 +0000)]
.

28 years ago.
Jim Meyering [Fri, 29 Mar 1996 05:00:05 +0000 (05:00 +0000)]
.

28 years ago.
Jim Meyering [Fri, 29 Mar 1996 04:54:45 +0000 (04:54 +0000)]
.

28 years ago.
Jim Meyering [Fri, 29 Mar 1996 04:53:57 +0000 (04:53 +0000)]
.

28 years ago.
Jim Meyering [Thu, 28 Mar 1996 06:19:37 +0000 (06:19 +0000)]
.

28 years ago.
Jim Meyering [Thu, 28 Mar 1996 06:18:24 +0000 (06:18 +0000)]
.

28 years agoMove usage to precede main.
Jim Meyering [Thu, 28 Mar 1996 06:17:34 +0000 (06:17 +0000)]
Move usage to precede main.
Say `too few arguments' if that's why we display usage.
Protoize.
Include error.h.
Update copyright.

28 years ago.
Jim Meyering [Thu, 28 Mar 1996 06:14:59 +0000 (06:14 +0000)]
.

28 years agofrom Roland
Jim Meyering [Thu, 28 Mar 1996 05:42:56 +0000 (05:42 +0000)]
from Roland

28 years ago.
Jim Meyering [Thu, 28 Mar 1996 05:35:48 +0000 (05:35 +0000)]
.

28 years ago(cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
Jim Meyering [Thu, 28 Mar 1996 05:35:31 +0000 (05:35 +0000)]
(cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
to be POSIX compliant.  From Stephen Gildea <gildea@x.org>.

28 years ago.
Jim Meyering [Tue, 26 Mar 1996 05:46:05 +0000 (05:46 +0000)]
.

28 years agoDocument and example --rfc.
Jim Meyering [Tue, 26 Mar 1996 05:44:03 +0000 (05:44 +0000)]
Document and example --rfc.
Document %z and %Z.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:50:47 +0000 (18:50 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:49:38 +0000 (18:49 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:48:25 +0000 (18:48 +0000)]
.

28 years agoUpdate FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:47:09 +0000 (18:47 +0000)]
Update FSF's address.

28 years agoUpdate FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:40:53 +0000 (18:40 +0000)]
Update FSF's address.

28 years agoUpdate FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:33:12 +0000 (18:33 +0000)]
Update FSF's address.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:23:44 +0000 (18:23 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:20:25 +0000 (18:20 +0000)]
.

28 years agoInclude xstrtod.h.
Jim Meyering [Sun, 24 Mar 1996 18:16:10 +0000 (18:16 +0000)]
Include xstrtod.h.
(scan_double_arg): Use xstrtod rather than strtod directly.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 18:13:56 +0000 (18:13 +0000)]
.

28 years agoMake parameters const where appropriate.
Jim Meyering [Sun, 24 Mar 1996 17:50:09 +0000 (17:50 +0000)]
Make parameters const where appropriate.
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.

28 years agoProtoize and reorder functions.
Jim Meyering [Sun, 24 Mar 1996 17:43:41 +0000 (17:43 +0000)]
Protoize and reorder functions.

28 years ago(main): Reformat if-block a little.
Jim Meyering [Sun, 24 Mar 1996 17:21:40 +0000 (17:21 +0000)]
(main): Reformat if-block a little.
Declare index I to be of type size_t to avoid warning from gcc -Wall.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 16:59:29 +0000 (16:59 +0000)]
.

28 years agoCall error with EXIT_FAILURE (rather than `1') as first actual parameter.
Jim Meyering [Sun, 24 Mar 1996 16:59:11 +0000 (16:59 +0000)]
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.

28 years agoExit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
Jim Meyering [Sun, 24 Mar 1996 14:58:01 +0000 (14:58 +0000)]
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
This doesn't change `error (1' calls.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 05:15:00 +0000 (05:15 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:31:39 +0000 (02:31 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:26:30 +0000 (02:26 +0000)]
.

28 years ago[SORT_FAILURE]: New macro.
Jim Meyering [Sun, 24 Mar 1996 02:26:21 +0000 (02:26 +0000)]
[SORT_FAILURE]: New macro.
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.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:20:06 +0000 (02:20 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:19:39 +0000 (02:19 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:19:31 +0000 (02:19 +0000)]
.

28 years ago.
Jim Meyering [Fri, 22 Mar 1996 04:57:19 +0000 (04:57 +0000)]
.

28 years ago.
Jim Meyering [Fri, 22 Mar 1996 04:55:00 +0000 (04:55 +0000)]
.

28 years agoInclude assert.h, but disable assertions.
Jim Meyering [Fri, 22 Mar 1996 04:54:46 +0000 (04:54 +0000)]
Include assert.h, but disable assertions.
(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.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:47:02 +0000 (22:47 +0000)]
(main): Declare to be of type int, not void.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:45:19 +0000 (22:45 +0000)]
(main): Declare to be of type int, not void.

28 years ago.
Jim Meyering [Thu, 21 Mar 1996 22:43:38 +0000 (22:43 +0000)]
.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:41:04 +0000 (22:41 +0000)]
(main): Declare to be of type int, not void.

28 years ago.
Jim Meyering [Thu, 21 Mar 1996 13:00:25 +0000 (13:00 +0000)]
.

28 years ago(main): Declare to return int, not void. From Peter Seebach
Jim Meyering [Thu, 21 Mar 1996 13:00:15 +0000 (13:00 +0000)]
(main): Declare to return int, not void.  From Peter Seebach
<seebs@taniemarie.solon.com>.

28 years ago.
Jim Meyering [Mon, 18 Mar 1996 05:52:07 +0000 (05:52 +0000)]
.

28 years ago.
Jim Meyering [Sat, 16 Mar 1996 22:37:33 +0000 (22:37 +0000)]
.