Jim Meyering [Sat, 19 Jul 2003 08:17:06 +0000 (08:17 +0000)]
Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
Jim Meyering [Sat, 19 Jul 2003 08:16:38 +0000 (08:16 +0000)]
Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
Jim Meyering [Sat, 19 Jul 2003 08:09:01 +0000 (08:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 08:08:56 +0000 (08:08 +0000)]
Likewise. Include "closeout.h" right after config.h,
to test that it can stand by itself. Include "exitfail.h".
Clients should set exit_failure instead.
(EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
Jim Meyering [Sat, 19 Jul 2003 08:05:44 +0000 (08:05 +0000)]
(close_stdout_set_status, close_stdout_status): Remove.
Jim Meyering [Fri, 18 Jul 2003 18:08:08 +0000 (18:08 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 18:07:48 +0000 (18:07 +0000)]
(memcoll) [!HAVE_STRCOLL]: Clear errno.
Jim Meyering [Fri, 18 Jul 2003 09:58:59 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 09:48:16 +0000 (09:48 +0000)]
Update to use newer framework.
Jim Meyering [Fri, 18 Jul 2003 09:12:23 +0000 (09:12 +0000)]
Use $srcdir/../priv-check, create a temporary
directory, and remove Perl-coded `you may not run as root' test.
Jim Meyering [Fri, 18 Jul 2003 09:05:49 +0000 (09:05 +0000)]
Use $srcdir/../priv-check, rather than
hard-coding something not quite equivalent. Reported by Paul Jarc.
Jim Meyering [Fri, 18 Jul 2003 08:53:32 +0000 (08:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:53:05 +0000 (08:53 +0000)]
(main): Use close_stdout via atexit.
Now `sort --version' and `sort --help' fail, as they should
when their output is redirected to /dev/full.
Jim Meyering [Fri, 18 Jul 2003 08:38:43 +0000 (08:38 +0000)]
(usage): Don't call close_stdout here.
(main): Use close_stdout via atexit.
Now `su --version > /dev/full' fails, as it should.
Somehow, the change of 2000-05-07 that purports to fix this
was not checked in.
Jim Meyering [Fri, 18 Jul 2003 08:38:29 +0000 (08:38 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:12:00 +0000 (08:12 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:11:55 +0000 (08:11 +0000)]
(--help/--version vs. /dev/full): Special-case
`[' to protect it from expected_failure_status-`eval'.
Jim Meyering [Fri, 18 Jul 2003 08:01:36 +0000 (08:01 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:01:26 +0000 (08:01 +0000)]
(101, 102): Update tests of -c accordingly.
Jim Meyering [Fri, 18 Jul 2003 07:50:45 +0000 (07:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:50:39 +0000 (07:50 +0000)]
(expr invocation): Exit status is 2 if the
expression is syntactically invalid, 3 if there is some other error.
This change is for conformance to POSIX.
Jim Meyering [Fri, 18 Jul 2003 07:49:36 +0000 (07:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:48:37 +0000 (07:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:47:05 +0000 (07:47 +0000)]
(writeline): Use a SPACE, not a TAB between the
count and the corresponding line, as required by POSIX.
Jim Meyering [Fri, 18 Jul 2003 07:46:27 +0000 (07:46 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:29:45 +0000 (07:29 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:29:01 +0000 (07:29 +0000)]
Add tests when exit status is 2.
Jim Meyering [Fri, 18 Jul 2003 07:25:39 +0000 (07:25 +0000)]
Invalid value exits with status 3, not 2.
Jim Meyering [Fri, 18 Jul 2003 07:23:38 +0000 (07:23 +0000)]
Include "exitfail.h".
(main): Set exit_failure, not xalloc_exit_failure and xmemcoll_exit_failure.
Jim Meyering [Fri, 18 Jul 2003 07:22:38 +0000 (07:22 +0000)]
Include "exitfail.h", "quotearg.h".
(EXPR_INVALID, EXPR_ERROR): New constants.
(nomoreargs, null, toarith, nextarg): Return bool, not int.
(syntax_error): New function, exiting with status 2. Use it
insteading of printing "syntax error" ourselves.
(main): Initialize exit_failure to EXPR_ERROR.
Exit with EXPR_INVALID on syntax error (too few arguments).
(nextarg): Use strcmp, not strcoll; strcoll might return
an undesirable 0, or might fail.
(docolon, eval4, eval3): Exit with status 3 on invalid argument type
or other such error.
(eval2): Report an error if strcoll fails in a string comparison.
Jim Meyering [Fri, 18 Jul 2003 07:18:54 +0000 (07:18 +0000)]
(NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):
Use an anonymous `enum', rather than #define.
Jim Meyering [Fri, 18 Jul 2003 07:12:27 +0000 (07:12 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:12:20 +0000 (07:12 +0000)]
Merge ... gnulib. Use a single exit_failure variable rather
than a separate one for each module.
Jim Meyering [Fri, 18 Jul 2003 07:11:50 +0000 (07:11 +0000)]
Merge ... gnulib. Use a single exit_failure variable rather
than a separate one for each module.
Jim Meyering [Fri, 18 Jul 2003 07:10:53 +0000 (07:10 +0000)]
Merge ... gnulib. Use a single exit_failure variable rather
than a separate one for each module.
Jim Meyering [Fri, 18 Jul 2003 07:02:34 +0000 (07:02 +0000)]
Merge ... gnulib. Use a single exit_failure variable rather
than a separate one for each module.
Jim Meyering [Fri, 18 Jul 2003 06:59:33 +0000 (06:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 06:50:03 +0000 (06:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 06:34:14 +0000 (06:34 +0000)]
.
Jim Meyering [Thu, 17 Jul 2003 22:27:44 +0000 (22:27 +0000)]
.
Jim Meyering [Wed, 16 Jul 2003 20:51:08 +0000 (20:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:50:30 +0000 (20:50 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:50:21 +0000 (20:50 +0000)]
Use 5.0.90, rather than 5.0.2, per GNU maintainer
guidelines. The next non-beta release will be 5.1.
Jim Meyering [Wed, 16 Jul 2003 20:07:47 +0000 (20:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:07:37 +0000 (20:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 19:54:13 +0000 (19:54 +0000)]
This script would have caught at least two recent bugs: those in [ and kill.
Revive this script.
It wasn't doing anything useful, since $all_programs wasn't being
defined by the invoking Makefile.am.
Reflect that nohup is no longer a script, so don't exclude it.
Add framework to handle the programs added since it was last run:
kill, stat, unlink, [, link, readlink.
Fix path-related problems deriving from the move of this script
from src/ to its present location.
Jim Meyering [Wed, 16 Jul 2003 19:51:05 +0000 (19:51 +0000)]
(all_programs): Define.
(TESTS_ENVIRONMENT): Use it.
Jim Meyering [Wed, 16 Jul 2003 19:43:04 +0000 (19:43 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 19:42:34 +0000 (19:42 +0000)]
(main): Fix bug introduced on 2003-05-10 (for 5.0.1)
whereby kill would always attempt to operate on argv[0] and fail.
Jim Meyering [Wed, 16 Jul 2003 10:54:52 +0000 (10:54 +0000)]
.
Jim Meyering [Wed, 16 Jul 2003 10:28:59 +0000 (10:28 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 10:28:52 +0000 (10:28 +0000)]
(integer_expected_error): Improve diagnostic -- now,
it also matches the one from bash's builtin test.
(binary_operator): Add \n at end of diagnostic.
Jim Meyering [Wed, 16 Jul 2003 08:31:04 +0000 (08:31 +0000)]
Remove setuidgid-related code. Moved to ../priv-check.
Jim Meyering [Wed, 16 Jul 2003 08:30:06 +0000 (08:30 +0000)]
Move setuidgid-related and
NON_ROOT_USERNAME-checking code to this file.
Jim Meyering [Wed, 16 Jul 2003 07:59:08 +0000 (07:59 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 07:59:05 +0000 (07:59 +0000)]
Update section on testing as `root'.
Suggestion from Paul Jarc.
Jim Meyering [Wed, 16 Jul 2003 06:54:33 +0000 (06:54 +0000)]
(AUTHORS): Replace 3-letter usernames with the actual
names of authors that I just found in bash's builtins/test.def.
Jim Meyering [Wed, 16 Jul 2003 06:43:05 +0000 (06:43 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 06:43:02 +0000 (06:43 +0000)]
Running `[' with no arguments would evoke a segfault.
(main) [LBRACKET]: Move initialization of argv to
precede potential use via test_syntax_error.
Jim Meyering [Wed, 16 Jul 2003 06:33:39 +0000 (06:33 +0000)]
(AM_CPPFLAGS): Rename from `INCLUDES', to avoid warning from automake -Wall.
Jim Meyering [Wed, 16 Jul 2003 06:33:09 +0000 (06:33 +0000)]
(AM_CPPFLAGS): Rename from `INCLUDES', to avoid warning from automake -Wall.
Jim Meyering [Wed, 16 Jul 2003 06:10:55 +0000 (06:10 +0000)]
bump to 5.0.2
Jim Meyering [Tue, 15 Jul 2003 22:00:42 +0000 (22:00 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 13:39:02 +0000 (13:39 +0000)]
.
Jim Meyering [Tue, 15 Jul 2003 06:55:22 +0000 (06:55 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 06:55:19 +0000 (06:55 +0000)]
(print_changelog_deltas): Change the .sig suffix to .asc here, too.
Jim Meyering [Tue, 15 Jul 2003 06:52:10 +0000 (06:52 +0000)]
.
Jim Meyering [Tue, 15 Jul 2003 06:39:54 +0000 (06:39 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 06:39:49 +0000 (06:39 +0000)]
(uname invocation): Explain the POSIX terminology behind uname -m and uname -s.
Jim Meyering [Tue, 15 Jul 2003 06:21:13 +0000 (06:21 +0000)]
.
Jim Meyering [Tue, 15 Jul 2003 06:07:10 +0000 (06:07 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 06:06:58 +0000 (06:06 +0000)]
(%.asc): Remove target first, so gpg doesn't prompt us about it.
Jim Meyering [Tue, 15 Jul 2003 06:05:15 +0000 (06:05 +0000)]
.
Jim Meyering [Tue, 15 Jul 2003 06:05:04 +0000 (06:05 +0000)]
Remove stray `:' in first regexp.
Fix *both* tests.
Jim Meyering [Tue, 15 Jul 2003 00:01:04 +0000 (00:01 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 00:01:01 +0000 (00:01 +0000)]
(print_changelog_deltas): Relax test for matching version-number line in NEWS.
Jim Meyering [Mon, 14 Jul 2003 22:37:16 +0000 (22:37 +0000)]
.
Jim Meyering [Mon, 14 Jul 2003 18:58:28 +0000 (18:58 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jul 2003 18:58:25 +0000 (18:58 +0000)]
Add copyright.
Jim Meyering [Mon, 14 Jul 2003 18:39:37 +0000 (18:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jul 2003 16:48:37 +0000 (16:48 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jul 2003 16:48:31 +0000 (16:48 +0000)]
Correct comment on first line.
Jim Meyering [Mon, 14 Jul 2003 06:30:32 +0000 (06:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jul 2003 06:29:45 +0000 (06:29 +0000)]
.
Jim Meyering [Sun, 13 Jul 2003 22:22:39 +0000 (22:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 22:22:18 +0000 (22:22 +0000)]
(%.asc): Renamed from %.sig.
Generate and use ascii-armored signatures.
Jim Meyering [Sun, 13 Jul 2003 22:15:08 +0000 (22:15 +0000)]
.
Jim Meyering [Sun, 13 Jul 2003 09:52:47 +0000 (09:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 09:52:32 +0000 (09:52 +0000)]
put makepath.c back.
Jim Meyering [Sun, 13 Jul 2003 09:38:07 +0000 (09:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 09:38:04 +0000 (09:38 +0000)]
(nohup invocation): Tell what happens when stdout is not a terminal.
Based on a suggestion from Steven Mocking.
Jim Meyering [Sun, 13 Jul 2003 09:37:45 +0000 (09:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 09:27:34 +0000 (09:27 +0000)]
add another test
Jim Meyering [Sun, 13 Jul 2003 09:25:24 +0000 (09:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 09:25:21 +0000 (09:25 +0000)]
(NOHUP_FAILURE, NOHUP_FOUND_BUT_CANNOT_INVOKE): Define.
(main): Use them.
Jim Meyering [Sun, 13 Jul 2003 09:03:20 +0000 (09:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 09:03:13 +0000 (09:03 +0000)]
(syntax-check): Move each individual check into its own target.
(syntax-check-rules): This is the list of syntax-check targets.
(sc_unmarked_diagnostics, sc_cast_of_argument_to_free):
(sc_cast_of_x_alloc_return_value, sc_space_tab):
(sc_error_exit_success, sc_xalloc_h_in_src): New targets.
Jim Meyering [Sun, 13 Jul 2003 08:46:53 +0000 (08:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 08:46:21 +0000 (08:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jul 2003 08:45:39 +0000 (08:45 +0000)]
Use @code, not (nonexistent) @function.