Paul Eggert [Fri, 24 Sep 2004 05:53:21 +0000 (05:53 +0000)]
* Makefile.maint (CVS_LIST): New macro.
Paul Eggert [Fri, 24 Sep 2004 05:53:05 +0000 (05:53 +0000)]
(CVS_LIST): New macro.
(sc_space_tab, sc_prohibit_atoi_atof, sc_file_system,
sc_prohibit_jm_in_m4, sc_system_h_headers, sc_sun_os_names,
sc_trailing_blank, po-check): Use it instead of the
nonstandard "cvsu --list".
Paul Eggert [Thu, 23 Sep 2004 20:31:42 +0000 (20:31 +0000)]
Regenerate.
Paul Eggert [Thu, 23 Sep 2004 20:30:54 +0000 (20:30 +0000)]
New test case obs-b.
err-[134] no longer need _POSIX2_VERSION=199209.
Fix comments to match revised 'tail' behavior.
Paul Eggert [Thu, 23 Sep 2004 20:29:57 +0000 (20:29 +0000)]
Add comments for tests/tail/Test.pm.
Paul Eggert [Thu, 23 Sep 2004 20:28:10 +0000 (20:28 +0000)]
(parse_obsolete_option): Bring back support
for obsolete option followed by non-obsolete, or by more
than one file. When obsolete, conform to SUSv2 rather than
original POSIX 1003.2-1992, as SUSv2 corrected the case of
"tail -c". Add support for the SUSv2 "b" modifier.
Paul Eggert [Thu, 23 Sep 2004 20:27:15 +0000 (20:27 +0000)]
Fix obsolete "tail" option description.
Paul Eggert [Thu, 23 Sep 2004 20:26:31 +0000 (20:26 +0000)]
(tail invocation): Fix bugs in the description of
the obsolete syntax (e.g., it does not support -k or -m). Warn
about usages like "tail -" and "tail -c 4" that are ambigous on
older systems.
Paul Eggert [Thu, 23 Sep 2004 20:25:38 +0000 (20:25 +0000)]
More backward-compatibility fixes for "tail".
Paul Eggert [Thu, 23 Sep 2004 20:24:52 +0000 (20:24 +0000)]
Describe SUSv2 etc. tail fixes.
Jim Meyering [Wed, 22 Sep 2004 20:20:42 +0000 (20:20 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:20:29 +0000 (20:20 +0000)]
Remove lib/xmalloc.c.
Add +lib/xalloc-die.c.
Jim Meyering [Wed, 22 Sep 2004 20:19:35 +0000 (20:19 +0000)]
Use automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:19:10 +0000 (20:19 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:18:41 +0000 (20:18 +0000)]
Use automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:18:09 +0000 (20:18 +0000)]
Use automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:16:41 +0000 (20:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:16:38 +0000 (20:16 +0000)]
Remove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 20:15:49 +0000 (20:15 +0000)]
Remove extraneous spaces before TAB.
Jim Meyering [Wed, 22 Sep 2004 20:14:48 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:14:25 +0000 (20:14 +0000)]
Remove trailing blank.
Jim Meyering [Wed, 22 Sep 2004 20:13:31 +0000 (20:13 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:13:09 +0000 (20:13 +0000)]
(struct dirstack_state) [current_arg_jumpbuf]: Improve the comment.
Jim Meyering [Wed, 22 Sep 2004 20:11:18 +0000 (20:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:11:10 +0000 (20:11 +0000)]
(enum) [ALG_MD5]: Define to be 1, not 0.
Jim Meyering [Wed, 22 Sep 2004 20:09:41 +0000 (20:09 +0000)]
(xalloc_die): Declare to be static.
Jim Meyering [Wed, 22 Sep 2004 20:09:09 +0000 (20:09 +0000)]
(remember_created): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:08:59 +0000 (20:08 +0000)]
(copy): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:08:51 +0000 (20:08 +0000)]
(chown_files): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:07:02 +0000 (20:07 +0000)]
.
Jim Meyering [Wed, 22 Sep 2004 20:06:44 +0000 (20:06 +0000)]
(check-AUTHORS): New rule.
(check): Depend on it.
Jim Meyering [Wed, 22 Sep 2004 20:03:50 +0000 (20:03 +0000)]
Generate.
Jim Meyering [Wed, 22 Sep 2004 20:02:53 +0000 (20:02 +0000)]
(syntax-check-rules): Remove duplicate sc_tight_scope.
(sc_system_h_headers): Also exclude copy.h; it includes <stdbool.h>.
Jim Meyering [Wed, 22 Sep 2004 20:00:58 +0000 (20:00 +0000)]
Remove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 20:00:37 +0000 (20:00 +0000)]
Remove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 19:59:20 +0000 (19:59 +0000)]
remove trailing blank
Paul Eggert [Wed, 22 Sep 2004 19:47:59 +0000 (19:47 +0000)]
* src/ls.c (decode_switches): Don't compare a short value to SIZE_MAX.
Paul Eggert [Wed, 22 Sep 2004 19:47:38 +0000 (19:47 +0000)]
(decode_switches): Don't compare a short value
to SIZE_MAX: GCC sometimes complains.
Paul Eggert [Tue, 21 Sep 2004 22:27:07 +0000 (22:27 +0000)]
getopt cleanup.
Paul Eggert [Tue, 21 Sep 2004 22:26:42 +0000 (22:26 +0000)]
Remove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:25:51 +0000 (22:25 +0000)]
Adjust to new wording in diagnostic.
Paul Eggert [Tue, 21 Sep 2004 22:13:53 +0000 (22:13 +0000)]
(main): Remove unused "case 0".
(verbose): Now bool, not int.
(VERBOSE_OPTION): New enum.
(longopts, main): Use it.
Paul Eggert [Tue, 21 Sep 2004 22:13:13 +0000 (22:13 +0000)]
Don't include "long-options.h".
Paul Eggert [Tue, 21 Sep 2004 22:12:55 +0000 (22:12 +0000)]
Don't include "long-options.h".
(main): Remove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:12:13 +0000 (22:12 +0000)]
(longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
Don't include "long-options.h".
Paul Eggert [Tue, 21 Sep 2004 22:11:28 +0000 (22:11 +0000)]
(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.
Paul Eggert [Tue, 21 Sep 2004 22:10:39 +0000 (22:10 +0000)]
Remove unused "case 0".
(long_opts): Standardize on NULL vs 0.
Paul Eggert [Tue, 21 Sep 2004 22:09:52 +0000 (22:09 +0000)]
(main): Remove unused "case 0".
(long_options): Standardize on NULL vs 0.
Paul Eggert [Tue, 21 Sep 2004 22:09:09 +0000 (22:09 +0000)]
Remove now-unused long-options static var.
(main): Use getopt where it suffices, not getopt_long.
Paul Eggert [Tue, 21 Sep 2004 22:07:51 +0000 (22:07 +0000)]
(main): Use getopt where it suffices, not getopt_long.
Paul Eggert [Tue, 21 Sep 2004 22:05:52 +0000 (22:05 +0000)]
Reject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:05:27 +0000 (22:05 +0000)]
Reject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:04:31 +0000 (22:04 +0000)]
Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
Paul Eggert [Tue, 21 Sep 2004 22:01:50 +0000 (22:01 +0000)]
Include <getopt.h>.
(main): Reject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:01:28 +0000 (22:01 +0000)]
Include <getopt.h>.
(main): Reject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:00:27 +0000 (22:00 +0000)]
The following commands now reject unknown options:
basename dirname factor hostname link nohup sync unlink yes
Also, pathchk no longer accepts trailing options.
Paul Eggert [Tue, 21 Sep 2004 07:54:15 +0000 (07:54 +0000)]
* man/rm.x: Say "the response is affirmative".
Paul Eggert [Tue, 21 Sep 2004 07:53:54 +0000 (07:53 +0000)]
Say "the response is affirmative" rather than "the
response begins with y or Y".
Paul Eggert [Tue, 21 Sep 2004 05:56:21 +0000 (05:56 +0000)]
* coreutils.texi (mv invocation, rm invocation): Say "the response
is affirmative" rather than "the response begins with y or Y".
Paul Eggert [Tue, 21 Sep 2004 05:56:11 +0000 (05:56 +0000)]
(mv invocation, rm invocation): Say "the response
is affirmative" rather than "the response begins with y or Y".
Paul Eggert [Mon, 20 Sep 2004 07:34:26 +0000 (07:34 +0000)]
Fix echo off-by-1 bug.
Paul Eggert [Mon, 20 Sep 2004 06:32:10 +0000 (06:32 +0000)]
(main): Don't dump core if POSIXLY_CORRECT and given no arguments.
Paul Eggert [Sun, 19 Sep 2004 16:53:00 +0000 (16:53 +0000)]
Remove md5sum --string.
Paul Eggert [Sun, 19 Sep 2004 16:52:50 +0000 (16:52 +0000)]
(STRING_OPTION): Remove.
(long_options, main): Remove support for undocumented and
obsolete --string option, as suggested in the 1996-09-26 patch.
Paul Eggert [Sun, 19 Sep 2004 07:11:48 +0000 (07:11 +0000)]
Fix sticky-directory test case bug reported by Bert Fischer.
Paul Eggert [Sun, 19 Sep 2004 07:11:16 +0000 (07:11 +0000)]
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.
Paul Eggert [Sun, 19 Sep 2004 02:21:18 +0000 (02:21 +0000)]
m5sum cleanup
Paul Eggert [Sun, 19 Sep 2004 02:21:09 +0000 (02:21 +0000)]
(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.
Paul Eggert [Sun, 19 Sep 2004 02:14:09 +0000 (02:14 +0000)]
dd invocation fixes
Paul Eggert [Sun, 19 Sep 2004 02:13:56 +0000 (02:13 +0000)]
Log changes to dd, chroot, cksum.
Paul Eggert [Sun, 19 Sep 2004 01:46:28 +0000 (01:46 +0000)]
(dd invocation): Distinguish between options
(e.g., --help) and operands (e.g., if=file). Move miscellaneous
stuff after the operand descriptions, for clarity.
Paul Eggert [Sun, 19 Sep 2004 01:46:09 +0000 (01:46 +0000)]
(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.
Paul Eggert [Sun, 19 Sep 2004 01:45:48 +0000 (01:45 +0000)]
Check for "dd --".
Paul Eggert [Sun, 19 Sep 2004 01:07:46 +0000 (01:07 +0000)]
(main): Usage failure is EXIT_FAIL, not EXIT_FAILURE.
Paul Eggert [Sun, 19 Sep 2004 01:02:30 +0000 (01:02 +0000)]
Fix typo in previous change.
Paul Eggert [Sun, 19 Sep 2004 00:58:47 +0000 (00:58 +0000)]
(main): Reject unknown options instead of
interpreting them as a directory to chroot to.
Paul Eggert [Sun, 19 Sep 2004 00:39:52 +0000 (00:39 +0000)]
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.
Paul Eggert [Mon, 13 Sep 2004 13:05:51 +0000 (13:05 +0000)]
Regenerate.
Paul Eggert [Mon, 13 Sep 2004 13:05:08 +0000 (13:05 +0000)]
(localedir.h): Don't redirect directly to target.
Paul Eggert [Mon, 13 Sep 2004 13:04:37 +0000 (13:04 +0000)]
* src/Makefile.am (localedir.h): Don't redirect directly to target.
Paul Eggert [Mon, 13 Sep 2004 12:17:20 +0000 (12:17 +0000)]
Regenerate.
Paul Eggert [Mon, 13 Sep 2004 12:16:08 +0000 (12:16 +0000)]
Add -Wshadow.
Paul Eggert [Mon, 13 Sep 2004 12:15:56 +0000 (12:15 +0000)]
Rename backup enum to avoid shadowing problems.
Paul Eggert [Mon, 13 Sep 2004 12:15:02 +0000 (12:15 +0000)]
Adjust to backup enum rename.
Paul Eggert [Mon, 13 Sep 2004 12:13:04 +0000 (12:13 +0000)]
Adjust to backup file rename.
Paul Eggert [Mon, 13 Sep 2004 12:12:26 +0000 (12:12 +0000)]
Adjust to backup enum rename.
Paul Eggert [Mon, 13 Sep 2004 12:11:34 +0000 (12:11 +0000)]
(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.
Paul Eggert [Mon, 13 Sep 2004 12:10:57 +0000 (12:10 +0000)]
(check_extension, numbered_backup):
Rename locals to avoid shadowing 'basename'.
Paul Eggert [Mon, 13 Sep 2004 12:10:30 +0000 (12:10 +0000)]
(enum backuptype): Rename none -> no_backups,
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems. All uses changed.
Paul Eggert [Mon, 13 Sep 2004 12:08:33 +0000 (12:08 +0000)]
(my-distcheck): When building with -Werror, also require -Wshadow.
Paul Eggert [Mon, 13 Sep 2004 10:44:02 +0000 (10:44 +0000)]
id shouldn't fail simply because some numbers can't be resolved.
Paul Eggert [Mon, 13 Sep 2004 10:43:21 +0000 (10:43 +0000)]
(print_full_info): Don't exit with failure status simply
because a user or group number can't be turned into a name.
Paul Eggert [Fri, 10 Sep 2004 20:54:47 +0000 (20:54 +0000)]
"tail" now handles obscure POSIX 1003.2-1992 cases better.
Paul Eggert [Fri, 10 Sep 2004 20:54:32 +0000 (20:54 +0000)]
(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.
Paul Eggert [Fri, 10 Sep 2004 20:54:08 +0000 (20:54 +0000)]
(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.
Paul Eggert [Fri, 10 Sep 2004 20:53:53 +0000 (20:53 +0000)]
"tail" now handles obscure POSIX 1003.2-1992 cases better.
Paul Eggert [Thu, 9 Sep 2004 23:21:58 +0000 (23:21 +0000)]
src/test.c (usage): Document -r, -w, -x more carefully.
Paul Eggert [Thu, 9 Sep 2004 23:21:51 +0000 (23:21 +0000)]
Document test -r, -w, -x more carefully.
Paul Eggert [Thu, 9 Sep 2004 23:21:38 +0000 (23:21 +0000)]
(test invocation): Document -r, -w, -x more carefully.
Paul Eggert [Thu, 9 Sep 2004 23:21:20 +0000 (23:21 +0000)]
(usage): Document -r, -w, -x more carefully.