platform/upstream/coreutils.git
21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:58 +0000 (15:45 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:32 +0000 (15:45 +0000)]
*** empty log message ***

21 years ago(write_counts): Add a comment.
Jim Meyering [Sun, 20 Jul 2003 15:45:29 +0000 (15:45 +0000)]
(write_counts): Add a comment.
(wc): Rename `file' parameter.
Set new local, `file', to be the file name, or (when it's NULL)
_("standard output") so that all uses of `file' use the proper value.
Use STREQ, not strcmp.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:25:02 +0000 (15:25 +0000)]
*** empty log message ***

21 years agoAdjust to the new output widths.
Jim Meyering [Sun, 20 Jul 2003 15:24:52 +0000 (15:24 +0000)]
Adjust to the new output widths.

21 years agowc count field widths now are heuristically adjusted depending
Jim Meyering [Sun, 20 Jul 2003 15:24:21 +0000 (15:24 +0000)]
wc count field widths now are heuristically adjusted depending
on the input size, if known.  If only one count is printed, it
is guaranteed to be printed without leading spaces.

Previously, wc did not align the count fields if
POSIXLY_CORRECT was set, but POSIX did not actually require
this undesirable behavior, so it has been removed.

* doc/coreutils.texi (wc invocation): Likewise.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:22:42 +0000 (15:22 +0000)]
*** empty log message ***

21 years ago(number_width): New var.
Jim Meyering [Sun, 20 Jul 2003 15:22:25 +0000 (15:22 +0000)]
(number_width): New var.
(posixly_correct): Remove.
(struct fstatus): New struct.
(write_counts): Output fields of width number_width.
Do not worry about POSIXLY_CORRECT.
Use null file, not empty-string file, to denote stdin,
since "" is a valid file name on some hosts.
(wc, wc_file): New arg fstatus.  Use it to avoid invoking fstat
if possible.
(wc):  Avoid problems if end_pos - current_pos overflows.
Do not print odd message if stdin has a read error.
(get_input_fstatus, compute_number_width): New functions.
(main): Use them to implement the new behavior.
Ignore POSIXLY_CORRECT.

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:19:12 +0000 (11:19 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:18:12 +0000 (11:18 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:17:51 +0000 (11:17 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:17:26 +0000 (11:17 +0000)]
convert each 8-space prefix to a TAB

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 06:30:06 +0000 (06:30 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:38:28 +0000 (05:38 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:36:10 +0000 (05:36 +0000)]
*** empty log message ***

21 years agofrom gnulib
Jim Meyering [Sun, 20 Jul 2003 05:35:54 +0000 (05:35 +0000)]
from gnulib

21 years ago(jm_MACROS): Invoke gl_MEMCOLL.
Jim Meyering [Sun, 20 Jul 2003 05:35:38 +0000 (05:35 +0000)]
(jm_MACROS): Invoke gl_MEMCOLL.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 17:30:49 +0000 (17:30 +0000)]
*** empty log message ***

21 years agoRestore definition of $verbose.
Jim Meyering [Sat, 19 Jul 2003 12:00:38 +0000 (12:00 +0000)]
Restore definition of $verbose.

21 years agoDon't create temporary directory -- we don't use it.
Jim Meyering [Sat, 19 Jul 2003 11:59:12 +0000 (11:59 +0000)]
Don't create temporary directory -- we don't use it.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:59:02 +0000 (11:59 +0000)]
*** empty log message ***

21 years agoremove now-redundant VERSION check
Jim Meyering [Sat, 19 Jul 2003 11:54:39 +0000 (11:54 +0000)]
remove now-redundant VERSION check

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:47:22 +0000 (11:47 +0000)]
*** empty log message ***

21 years agoDon't open-code test for UID != 0.
Jim Meyering [Sat, 19 Jul 2003 11:47:17 +0000 (11:47 +0000)]
Don't open-code test for UID != 0.
Use priv-check's require-non-root instead.
Update to use newer framework.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:39:27 +0000 (11:39 +0000)]
*** empty log message ***

21 years ago(expected_failure_status_expr): Record that
Jim Meyering [Sat, 19 Jul 2003 11:39:22 +0000 (11:39 +0000)]
(expected_failure_status_expr): Record that
expr exits with status of 3 for e.g., a write error.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:19:16 +0000 (11:19 +0000)]
*** empty log message ***

21 years agoUse `id -u' to see if we're running as root,
Jim Meyering [Sat, 19 Jul 2003 11:19:12 +0000 (11:19 +0000)]
Use `id -u' to see if we're running as root,
rather than trying go write to an write-protected file.
When running as root, ensure $NON_ROOT_USERNAME is valid.
When running as root with `require-non-root', ensure that `.'
is writable by $NON_ROOT_USERNAME, then reinvoke $0 set-user-ID
to $NON_ROOT_USERNAME.  If `.' is not writable, then skip the test.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 08:17:16 +0000 (08:17 +0000)]
*** empty log message ***

21 years agoInclude "exitfail.h".
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.

21 years agoInclude "exitfail.h".
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.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 08:09:01 +0000 (08:09 +0000)]
*** empty log message ***

21 years agoLikewise. Include "closeout.h" right after config.h,
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>.

21 years ago(close_stdout_set_status, close_stdout_status): Remove.
Jim Meyering [Sat, 19 Jul 2003 08:05:44 +0000 (08:05 +0000)]
(close_stdout_set_status, close_stdout_status): Remove.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 18:08:08 +0000 (18:08 +0000)]
*** empty log message ***

21 years ago(memcoll) [!HAVE_STRCOLL]: Clear errno.
Jim Meyering [Fri, 18 Jul 2003 18:07:48 +0000 (18:07 +0000)]
(memcoll) [!HAVE_STRCOLL]: Clear errno.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 09:58:59 +0000 (09:58 +0000)]
*** empty log message ***

21 years agoUpdate to use newer framework.
Jim Meyering [Fri, 18 Jul 2003 09:48:16 +0000 (09:48 +0000)]
Update to use newer framework.

21 years agoUse $srcdir/../priv-check, create a temporary
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.

21 years agoUse $srcdir/../priv-check, rather than
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:53:32 +0000 (08:53 +0000)]
*** empty log message ***

21 years ago(main): Use close_stdout via atexit.
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.

21 years ago(usage): Don't call close_stdout here.
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:38:29 +0000 (08:38 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:12:00 +0000 (08:12 +0000)]
*** empty log message ***

21 years ago(--help/--version vs. /dev/full): Special-case
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'.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 08:01:36 +0000 (08:01 +0000)]
*** empty log message ***

21 years ago(101, 102): Update tests of -c accordingly.
Jim Meyering [Fri, 18 Jul 2003 08:01:26 +0000 (08:01 +0000)]
(101, 102): Update tests of -c accordingly.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:50:45 +0000 (07:50 +0000)]
*** empty log message ***

21 years ago(expr invocation): Exit status is 2 if the
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:49:36 +0000 (07:49 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:48:37 +0000 (07:48 +0000)]
*** empty log message ***

21 years ago(writeline): Use a SPACE, not a TAB between the
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:46:27 +0000 (07:46 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:29:45 +0000 (07:29 +0000)]
*** empty log message ***

21 years agoAdd tests when exit status is 2.
Jim Meyering [Fri, 18 Jul 2003 07:29:01 +0000 (07:29 +0000)]
Add tests when exit status is 2.

21 years agoInvalid value exits with status 3, not 2.
Jim Meyering [Fri, 18 Jul 2003 07:25:39 +0000 (07:25 +0000)]
Invalid value exits with status 3, not 2.

21 years agoInclude "exitfail.h".
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.

21 years agoInclude "exitfail.h", "quotearg.h".
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.

21 years ago(NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 07:12:27 +0000 (07:12 +0000)]
*** empty log message ***

21 years agoMerge with gnulib. Use a single exit_failure variable rather
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.

21 years agoMerge with gnulib. Use a single exit_failure variable rather
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.

21 years agoMerge with gnulib. Use a single exit_failure variable rather
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.

21 years agoMerge with gnulib. Use a single exit_failure variable rather
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 06:59:33 +0000 (06:59 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jul 2003 06:50:03 +0000 (06:50 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Fri, 18 Jul 2003 06:34:14 +0000 (06:34 +0000)]
.

21 years ago.
Jim Meyering [Thu, 17 Jul 2003 22:27:44 +0000 (22:27 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:51:08 +0000 (20:51 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:50:30 +0000 (20:50 +0000)]
*** empty log message ***

21 years agoUse 5.0.90, rather than 5.0.2, per GNU maintainer
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:07:47 +0000 (20:07 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 20:07:37 +0000 (20:07 +0000)]
*** empty log message ***

21 years agoThis script would have caught at least two recent bugs: those in [ and kill.
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.

21 years ago(all_programs): Define.
Jim Meyering [Wed, 16 Jul 2003 19:51:05 +0000 (19:51 +0000)]
(all_programs): Define.
(TESTS_ENVIRONMENT): Use it.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 19:43:04 +0000 (19:43 +0000)]
*** empty log message ***

21 years ago(main): Fix bug introduced on 2003-05-10 (for 5.0.1)
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.

21 years ago.
Jim Meyering [Wed, 16 Jul 2003 10:54:52 +0000 (10:54 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 10:28:59 +0000 (10:28 +0000)]
*** empty log message ***

21 years ago(integer_expected_error): Improve diagnostic -- now,
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.

21 years agoRemove setuidgid-related code. Moved to ../priv-check.
Jim Meyering [Wed, 16 Jul 2003 08:31:04 +0000 (08:31 +0000)]
Remove setuidgid-related code.  Moved to ../priv-check.

21 years agoMove setuidgid-related and
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 07:59:08 +0000 (07:59 +0000)]
*** empty log message ***

21 years agoUpdate section on testing as `root'.
Jim Meyering [Wed, 16 Jul 2003 07:59:05 +0000 (07:59 +0000)]
Update section on testing as `root'.
Suggestion from Paul Jarc.

21 years ago(AUTHORS): Replace 3-letter usernames with the actual
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 06:43:05 +0000 (06:43 +0000)]
*** empty log message ***

21 years agoRunning `[' with no arguments would evoke a segfault.
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.

21 years ago(AM_CPPFLAGS): Rename from `INCLUDES', to avoid warning from automake -Wall.
Jim Meyering [Wed, 16 Jul 2003 06:33:39 +0000 (06:33 +0000)]
(AM_CPPFLAGS): Rename from `INCLUDES', to avoid warning from automake -Wall.

21 years ago(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.

21 years agobump to 5.0.2
Jim Meyering [Wed, 16 Jul 2003 06:10:55 +0000 (06:10 +0000)]
bump to 5.0.2

21 years ago*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 22:00:42 +0000 (22:00 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Tue, 15 Jul 2003 13:39:02 +0000 (13:39 +0000)]
.

21 years ago*** empty log message *** COREUTILS-5_0_1 v5.0.1
Jim Meyering [Tue, 15 Jul 2003 06:55:22 +0000 (06:55 +0000)]
*** empty log message ***

21 years ago(print_changelog_deltas): Change the .sig suffix to .asc here, too.
Jim Meyering [Tue, 15 Jul 2003 06:55:19 +0000 (06:55 +0000)]
(print_changelog_deltas): Change the .sig suffix to .asc here, too.

21 years ago.
Jim Meyering [Tue, 15 Jul 2003 06:52:10 +0000 (06:52 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 06:39:54 +0000 (06:39 +0000)]
*** empty log message ***

21 years ago(uname invocation): Explain the POSIX terminology behind uname -m and uname -s.
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.

21 years ago.
Jim Meyering [Tue, 15 Jul 2003 06:21:13 +0000 (06:21 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 06:07:10 +0000 (06:07 +0000)]
*** empty log message ***