1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-29 21:42:00 +02:00
Commit Graph

9335 Commits

Author SHA1 Message Date
Jim Meyering 83616b114e (TESTS): Add hash. 2000-05-18 14:26:00 +00:00
Jim Meyering f01f28a92a *** empty log message *** 2000-05-18 14:24:58 +00:00
Jim Meyering ba798c5998 *** empty log message *** 2000-05-18 11:12:39 +00:00
Jim Meyering aa78add2de (hash_rehash): Fix a nasty bug: copy the free entry list
back, too, since it may have been modified by allocate_entry.
(hash_delete): Rewrite not to use both(!) the assignment operator
and the comma operator in an if-expression.
2000-05-18 11:06:39 +00:00
Jim Meyering 3cf14979b7 *** empty log message *** 2000-05-17 12:21:02 +00:00
Jim Meyering 1ca5f870b6 tweak comment 2000-05-17 12:19:39 +00:00
Jim Meyering 1cd58148cd *** empty log message *** 2000-05-16 14:42:22 +00:00
Jim Meyering a4f0b7b42e <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
Remove; no longer needed.
"quotearg.h": Add include.
(file_name): Do not bother to explicitly initialize to NULL; it's less
efficient on some hosts.
(close_stdout_status): Remove test as to whether stdout was already
closed; it breaks for the case "echo x | sort >&-".
Quote file name colons.
Do not assume that _("write error") lacks format strings.
2000-05-16 14:36:55 +00:00
Jim Meyering 71f60a998c *** empty log message *** 2000-05-15 20:42:08 +00:00
Jim Meyering f13c5ee9ce (do_link): Use complete strings in diagnostics so they
are easier to translate.  Reported by Michel Robitaille.
(main): Drop support for the case in which S_ISLNK wasn't defined.
It was broken in any case.
2000-05-15 20:41:52 +00:00
Jim Meyering 6385fbd99a *** empty log message *** 2000-05-15 10:22:01 +00:00
Jim Meyering 73417841eb (close_stdout_set_file_name): Declare. 2000-05-15 10:21:56 +00:00
Jim Meyering dba50eec49 (close_stdout_set_file_name): New function.
(close_stdout_status): Use new file-scoped global.
Return right away if fstat says the stdout file descriptor is invalid.
2000-05-15 10:21:25 +00:00
Jim Meyering 3400cc7f78 . 2000-05-15 08:00:19 +00:00
Jim Meyering 3c5405d298 *** empty log message *** 2000-05-15 07:18:44 +00:00
Jim Meyering be72ac078c Set LC_ALL to `C' to avoid failure when the
current locale is not C (POSIX).  From Matthew Clarke.
2000-05-15 07:18:38 +00:00
Jim Meyering 6d38725e21 *** empty log message *** 2000-05-15 07:18:17 +00:00
Jim Meyering 4e5d2ac6d2 *** empty log message *** 2000-05-15 07:11:30 +00:00
Jim Meyering cbd2839f1d (version_etc_copyright): Update the copyright string
that goes into all --version output.
2000-05-15 07:11:16 +00:00
Jim Meyering a3ac01b48d (test_vector): Skip the %c test on SunOS4 systems.
Suggested by Paul Eggert.  Reported by Volker Borchert.
2000-05-15 07:08:38 +00:00
Jim Meyering 00df9725bb *** empty log message *** 2000-05-13 06:51:51 +00:00
Jim Meyering 81b16373ae Arrange to call close_stdout only upon exit. 2000-05-13 06:49:53 +00:00
Jim Meyering 47827e2ec2 Include closeout.h.
(usage): Don't call close_stdout here.
(close_stdout_wrapper): New, kludgey, function and file-scoped global.
(main): Register it with atexit.
2000-05-13 06:46:55 +00:00
Jim Meyering 68c6a5d828 *** empty log message *** 2000-05-12 22:39:10 +00:00
Jim Meyering 30c412049f Detect and report write failure of --help/--version. 2000-05-12 22:38:58 +00:00
Jim Meyering f2d53500ae *** empty log message *** 2000-05-12 20:40:47 +00:00
Jim Meyering fc64ba37d4 (copy_internal): Fix force and interactive tests. 2000-05-12 20:40:39 +00:00
Jim Meyering a5c02a198b Unlike for mv, -i doesn't cancel the effect of -f
and -f doesn't cancel the effect of -i.
(main) ['f']: Don't reset `x.interactive'.
['i']: Don't reset `x.force'.
2000-05-12 20:39:34 +00:00
Jim Meyering 12bf65f915 Interpret as decimal, even if number starts with 0. 2000-05-12 20:31:39 +00:00
Jim Meyering 48ebc7d0b7 *** empty log message *** 2000-05-12 20:30:28 +00:00
Jim Meyering b0fd0aa567 (string_to_integer): Restrict base to 10. 2000-05-12 20:30:22 +00:00
Jim Meyering a1eab797d0 test new option 2000-05-12 08:56:03 +00:00
Jim Meyering 7f0b022e0d *** empty log message *** 2000-05-12 08:55:43 +00:00
Jim Meyering 1224b48d7f New option: --first-only
(anonymous enum) [CONVERT_FIRST_ONLY_OPTION]: Define.
(long_options): Add `first-only'.
(main): Handle new option.
2000-05-12 08:55:13 +00:00
Jim Meyering 3b8a52ccbe *** empty log message *** 2000-05-11 09:19:40 +00:00
Jim Meyering 605768d957 make the new tests a little smaller 2000-05-11 08:30:09 +00:00
Jim Meyering 45dcf53e6e New tests. 2000-05-11 08:28:51 +00:00
Jim Meyering 3f0c7988cf *** empty log message *** 2000-05-11 08:24:49 +00:00
Jim Meyering 51dbb91fdd *** empty log message *** 2000-05-11 07:24:35 +00:00
Jim Meyering 9590fbf43c (usage): Don't call close_stdout_status directly,
since that didn't cover --version output.
(main): Instead, call close_stdout_set_status and arrange to
call close_stdout via atexit.
2000-05-11 07:24:05 +00:00
Jim Meyering 5a3d9df9a1 (usage): Don't call close_stdout_status directly,
since that didn't cover --version output.
(main): Instead, call close_stdout_set_status and arrange to
call close_stdout via atexit.
2000-05-11 07:23:42 +00:00
Jim Meyering 70e5178bde (usage): Don't call close_stdout directly, since that
didn't cover --version output.
(main):  Arrange to call close_stdout via atexit, instead.
2000-05-11 07:21:33 +00:00
Jim Meyering c693c5940b . 2000-05-11 07:17:36 +00:00
Jim Meyering 8c8e4286b5 append in subshell so we don't see this diagnostic:
./remove: t-shred.11626/file: Permission denied
2000-05-10 22:33:06 +00:00
Jim Meyering ce8cf50e0a . 2000-05-10 16:40:30 +00:00
Jim Meyering 4071f9dcd5 (close_stdout_set_status): Declare. 2000-05-10 16:39:53 +00:00
Jim Meyering ebd41d46d8 [default_exit_status]: New file-scoped variable.
(close_stdout_set_status): New function.
2000-05-10 16:39:35 +00:00
Jim Meyering a210d7d35c Include sys/types.h in shred.c before including
sys/stat.h or system.h.  From John David Anglin.
2000-05-09 20:27:54 +00:00
Jim Meyering b9c210715c back out last change -- the two should be separate 2000-05-09 20:27:11 +00:00
Jim Meyering 101160bdf9 *** empty log message *** 2000-05-09 20:26:04 +00:00