Jim Meyering [Thu, 22 Jan 2004 22:18:21 +0000 (22:18 +0000)]
(TESTS): Add fail-perm.
Jim Meyering [Thu, 22 Jan 2004 22:18:16 +0000 (22:18 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Jan 2004 22:18:12 +0000 (22:18 +0000)]
Test for just-fixed rmdir bug.
Jim Meyering [Thu, 22 Jan 2004 22:13:33 +0000 (22:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Jan 2004 22:13:27 +0000 (22:13 +0000)]
(Exit status): Document that ordinary failure
might not exit with status 1 on unusual platforms.
Mention chroot, env, nice, and su as having unusual exit
status patterns. Don't bother to mention true and false
since their exit status patterns are actually normal.
(sort invocation, su invocation): Mention its unusual exit
status pattern.
(chroot invocation): Simplify description of exit status 1.
Remove duplicate description of status 127.
(env invocation): Use consistent tenses; simplifiy description
of status 1.
(nice invocation): Likewise.
Jim Meyering [Thu, 22 Jan 2004 22:08:18 +0000 (22:08 +0000)]
.
Jim Meyering [Thu, 22 Jan 2004 21:09:33 +0000 (21:09 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant assignments.
(TTY_FAILURE, TTY_WRITE_ERROR): New enum values;
substitute them for the corresponding integer constants.
Jim Meyering [Thu, 22 Jan 2004 21:07:40 +0000 (21:07 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
Jim Meyering [Thu, 22 Jan 2004 21:04:26 +0000 (21:04 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(err): Now a boolean int, not a counter,
so that we don't have to worry about int overflow. All uses changed.
Jim Meyering [Thu, 22 Jan 2004 21:03:13 +0000 (21:03 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant
assignments.
Jim Meyering [Thu, 22 Jan 2004 21:02:22 +0000 (21:02 +0000)]
(initialize_exit_failure): New inline function.
Include exitfail.h here, since we refer to exit_failure.
All callers changed to not include exitfail.h.
(EXIT_FAIL, EXIT_CANNOT_INVOKE, EXIT_ENOENT): New enum values.
Jim Meyering [Thu, 22 Jan 2004 21:00:25 +0000 (21:00 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
Jim Meyering [Thu, 22 Jan 2004 20:58:59 +0000 (20:58 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 2, on errors detected by stty proper.
Jim Meyering [Thu, 22 Jan 2004 20:55:26 +0000 (20:55 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant
assignments.
Don't include <assert.h>.
(SORT_OUT_OF_ORDER, SORT_FAILURE): Now enums, not macros.
(usage): Don't use 'assert'.
(main): Remove redundant assignment to exit_failure.
Jim Meyering [Thu, 22 Jan 2004 20:53:55 +0000 (20:53 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Likewise, to SETUIDGID_FAILURE.
(SETUIDGID_FAILURE): Renamed from FAIL_STATUS,
for consistency with other programs here. All uses changed.
(main): Use 'error' to exit rather than invoking 'exit' here.
Jim Meyering [Thu, 22 Jan 2004 20:51:09 +0000 (20:51 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(print_numbers): Now returns void, not (zero) int.
All callers changed.
(main): Remove unused local variable 'errs'. Always exit successfully
if we reach the end.
Jim Meyering [Thu, 22 Jan 2004 20:48:38 +0000 (20:48 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(remove_parents): Don't set 'fail' to a negative number.
(main): Avoid integer overflow when seeing whether errors occurred.
Jim Meyering [Thu, 22 Jan 2004 20:44:15 +0000 (20:44 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than setting
exit_failure directly; this optimizes away redundant assignments.
(PRINTENV_FAILURE): New constant.
(main): Exit with status PRINTENV_FAILURE, not EXIT_FAILURE, on
command-line syntax problems.
Jim Meyering [Thu, 22 Jan 2004 19:49:47 +0000 (19:49 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
Jim Meyering [Thu, 22 Jan 2004 08:10:12 +0000 (08:10 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Jan 2004 08:10:02 +0000 (08:10 +0000)]
Fix it so using --info-page='coreutils PROG' works.
Jim Meyering [Thu, 22 Jan 2004 08:09:38 +0000 (08:09 +0000)]
(.x.1): Invoke our own (tweaked) copy of help2man.
Use --info-page='coreutils PROG' option.
Now, readlink.1 refers the user to `info coreutils readlink'
rather than to `info readlink'. Reported by Matt Swift.
Jim Meyering [Thu, 22 Jan 2004 07:59:31 +0000 (07:59 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 2004 23:50:20 +0000 (23:50 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:50:13 +0000 (23:50 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:49:31 +0000 (23:49 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:49:15 +0000 (23:49 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:47:48 +0000 (23:47 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:47:17 +0000 (23:47 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:46:53 +0000 (23:46 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:46:07 +0000 (23:46 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:45:53 +0000 (23:45 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:45:43 +0000 (23:45 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:45:21 +0000 (23:45 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:45:13 +0000 (23:45 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:44:47 +0000 (23:44 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:39:34 +0000 (23:39 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 23:38:45 +0000 (23:38 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:38:15 +0000 (23:38 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:37:54 +0000 (23:37 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:31:33 +0000 (23:31 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
(NOHUP_FOUND_BUT_CANNOT_INVOKE): Remove; all uses
changed to EXIT_CANNOT_INVOKE.
Jim Meyering [Wed, 21 Jan 2004 23:30:09 +0000 (23:30 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Exit with status 1, not 2, on errors detected by nl proper.
Jim Meyering [Wed, 21 Jan 2004 23:28:19 +0000 (23:28 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Exit with status EXIT_FAIL, not EXIT_FAILURE,
on error; this is in case EXIT_FAILURE is unusual.
Jim Meyering [Wed, 21 Jan 2004 23:23:14 +0000 (23:23 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 23:22:33 +0000 (23:22 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 4, if not implemented.
Jim Meyering [Wed, 21 Jan 2004 23:22:07 +0000 (23:22 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 4, if not implemented.
Jim Meyering [Wed, 21 Jan 2004 23:21:31 +0000 (23:21 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:21:17 +0000 (23:21 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Use int, not size_t, to store boolean int.
Jim Meyering [Wed, 21 Jan 2004 23:20:16 +0000 (23:20 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 23:16:01 +0000 (23:16 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:15:33 +0000 (23:15 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:15:07 +0000 (23:15 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:14:46 +0000 (23:14 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:11:04 +0000 (23:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 2004 23:10:54 +0000 (23:10 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
(problems): Now a boolean int, not a counter,
so that we don't have to worry about int overflow. All uses changed.
Jim Meyering [Wed, 21 Jan 2004 23:09:07 +0000 (23:09 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 2, on errors detected
by hostname proper.
Jim Meyering [Wed, 21 Jan 2004 23:08:09 +0000 (23:08 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 23:07:15 +0000 (23:07 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:06:51 +0000 (23:06 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Do not report a usage error simply
because stdin has bad numbers.
Jim Meyering [Wed, 21 Jan 2004 23:03:34 +0000 (23:03 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 23:02:45 +0000 (23:02 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant assignments.
(EXPR_FAILURE): Renamed from EXPR_ERROR, for
consistency with the other programs' naming conventions.
All uses changed.
Jim Meyering [Wed, 21 Jan 2004 23:00:48 +0000 (23:00 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 22:59:14 +0000 (22:59 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Use initialize_exit_failure rather than
setting exit_failure directly; this optimizes away redundant
assignments.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
(main): Exit with status 1, not 2, on errors detected by env proper.
Jim Meyering [Wed, 21 Jan 2004 22:56:47 +0000 (22:56 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 22:56:22 +0000 (22:56 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 22:55:51 +0000 (22:55 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 22:53:49 +0000 (22:53 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(dd_copy): Exit with status EXIT_FAILURE, not 2, on errors.
(write_output, skip, dd_copy): Don't assume EXIT_FAILURE == 1,
as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 22:52:53 +0000 (22:52 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
Jim Meyering [Wed, 21 Jan 2004 22:50:28 +0000 (22:50 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
Jim Meyering [Wed, 21 Jan 2004 22:49:36 +0000 (22:49 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 22:49:09 +0000 (22:49 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(exit_status): Remove static var....
(main): Making it local here instead. Use =, not |=, to set it.
Jim Meyering [Wed, 21 Jan 2004 22:48:06 +0000 (22:48 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 22:47:09 +0000 (22:47 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(CHROOT_FOUND_BUT_CANNOT_INVOKE, CHROOT_FAILURE): Remove.
(main): Initialize exit_failure to EXIT_FAIL.
(main): Exit with status 1 rather than 127
if chroot itself fails, as per documentation.
(main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE
rather than roll-your-own symbols or integers.
Jim Meyering [Wed, 21 Jan 2004 22:45:11 +0000 (22:45 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Removed unused local 'fail'.
Jim Meyering [Wed, 21 Jan 2004 22:44:43 +0000 (22:44 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 22:43:51 +0000 (22:43 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 22:42:46 +0000 (22:42 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Jim Meyering [Wed, 21 Jan 2004 22:42:34 +0000 (22:42 +0000)]
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 22:37:32 +0000 (22:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 2004 22:37:21 +0000 (22:37 +0000)]
Include "exitfail.h".
(STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
Jim Meyering [Wed, 21 Jan 2004 22:36:42 +0000 (22:36 +0000)]
(obstack_exit_failure) [!defined _LIBC]:
Now a macro referring to exit_failure, instead of a separate
variable. Include "exitfail.h" to get it.
Jim Meyering [Wed, 21 Jan 2004 22:35:55 +0000 (22:35 +0000)]
(parse_long_options): Use prototype for usage function arg.
Pass it EXIT_SUCCESS rather than 0, for clarity.
Jim Meyering [Wed, 21 Jan 2004 22:35:10 +0000 (22:35 +0000)]
Comment fix to match the above.
Jim Meyering [Wed, 21 Jan 2004 22:34:58 +0000 (22:34 +0000)]
(ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
Jim Meyering [Wed, 21 Jan 2004 22:10:23 +0000 (22:10 +0000)]
tweak comment: from Paul Eggert
Jim Meyering [Wed, 21 Jan 2004 20:57:00 +0000 (20:57 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 2004 20:56:50 +0000 (20:56 +0000)]
Remove `command' syntax.
Jim Meyering [Wed, 21 Jan 2004 20:42:24 +0000 (20:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 2004 20:42:20 +0000 (20:42 +0000)]
(__mktime_internal) [!_LIBC]: Define to mktime_internal
so as not to conflict with a different-sized __mktime_internal
function in GNU libc.
Jim Meyering [Wed, 21 Jan 2004 20:21:47 +0000 (20:21 +0000)]
.
Jim Meyering [Wed, 21 Jan 2004 19:57:35 +0000 (19:57 +0000)]
* tests/touch/relative: Test only year/month/day, not hours/min/sec,
so as to avoid problems with systems using TAI clocks.
Although it's no longer necessary, set TZ=UTC0 also for the
initial touch command. Reported by Paul Jarc here:
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/1504
Jim Meyering [Wed, 21 Jan 2004 19:46:35 +0000 (19:46 +0000)]
Use TZ=UTC0, not TZ=utc (which isn't portable).
Jim Meyering [Tue, 20 Jan 2004 22:44:46 +0000 (22:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jan 2004 22:44:33 +0000 (22:44 +0000)]
Add .mov to the list of media files.
Jim Meyering [Tue, 20 Jan 2004 22:19:36 +0000 (22:19 +0000)]
from Alexandre Duret-Lutz
Jim Meyering [Tue, 20 Jan 2004 09:20:18 +0000 (09:20 +0000)]
.
Jim Meyering [Tue, 20 Jan 2004 09:19:51 +0000 (09:19 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jan 2004 09:19:37 +0000 (09:19 +0000)]
Use TZ=UTC0, not TZ=utc (which isn't portable).
Problem reported by Christian Krackowizer. Also, use
+0000 rather than +0 to specify a time zone, as the documentation
requires four digits.
Jim Meyering [Tue, 20 Jan 2004 09:14:31 +0000 (09:14 +0000)]
*** empty log message ***
Jim Meyering [Tue, 20 Jan 2004 09:14:21 +0000 (09:14 +0000)]
Run envvar-check in case SIMPLE_BACKUP_SUFFIX is set.