Jim Meyering [Mon, 8 Apr 1996 04:56:36 +0000 (04:56 +0000)]
.
Jim Meyering [Mon, 8 Apr 1996 04:54:35 +0000 (04:54 +0000)]
.
Jim Meyering [Mon, 8 Apr 1996 04:54:00 +0000 (04:54 +0000)]
.
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..
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.
Jim Meyering [Sun, 7 Apr 1996 17:56:40 +0000 (17:56 +0000)]
.
Jim Meyering [Sun, 7 Apr 1996 17:53:50 +0000 (17:53 +0000)]
updage from gettext-0.10.12
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>.
Jim Meyering [Sun, 7 Apr 1996 17:27:27 +0000 (17:27 +0000)]
.
Jim Meyering [Sun, 7 Apr 1996 17:27:11 +0000 (17:27 +0000)]
Fiddle with messages.
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.
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>.
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'.
Jim Meyering [Fri, 5 Apr 1996 16:08:32 +0000 (16:08 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 16:04:56 +0000 (16:04 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 16:04:15 +0000 (16:04 +0000)]
Remove diagnostic.
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.
Jim Meyering [Fri, 5 Apr 1996 13:14:59 +0000 (13:14 +0000)]
Patch from Frank Korz.
Jim Meyering [Fri, 5 Apr 1996 04:37:05 +0000 (04:37 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 04:00:05 +0000 (04:00 +0000)]
Remove fixed FIXME.
Jim Meyering [Fri, 5 Apr 1996 03:58:37 +0000 (03:58 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 03:55:07 +0000 (03:55 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 03:28:34 +0000 (03:28 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 03:27:21 +0000 (03:27 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 03:11:47 +0000 (03:11 +0000)]
.
Jim Meyering [Fri, 5 Apr 1996 01:22:42 +0000 (01:22 +0000)]
.
Jim Meyering [Thu, 4 Apr 1996 23:16:13 +0000 (23:16 +0000)]
.
Jim Meyering [Thu, 4 Apr 1996 23:10:35 +0000 (23:10 +0000)]
.
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.
Jim Meyering [Thu, 4 Apr 1996 20:57:13 +0000 (20:57 +0000)]
.
Jim Meyering [Thu, 4 Apr 1996 20:22:10 +0000 (20:22 +0000)]
Add tests from Ross Ridge.
Jim Meyering [Thu, 4 Apr 1996 12:58:29 +0000 (12:58 +0000)]
.
Jim Meyering [Thu, 4 Apr 1996 12:45:16 +0000 (12:45 +0000)]
.
Jim Meyering [Wed, 3 Apr 1996 13:19:59 +0000 (13:19 +0000)]
.
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.
Jim Meyering [Wed, 3 Apr 1996 12:56:09 +0000 (12:56 +0000)]
.
Jim Meyering [Wed, 3 Apr 1996 12:52:22 +0000 (12:52 +0000)]
update from gettext-0.10.11
Jim Meyering [Wed, 3 Apr 1996 12:33:23 +0000 (12:33 +0000)]
.
Jim Meyering [Wed, 3 Apr 1996 12:28:18 +0000 (12:28 +0000)]
.
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).
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.
Jim Meyering [Tue, 2 Apr 1996 15:57:23 +0000 (15:57 +0000)]
.
Jim Meyering [Tue, 2 Apr 1996 14:28:26 +0000 (14:28 +0000)]
.
Jim Meyering [Mon, 1 Apr 1996 04:29:28 +0000 (04:29 +0000)]
(unsetenv): unprotoize.
Jim Meyering [Mon, 1 Apr 1996 00:16:11 +0000 (00:16 +0000)]
.
Jim Meyering [Sun, 31 Mar 1996 23:30:43 +0000 (23:30 +0000)]
.
Jim Meyering [Sun, 31 Mar 1996 22:31:30 +0000 (22:31 +0000)]
.
Jim Meyering [Sun, 31 Mar 1996 17:20:34 +0000 (17:20 +0000)]
.
Jim Meyering [Sun, 31 Mar 1996 17:20:02 +0000 (17:20 +0000)]
.
Jim Meyering [Sun, 31 Mar 1996 17:19:06 +0000 (17:19 +0000)]
.
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.
Jim Meyering [Sun, 31 Mar 1996 14:22:12 +0000 (14:22 +0000)]
Rip out color support.
Jim Meyering [Sat, 30 Mar 1996 14:26:16 +0000 (14:26 +0000)]
update from FSF:/home/gd/gnu/lib
Jim Meyering [Sat, 30 Mar 1996 12:39:36 +0000 (12:39 +0000)]
Update from libc.
Jim Meyering [Sat, 30 Mar 1996 12:19:38 +0000 (12:19 +0000)]
Upgrade from gettext-0.10.10.
Jim Meyering [Sat, 30 Mar 1996 04:18:13 +0000 (04:18 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 16:14:36 +0000 (16:14 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 05:47:21 +0000 (05:47 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 05:45:25 +0000 (05:45 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 05:01:14 +0000 (05:01 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 05:00:05 +0000 (05:00 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 04:54:45 +0000 (04:54 +0000)]
.
Jim Meyering [Fri, 29 Mar 1996 04:53:57 +0000 (04:53 +0000)]
.
Jim Meyering [Thu, 28 Mar 1996 06:19:37 +0000 (06:19 +0000)]
.
Jim Meyering [Thu, 28 Mar 1996 06:18:24 +0000 (06:18 +0000)]
.
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.
Jim Meyering [Thu, 28 Mar 1996 06:14:59 +0000 (06:14 +0000)]
.
Jim Meyering [Thu, 28 Mar 1996 05:42:56 +0000 (05:42 +0000)]
from Roland
Jim Meyering [Thu, 28 Mar 1996 05:35:48 +0000 (05:35 +0000)]
.
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>.
Jim Meyering [Tue, 26 Mar 1996 05:46:05 +0000 (05:46 +0000)]
.
Jim Meyering [Tue, 26 Mar 1996 05:44:03 +0000 (05:44 +0000)]
Document and example --rfc.
Document %z and %Z.
Jim Meyering [Sun, 24 Mar 1996 18:50:47 +0000 (18:50 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 18:49:38 +0000 (18:49 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 18:48:25 +0000 (18:48 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 18:47:09 +0000 (18:47 +0000)]
Update FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:40:53 +0000 (18:40 +0000)]
Update FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:33:12 +0000 (18:33 +0000)]
Update FSF's address.
Jim Meyering [Sun, 24 Mar 1996 18:23:44 +0000 (18:23 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 18:20:25 +0000 (18:20 +0000)]
.
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.
Jim Meyering [Sun, 24 Mar 1996 18:13:56 +0000 (18:13 +0000)]
.
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.
Jim Meyering [Sun, 24 Mar 1996 17:43:41 +0000 (17:43 +0000)]
Protoize and reorder functions.
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.
Jim Meyering [Sun, 24 Mar 1996 16:59:29 +0000 (16:59 +0000)]
.
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.
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.
Jim Meyering [Sun, 24 Mar 1996 05:15:00 +0000 (05:15 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 02:31:39 +0000 (02:31 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 02:26:30 +0000 (02:26 +0000)]
.
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.
Jim Meyering [Sun, 24 Mar 1996 02:20:06 +0000 (02:20 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 02:19:39 +0000 (02:19 +0000)]
.
Jim Meyering [Sun, 24 Mar 1996 02:19:31 +0000 (02:19 +0000)]
.
Jim Meyering [Fri, 22 Mar 1996 04:57:19 +0000 (04:57 +0000)]
.
Jim Meyering [Fri, 22 Mar 1996 04:55:00 +0000 (04:55 +0000)]
.
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.
Jim Meyering [Thu, 21 Mar 1996 22:47:02 +0000 (22:47 +0000)]
(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.