Jim Meyering
674180c97f
(usage): Use FIRST, LAST consistently in description.
1996-04-22 03:20:14 +00:00
Jim Meyering
c264e159a4
(usage): Describe new %V format.
1996-04-22 03:19:14 +00:00
Jim Meyering
d7bf7dee47
(usage): Reflect that now --no-sync is the default.
1996-04-22 03:17:14 +00:00
Jim Meyering
50b029f4d9
(md5_check): Remove spurious `\n' at end of error format string.
1996-04-22 03:00:52 +00:00
Jim Meyering
c07d15973c
(decode_one_format): Use printf's L modifier for long doubles,
...
not `l'. From Eric Backus.
1996-04-21 21:07:13 +00:00
Jim Meyering
5beebbd8da
Include <values.h>.
...
[!BITSPERBYTE]: Define.
[OFF_T_MAX]: Use BITSPERBYTE, not 8, and cast the result to off_t.
1996-04-21 14:17:13 +00:00
Jim Meyering
2411847f16
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.
1996-04-21 05:18:19 +00:00
Jim Meyering
874f418e03
Remove obsolete FIXME.
1996-04-21 05:15:39 +00:00
Jim Meyering
0126f74936
(decode_switches): Replace two more atoi uses with xstrtol.
1996-04-21 04:45:12 +00:00
Jim Meyering
7d956ece8c
(decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic.
1996-04-21 04:11:43 +00:00
Jim Meyering
ee708ff4aa
(decode_switches): Clean up last change.
...
[posix_pedantic]: Don't consider TABSIZE environment variable.
1996-04-21 04:07:41 +00:00
Jim Meyering
c1f1f8ac3a
(decode_switches): Use xstrtol, not atoi.
...
Detect and ignore invalid value for COLUMNS environment variable.
In error about invalid TABSIZE, don't reference optarg!
1996-04-21 03:52:30 +00:00
Jim Meyering
b76ab178d1
(usage): Improve help message. From Karl Berry.
1996-04-21 03:26:46 +00:00
Jim Meyering
dfbe6788b4
(usage): Improve help message. From Karl Berry.
1996-04-21 03:25:53 +00:00
Jim Meyering
1d2c0959c9
(usage): Improve help message.
...
Enclose message strings in _().
From Karl Berry.
1996-04-21 03:24:47 +00:00
Jim Meyering
a2d90c1616
No longer call sync by default.
1996-04-20 03:51:10 +00:00
Jim Meyering
5ac0cdbfce
(main): Make separation of case for n_files == 0 more clear.
1996-04-20 03:43:10 +00:00
Jim Meyering
f60c8ea48b
(copy_reg): Rearrange arithmetic in conditional to avoid
...
integer overflow with large files.
1996-04-19 05:07:52 +00:00
Jim Meyering
cccb23f01b
(main): Make code clearer: use new variable `n_files' in
...
place of `argc - optind'. Use `file' instead of `argv + optind'.
1996-04-19 03:17:23 +00:00
Jim Meyering
d283aef5ca
(usage): Add missing `\n\' at the end of newly added lines for %e and %z.
1996-04-13 18:27:24 +00:00
Jim Meyering
be333ac3a5
(print_uptime): Invoke getloadavg only if we have it.
1996-04-13 18:26:39 +00:00
Jim Meyering
b4a20010e6
(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.
1996-04-13 18:11:43 +00:00
Jim Meyering
c659704b20
(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.
1996-04-13 03:59:20 +00:00
Jim Meyering
c1bf67ee67
Mark translatable strings in new code.
1996-04-13 03:17:44 +00:00
Jim Meyering
d82c2c9274
(usage): Document %e and %z. Reported by Karl Berry.
1996-04-13 03:04:21 +00:00
Jim Meyering
7057c83fd4
Reindent.
...
(UT_TIME_MEMBER): New macro.
(print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
(print_entry): Likewise.
1996-04-11 02:30:09 +00:00
Jim Meyering
737ea4d4f9
(print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
1996-04-10 04:57:09 +00:00
Jim Meyering
727a9ed970
Add new option --ignore-case (-i).
...
Include memcasecmp.h.
(different): Compare with memcasecmp if ignoring case.
(main): Handle 'i'.
1996-04-10 03:50:31 +00:00
Jim Meyering
5d5979d9a8
(memcasecmp): Remove static definition of function.
...
Include memcasecmp.h instead.
1996-04-10 03:47:28 +00:00
Jim Meyering
39c92b4dc4
(print_numbers): Fix off-by-one error in backwards-counting loop.
...
Reported by Karl Eichwalder.
1996-04-08 04:37:45 +00:00
Jim Meyering
7e76b8b7da
(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 >.
1996-04-07 17:46:03 +00:00
Jim Meyering
d9fe359377
.
1996-04-07 17:27:27 +00:00
Jim Meyering
c32c5775be
Fiddle with messages.
1996-04-07 17:27:11 +00:00
Jim Meyering
3220407d48
(print_numbers): Give more precise diagnostic when increment
...
is inconsistent with FROM and TO.
(usage): Clean up help message.
1996-04-07 17:10:21 +00:00
Jim Meyering
45c51b256a
(main): Rearrange loops to get it right.
...
Reported by Karl Eichwalder <ke@ke.Central.DE >.
1996-04-07 16:59:12 +00:00
Jim Meyering
78732c5421
Remove diagnostic.
1996-04-05 16:04:15 +00:00
Jim Meyering
0e199278c1
(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.
1996-04-05 13:32:39 +00:00
Jim Meyering
9d22ab92f9
Patch from Frank Korz.
1996-04-05 13:14:59 +00:00
Jim Meyering
43b84ec02e
Remove fixed FIXME.
1996-04-05 04:00:05 +00:00
Jim Meyering
987f70fee5
.
1996-04-04 23:10:35 +00:00
Jim Meyering
42a0e84308
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.
1996-04-04 23:08:30 +00:00
Jim Meyering
3191649a85
(copy_reg): Use ST_NBLOCKS (sb) * 512', not sb.st_blocks *
...
DEV_BSIZE.' From H.J. Lu (hjl@lucon.org ).
1996-04-03 12:20:24 +00:00
Jim Meyering
4325d27ddd
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.
1996-04-03 05:42:14 +00:00
Jim Meyering
3d1c60aba7
.
1996-03-31 17:19:06 +00:00
Jim Meyering
399abab9bc
(quote_filename): Use ISGRAPH and ISPRINT in place of
...
ASCII-centric tests against literals.
(length_of_file_name_and_frills): Likewise.
1996-03-31 17:18:28 +00:00
Jim Meyering
908040f25e
Rip out color support.
1996-03-31 14:22:12 +00:00
Jim Meyering
c2efd628df
.
1996-03-29 04:53:57 +00:00
Jim Meyering
fee163dd57
Move usage to precede main.
...
Say `too few arguments' if that's why we display usage.
Protoize.
Include error.h.
Update copyright.
1996-03-28 06:17:34 +00:00
Jim Meyering
0271d97259
from Roland
1996-03-28 05:42:56 +00:00
Jim Meyering
7c5f9f7faa
(cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
...
to be POSIX compliant. From Stephen Gildea <gildea@x.org >.
1996-03-28 05:35:31 +00:00