Commit Graph
19350 Commits
Author SHA1 Message Date
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
Paul Eggert b2fadec71b (check_extension, numbered_backup):
Rename locals to avoid shadowing 'basename'.
2004-09-13 12:10:57 +00:00
Paul Eggert e55016b54d (enum backuptype): Rename none -> no_backups,
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems.  All uses changed.
2004-09-13 12:10:30 +00:00
Paul Eggert d2ea67e96f (my-distcheck): When building with -Werror, also require -Wshadow. 2004-09-13 12:08:33 +00:00
Paul Eggert 79995f6018 id shouldn't fail simply because some numbers can't be resolved. 2004-09-13 10:44:02 +00:00
Paul Eggert 2cfb3f4502 (print_full_info): Don't exit with failure status simply
because a user or group number can't be turned into a name.
2004-09-13 10:43:21 +00:00
Paul Eggert 96567e89fa "tail" now handles obscure POSIX 1003.2-1992 cases better. 2004-09-10 20:54:47 +00:00
Paul Eggert 6840f212f1 (test_vector): minus-* requires
_POSIX2_VERSION=199209 now, to work correctly if there is
an input file.  err-1 and err-3 no longer errors if there
is another file.
2004-09-10 20:54:32 +00:00
Paul Eggert 160d311c8b (parse_obsolete_option): Renamed from
parse_obsolescent_option, since the options are obsolete now.
Remove bool *arg; just exit if there's an error.  Revamp to follow
POSIX 1003.2-1992 more precisely, to handle cases like "tail -
file" and "tail -10 -- file" correctly when we are conforming to
the older standard.
(main): Adjust to this change.
2004-09-10 20:54:08 +00:00
Paul Eggert e21fadd7aa "tail" now handles obscure POSIX 1003.2-1992 cases better. 2004-09-10 20:53:53 +00:00
Paul Eggert 9eaba4a244 src/test.c (usage): Document -r, -w, -x more carefully. 2004-09-09 23:21:58 +00:00
Paul Eggert e54cc590f7 Document test -r, -w, -x more carefully. 2004-09-09 23:21:51 +00:00
Paul Eggert 978abbd279 (test invocation): Document -r, -w, -x more carefully. 2004-09-09 23:21:38 +00:00
Paul Eggert ffcbb97833 (usage): Document -r, -w, -x more carefully. 2004-09-09 23:21:20 +00:00
Paul Eggert 0dd3269a47 Revamp sort last-resort comparison description. 2004-09-09 23:02:40 +00:00
Paul Eggert 86a87a157d (sort invocation): -u disables the last-resort
comparison, too.  Revamp its description.
2004-09-09 23:02:12 +00:00
Paul Eggert b0b7a0164e Document that test -h and -L don't dereference. 2004-09-09 04:15:32 +00:00