Paul Eggert
058d0dab92
(decode_switches): Don't compare a short value
...
to SIZE_MAX: GCC sometimes complains.
2004-09-22 19:47:38 +00:00
Paul Eggert
afa60ee222
getopt cleanup.
2004-09-21 22:27:07 +00:00
Paul Eggert
81ca57a91d
Remove unused "case 0".
2004-09-21 22:26:42 +00:00
Paul Eggert
718c00df82
Adjust to new wording in diagnostic.
2004-09-21 22:25:51 +00:00
Paul Eggert
9873bd7eb6
(main): Remove unused "case 0".
...
(verbose): Now bool, not int.
(VERBOSE_OPTION): New enum.
(longopts, main): Use it.
2004-09-21 22:13:53 +00:00
Paul Eggert
26877d8d31
Don't include "long-options.h".
2004-09-21 22:13:13 +00:00
Paul Eggert
9fb20db0af
Don't include "long-options.h".
...
(main): Remove unused "case 0".
2004-09-21 22:12:55 +00:00
Paul Eggert
1ccaf98c8c
(longopts): Add --help, --version.
...
(main): Use longopts rather than parse_long_options.
Don't include "long-options.h".
2004-09-21 22:12:13 +00:00
Paul Eggert
288994697f
(longopts): Add --help, --version.
...
(main): Use longopts rather than parse_long_options.
(main): Don't reorder arguments, so that we can check weird file names.
2004-09-21 22:11:28 +00:00
Paul Eggert
ca316df53c
Remove unused "case 0".
...
(long_opts): Standardize on NULL vs 0.
2004-09-21 22:10:39 +00:00
Paul Eggert
31bf55d54c
(main): Remove unused "case 0".
...
(long_options): Standardize on NULL vs 0.
2004-09-21 22:09:52 +00:00
Paul Eggert
4ef2590268
Remove now-unused long-options static var.
...
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:09:09 +00:00
Paul Eggert
3456364b8c
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:07:51 +00:00
Paul Eggert
aa1ed28185
Reject unknown options.
2004-09-21 22:05:52 +00:00
Paul Eggert
6c9dc0efd9
Reject unknown options.
2004-09-21 22:05:27 +00:00
Paul Eggert
b78d6f6d92
Include <getopt.h>.
...
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:04:31 +00:00
Paul Eggert
4fa016cbc9
Include <getopt.h>.
...
(main): Reject unknown options.
2004-09-21 22:01:50 +00:00
Paul Eggert
0d219ee57d
Include <getopt.h>.
...
(main): Reject unknown options.
2004-09-21 22:01:28 +00:00
Paul Eggert
d243dee60a
The following commands now reject unknown options:
...
basename dirname factor hostname link nohup sync unlink yes
Also, pathchk no longer accepts trailing options.
2004-09-21 22:00:27 +00:00
Paul Eggert
d11d06abfa
* man/rm.x: Say "the response is affirmative".
2004-09-21 07:54:15 +00:00
Paul Eggert
abc9ec97f6
Say "the response is affirmative" rather than "the
...
response begins with y or Y".
2004-09-21 07:53:54 +00:00
Paul Eggert
5e1765ba6c
* coreutils.texi (mv invocation, rm invocation): Say "the response
...
is affirmative" rather than "the response begins with y or Y".
2004-09-21 05:56:21 +00:00
Paul Eggert
2e1b232b61
(mv invocation, rm invocation): Say "the response
...
is affirmative" rather than "the response begins with y or Y".
2004-09-21 05:56:11 +00:00
Paul Eggert
dcb7800cf2
Fix echo off-by-1 bug.
2004-09-20 07:34:26 +00:00
Paul Eggert
82a84d38cb
(main): Don't dump core if POSIXLY_CORRECT and given no arguments.
2004-09-20 06:32:10 +00:00
Paul Eggert
d89f5a3b8f
Remove md5sum --string.
2004-09-19 16:53:00 +00:00
Paul Eggert
83100c448b
(STRING_OPTION): Remove.
...
(long_options, main): Remove support for undocumented and
obsolete --string option, as suggested in the 1996-09-26 patch.
2004-09-19 16:52:50 +00:00
Paul Eggert
e165ffef18
Fix sticky-directory test case bug reported by Bert Fischer.
2004-09-19 07:11:48 +00:00
Paul Eggert
d98eed0845
Don't try to remove writeable files in a sticky /tmp directory, as
...
SVR4-like systems (e.g., Solaris 9) let you remove such files.
2004-09-19 07:11:16 +00:00
Paul Eggert
3074778063
m5sum cleanup
2004-09-19 02:21:18 +00:00
Paul Eggert
fdac7ecb11
(STATUS_OPTION, STRING_OPTION): New enums.
...
(long_options, main): Use them instead of magic numbers 2 and 1.
For --string, optarg can't possibly be NULL.
2004-09-19 02:21:09 +00:00
Paul Eggert
6de3d41d5f
dd invocation fixes
2004-09-19 02:14:09 +00:00
Paul Eggert
59a53b222e
Log changes to dd, chroot, cksum.
2004-09-19 02:13:56 +00:00
Paul Eggert
95547591e9
(dd invocation): Distinguish between options
...
(e.g., --help) and operands (e.g., if=file). Move miscellaneous
stuff after the operand descriptions, for clarity.
2004-09-19 01:46:28 +00:00
Paul Eggert
701fdccca9
(usage): Distinguish between options and operands.
...
(scanargs): Don't mess with argc, argv; getopt_long handles this now.
Say "operands" for operands, not "options".
(main): Use getopt_long, so that "dd --" works as POSIX requires.
2004-09-19 01:46:09 +00:00
Paul Eggert
379580a006
Check for "dd --".
2004-09-19 01:45:48 +00:00
Paul Eggert
77f80f747e
(main): Usage failure is EXIT_FAIL, not EXIT_FAILURE.
2004-09-19 01:07:46 +00:00
Paul Eggert
b1d33bd46d
Fix typo in previous change.
2004-09-19 01:02:30 +00:00
Paul Eggert
9f5c2a8415
(main): Reject unknown options instead of
...
interpreting them as a directory to chroot to.
2004-09-19 00:58:47 +00:00
Paul Eggert
21b794d06b
Remove obsolete comment about POSIX 1003.2/D11.2.
...
The current standard (POSIX 1003.1-2004) is correct.
(crc_remainder) [defined CRCTAB]: Renamed from "remainder" to avoid
collision with builtin function.
(main) [defined CRCTAB]: Output in lowercase hexadecimal, and
output the first 0 as 8 digits, to make it easier to compare to
the text of the standard. Output crctab to be a const array.
(crctab): Use result of above changes.
(long_options): Remove; not needed if empty.
(main): getopt_long can't return 0 here, so simplify the code.
2004-09-19 00:39:52 +00:00
Paul Eggert
3ff4c0ba42
Regenerate.
2004-09-13 13:05:51 +00:00
Paul Eggert
7f924031d6
(localedir.h): Don't redirect directly to target.
2004-09-13 13:05:08 +00:00
Paul Eggert
16321b88ed
* src/Makefile.am (localedir.h): Don't redirect directly to target.
2004-09-13 13:04:37 +00:00
Paul Eggert
d51163ecb8
Regenerate.
2004-09-13 12:17:20 +00:00
Paul Eggert
6340f98cc4
Add -Wshadow.
2004-09-13 12:16:08 +00:00
Paul Eggert
1657fe1f64
Rename backup enum to avoid shadowing problems.
2004-09-13 12:15:56 +00:00
Paul Eggert
1359bf8d48
Adjust to backup enum rename.
2004-09-13 12:15:02 +00:00
Paul Eggert
3e60f6731d
Adjust to backup file rename.
2004-09-13 12:13:04 +00:00
Paul Eggert
615d4b2cc8
Adjust to backup enum rename.
2004-09-13 12:12:26 +00:00
Paul Eggert
e6bcd96876
(enum backuptype): Rename none -> no_backups,
...
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems. All uses changed.
(VALID_BACKUP_TYPE): Don't evaluate arg more than once.
2004-09-13 12:11:34 +00:00