platform/upstream/coreutils.git
24 years agoArrange to call close_stdout upon exit. Don't close stdout explicitly.
Jim Meyering [Sat, 20 May 2000 22:04:16 +0000 (22:04 +0000)]
Arrange to call close_stdout upon exit.  Don't close stdout explicitly.

24 years agoArrange to call close_stdout upon exit. Don't close stdout explicitly.
Jim Meyering [Sat, 20 May 2000 22:03:55 +0000 (22:03 +0000)]
Arrange to call close_stdout upon exit.  Don't close stdout explicitly.

24 years agoArrange to call close_stdout upon exit. Don't close stdout explicitly.
Jim Meyering [Sat, 20 May 2000 22:03:12 +0000 (22:03 +0000)]
Arrange to call close_stdout upon exit.  Don't close stdout explicitly.
(but set exit status and file name, too)

24 years ago.
Jim Meyering [Sat, 20 May 2000 21:48:55 +0000 (21:48 +0000)]
.

24 years ago*** empty log message *** FILEUTILS-4_0s
Jim Meyering [Sat, 20 May 2000 15:49:03 +0000 (15:49 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 15:46:52 +0000 (15:46 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 15:45:10 +0000 (15:45 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 15:43:44 +0000 (15:43 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 15:39:13 +0000 (15:39 +0000)]
*** empty log message ***

24 years agoadd format args to match new %lu directives
Jim Meyering [Sat, 20 May 2000 15:37:26 +0000 (15:37 +0000)]
add format args to match new %lu directives

24 years agotweak warning diagnostic
Jim Meyering [Sat, 20 May 2000 12:41:13 +0000 (12:41 +0000)]
tweak warning diagnostic

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:46:19 +0000 (09:46 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_HUMAN): New macro.
Jim Meyering [Sat, 20 May 2000 09:46:14 +0000 (09:46 +0000)]
(jm_PREREQ_HUMAN): New macro.
(jm_PREREQ): Use it.

24 years ago(TESTS): Add i-2.
Jim Meyering [Sat, 20 May 2000 09:45:08 +0000 (09:45 +0000)]
(TESTS): Add i-2.

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:44:46 +0000 (09:44 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:44:20 +0000 (09:44 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:43:40 +0000 (09:43 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:35:13 +0000 (09:35 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sat, 20 May 2000 09:31:14 +0000 (09:31 +0000)]
.

24 years ago.
Jim Meyering [Sat, 20 May 2000 09:30:01 +0000 (09:30 +0000)]
.

24 years ago.
Jim Meyering [Sat, 20 May 2000 09:24:29 +0000 (09:24 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 20 May 2000 09:23:48 +0000 (09:23 +0000)]
*** empty log message ***

24 years ago(struct File_spec) [have_device, st_dev]: New members
Jim Meyering [Sat, 20 May 2000 09:23:41 +0000 (09:23 +0000)]
(struct File_spec) [have_device, st_dev]:  New members

24 years agoSave device number as well as inode number for each directory.
Jim Meyering [Sat, 20 May 2000 09:23:27 +0000 (09:23 +0000)]
Save device number as well as inode number for each directory.

(struct active_dir_ent) [st_dev]: New member.
[st_ino]: Rename from `inum'.
(make_active_dir_ent) [device]: New parameter.
(hash_compare_active_dir_ents): Compare using SAME_INODE macro.
(fspec_init_common): New function, factored out.
(fspec_init_file): Initialize have_device member.
(fspec_get_full_mode): Remove parameter.  Update caller.
Set have_device and st_dev members.

24 years agoadd RUN_EXPENSIVE_TESTS junk
Jim Meyering [Sat, 20 May 2000 09:09:18 +0000 (09:09 +0000)]
add RUN_EXPENSIVE_TESTS junk

24 years agodon't use $test
Jim Meyering [Sat, 20 May 2000 08:52:03 +0000 (08:52 +0000)]
don't use $test

24 years agofail if final rm fails
Jim Meyering [Sat, 20 May 2000 08:48:39 +0000 (08:48 +0000)]
fail if final rm fails

24 years agoClean up.
Jim Meyering [Sat, 20 May 2000 08:42:44 +0000 (08:42 +0000)]
Clean up.

24 years agoreorder so as not to use `head -c N'
Jim Meyering [Sat, 20 May 2000 08:11:51 +0000 (08:11 +0000)]
reorder so as not to use `head -c N'

24 years ago(LC_ALL): Set it unconditionally.
Jim Meyering [Fri, 19 May 2000 22:37:45 +0000 (22:37 +0000)]
(LC_ALL): Set it unconditionally.

24 years agowarn the user it will take a while
Jim Meyering [Fri, 19 May 2000 07:12:09 +0000 (07:12 +0000)]
warn the user it will take a while

24 years agoput hash at the end of the list
Jim Meyering [Fri, 19 May 2000 07:10:09 +0000 (07:10 +0000)]
put hash at the end of the list

24 years ago(rm): Combine adjacent fputc and fprintf.
Jim Meyering [Thu, 18 May 2000 21:10:55 +0000 (21:10 +0000)]
(rm): Combine adjacent fputc and fprintf.

24 years agoremove some parens from some cpp lines
Jim Meyering [Thu, 18 May 2000 14:56:42 +0000 (14:56 +0000)]
remove some parens from some cpp lines

24 years ago(remove_dir): Detect (and fail upon) attempt to subvert a running `rm -r'.
Jim Meyering [Thu, 18 May 2000 14:49:34 +0000 (14:49 +0000)]
(remove_dir): Detect (and fail upon) attempt to subvert a running `rm -r'.
Reported by Morten Welinder.

24 years ago.
Jim Meyering [Thu, 18 May 2000 14:28:09 +0000 (14:28 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Thu, 18 May 2000 14:26:19 +0000 (14:26 +0000)]
*** empty log message ***

24 years ago(TESTS): Add hash.
Jim Meyering [Thu, 18 May 2000 14:26:00 +0000 (14:26 +0000)]
(TESTS): Add hash.

24 years ago*** empty log message ***
Jim Meyering [Thu, 18 May 2000 14:24:58 +0000 (14:24 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Thu, 18 May 2000 11:12:39 +0000 (11:12 +0000)]
*** empty log message ***

24 years ago(hash_rehash): Fix a nasty bug: copy the free entry list
Jim Meyering [Thu, 18 May 2000 11:06:39 +0000 (11:06 +0000)]
(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.

24 years ago*** empty log message ***
Jim Meyering [Wed, 17 May 2000 12:21:02 +0000 (12:21 +0000)]
*** empty log message ***

24 years agotweak comment
Jim Meyering [Wed, 17 May 2000 12:19:39 +0000 (12:19 +0000)]
tweak comment

24 years ago*** empty log message ***
Jim Meyering [Tue, 16 May 2000 14:42:22 +0000 (14:42 +0000)]
*** empty log message ***

24 years ago<sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
Jim Meyering [Tue, 16 May 2000 14:36:55 +0000 (14:36 +0000)]
<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.

24 years ago*** empty log message ***
Jim Meyering [Mon, 15 May 2000 20:42:08 +0000 (20:42 +0000)]
*** empty log message ***

24 years ago(do_link): Use complete strings in diagnostics so they
Jim Meyering [Mon, 15 May 2000 20:41:52 +0000 (20:41 +0000)]
(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.

24 years ago*** empty log message ***
Jim Meyering [Mon, 15 May 2000 10:22:01 +0000 (10:22 +0000)]
*** empty log message ***

24 years ago(close_stdout_set_file_name): Declare.
Jim Meyering [Mon, 15 May 2000 10:21:56 +0000 (10:21 +0000)]
(close_stdout_set_file_name): Declare.

24 years ago(close_stdout_set_file_name): New function.
Jim Meyering [Mon, 15 May 2000 10:21:25 +0000 (10:21 +0000)]
(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.

24 years ago.
Jim Meyering [Mon, 15 May 2000 08:00:19 +0000 (08:00 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Mon, 15 May 2000 07:18:44 +0000 (07:18 +0000)]
*** empty log message ***

24 years agoSet LC_ALL to `C' to avoid failure when the
Jim Meyering [Mon, 15 May 2000 07:18:38 +0000 (07:18 +0000)]
Set LC_ALL to `C' to avoid failure when the
current locale is not C (POSIX).  From Matthew Clarke.

24 years ago*** empty log message ***
Jim Meyering [Mon, 15 May 2000 07:18:17 +0000 (07:18 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 15 May 2000 07:11:30 +0000 (07:11 +0000)]
*** empty log message ***

24 years ago(version_etc_copyright): Update the copyright string
Jim Meyering [Mon, 15 May 2000 07:11:16 +0000 (07:11 +0000)]
(version_etc_copyright): Update the copyright string
that goes into all --version output.

24 years ago(test_vector): Skip the %c test on SunOS4 systems.
Jim Meyering [Mon, 15 May 2000 07:08:38 +0000 (07:08 +0000)]
(test_vector): Skip the %c test on SunOS4 systems.
Suggested by Paul Eggert.  Reported by Volker Borchert.

24 years ago*** empty log message ***
Jim Meyering [Sat, 13 May 2000 06:51:51 +0000 (06:51 +0000)]
*** empty log message ***

24 years agoArrange to call close_stdout only upon exit.
Jim Meyering [Sat, 13 May 2000 06:49:53 +0000 (06:49 +0000)]
Arrange to call close_stdout only upon exit.

24 years agoInclude closeout.h.
Jim Meyering [Sat, 13 May 2000 06:46:55 +0000 (06:46 +0000)]
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.

24 years ago*** empty log message ***
Jim Meyering [Fri, 12 May 2000 22:39:10 +0000 (22:39 +0000)]
*** empty log message ***

24 years agoDetect and report write failure of --help/--version.
Jim Meyering [Fri, 12 May 2000 22:38:58 +0000 (22:38 +0000)]
Detect and report write failure of --help/--version.

24 years ago*** empty log message ***
Jim Meyering [Fri, 12 May 2000 20:40:47 +0000 (20:40 +0000)]
*** empty log message ***

24 years ago(copy_internal): Fix force and interactive tests.
Jim Meyering [Fri, 12 May 2000 20:40:39 +0000 (20:40 +0000)]
(copy_internal): Fix force and interactive tests.

24 years agoUnlike for mv, -i doesn't cancel the effect of -f
Jim Meyering [Fri, 12 May 2000 20:39:34 +0000 (20:39 +0000)]
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'.

24 years agoInterpret as decimal, even if number starts with 0.
Jim Meyering [Fri, 12 May 2000 20:31:39 +0000 (20:31 +0000)]
Interpret as decimal, even if number starts with 0.

24 years ago*** empty log message ***
Jim Meyering [Fri, 12 May 2000 20:30:28 +0000 (20:30 +0000)]
*** empty log message ***

24 years ago(string_to_integer): Restrict base to 10.
Jim Meyering [Fri, 12 May 2000 20:30:22 +0000 (20:30 +0000)]
(string_to_integer): Restrict base to 10.

24 years agotest new option
Jim Meyering [Fri, 12 May 2000 08:56:03 +0000 (08:56 +0000)]
test new option

24 years ago*** empty log message ***
Jim Meyering [Fri, 12 May 2000 08:55:43 +0000 (08:55 +0000)]
*** empty log message ***

24 years agoNew option: --first-only
Jim Meyering [Fri, 12 May 2000 08:55:13 +0000 (08:55 +0000)]
New option: --first-only
(anonymous enum) [CONVERT_FIRST_ONLY_OPTION]: Define.
(long_options): Add `first-only'.
(main): Handle new option.

24 years ago*** empty log message ***
Jim Meyering [Thu, 11 May 2000 09:19:40 +0000 (09:19 +0000)]
*** empty log message ***

24 years agomake the new tests a little smaller
Jim Meyering [Thu, 11 May 2000 08:30:09 +0000 (08:30 +0000)]
make the new tests a little smaller

24 years agoNew tests.
Jim Meyering [Thu, 11 May 2000 08:28:51 +0000 (08:28 +0000)]
New tests.

24 years ago*** empty log message ***
Jim Meyering [Thu, 11 May 2000 08:24:49 +0000 (08:24 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Thu, 11 May 2000 07:24:35 +0000 (07:24 +0000)]
*** empty log message ***

24 years ago(usage): Don't call close_stdout_status directly,
Jim Meyering [Thu, 11 May 2000 07:24:05 +0000 (07:24 +0000)]
(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.

24 years ago(usage): Don't call close_stdout_status directly,
Jim Meyering [Thu, 11 May 2000 07:23:42 +0000 (07:23 +0000)]
(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.

24 years ago(usage): Don't call close_stdout directly, since that
Jim Meyering [Thu, 11 May 2000 07:21:33 +0000 (07:21 +0000)]
(usage): Don't call close_stdout directly, since that
didn't cover --version output.
(main):  Arrange to call close_stdout via atexit, instead.

24 years ago.
Jim Meyering [Thu, 11 May 2000 07:17:36 +0000 (07:17 +0000)]
.

24 years agoappend in subshell so we don't see this diagnostic:
Jim Meyering [Wed, 10 May 2000 22:33:06 +0000 (22:33 +0000)]
append in subshell so we don't see this diagnostic:
  ./remove: t-shred.11626/file: Permission denied

24 years ago.
Jim Meyering [Wed, 10 May 2000 16:40:30 +0000 (16:40 +0000)]
.

24 years ago(close_stdout_set_status): Declare.
Jim Meyering [Wed, 10 May 2000 16:39:53 +0000 (16:39 +0000)]
(close_stdout_set_status): Declare.

24 years ago[default_exit_status]: New file-scoped variable.
Jim Meyering [Wed, 10 May 2000 16:39:35 +0000 (16:39 +0000)]
[default_exit_status]: New file-scoped variable.
(close_stdout_set_status): New function.

24 years agoInclude sys/types.h in shred.c before including
Jim Meyering [Tue, 9 May 2000 20:27:54 +0000 (20:27 +0000)]
Include sys/types.h in shred.c before including
sys/stat.h or system.h.  From John David Anglin.

24 years agoback out last change -- the two should be separate
Jim Meyering [Tue, 9 May 2000 20:27:11 +0000 (20:27 +0000)]
back out last change -- the two should be separate

24 years ago*** empty log message ***
Jim Meyering [Tue, 9 May 2000 20:26:04 +0000 (20:26 +0000)]
*** empty log message ***

24 years agoInclude sys/types.h in shred.c before including
Jim Meyering [Tue, 9 May 2000 20:25:58 +0000 (20:25 +0000)]
Include sys/types.h in shred.c before including
sys/stat.h or system.h.  From John David Anglin.

24 years ago*** empty log message ***
Jim Meyering [Tue, 9 May 2000 12:37:47 +0000 (12:37 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 9 May 2000 11:00:13 +0000 (11:00 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 9 May 2000 06:32:31 +0000 (06:32 +0000)]
*** empty log message ***

24 years ago(case_GETOPT_VERSION_CHAR): Don't call close_stdout.
Jim Meyering [Tue, 9 May 2000 06:32:24 +0000 (06:32 +0000)]
(case_GETOPT_VERSION_CHAR): Don't call close_stdout.

24 years ago*** empty log message ***
Jim Meyering [Tue, 9 May 2000 05:50:09 +0000 (05:50 +0000)]
*** empty log message ***

24 years agorenamed to libintl.m4
Jim Meyering [Tue, 9 May 2000 05:44:51 +0000 (05:44 +0000)]
renamed to libintl.m4

24 years agorenamed from gettext.m4
Jim Meyering [Tue, 9 May 2000 05:44:51 +0000 (05:44 +0000)]
renamed from gettext.m4

24 years ago*** empty log message ***
Jim Meyering [Mon, 8 May 2000 16:54:55 +0000 (16:54 +0000)]
*** empty log message ***

24 years agoDon't use touch in root test. Instead, append to
Jim Meyering [Mon, 8 May 2000 16:53:36 +0000 (16:53 +0000)]
Don't use touch in root test.  Instead, append to
the test file, since now touch operates even on files which deny owner
write access.

24 years ago*** empty log message *** SH-UTILS-2_0i
Jim Meyering [Mon, 8 May 2000 12:16:11 +0000 (12:16 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 8 May 2000 12:01:46 +0000 (12:01 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Mon, 8 May 2000 11:59:34 +0000 (11:59 +0000)]
.