platform/upstream/coreutils.git
20 years agoSync from gnulib.
Paul Eggert [Tue, 5 Oct 2004 06:05:20 +0000 (06:05 +0000)]
Sync from gnulib.

20 years agoRegenerate.
Paul Eggert [Mon, 4 Oct 2004 20:19:28 +0000 (20:19 +0000)]
Regenerate.

20 years agoSync from gnulib, to remove dependencies of other modules on unlocked-io.
Paul Eggert [Mon, 4 Oct 2004 20:18:43 +0000 (20:18 +0000)]
Sync from gnulib, to remove dependencies of other modules on unlocked-io.

20 years agoRegenerate.
Paul Eggert [Mon, 4 Oct 2004 04:12:53 +0000 (04:12 +0000)]
Regenerate.

20 years agoSync from gnulib.
Paul Eggert [Mon, 4 Oct 2004 04:12:18 +0000 (04:12 +0000)]
Sync from gnulib.

20 years agoSync from gnulib.
Paul Eggert [Mon, 4 Oct 2004 04:09:41 +0000 (04:09 +0000)]
Sync from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Tue, 28 Sep 2004 06:34:29 +0000 (06:34 +0000)]
*** empty log message ***

20 years ago(usage): Clarify: --retry works only with --follow=name.
Jim Meyering [Tue, 28 Sep 2004 06:34:22 +0000 (06:34 +0000)]
(usage): Clarify: --retry works only with --follow=name.
Reported by Nik A. Melchior in http://bugs.debian.org/273781.

20 years ago* src/od.c (format_address_paren): Don't output c if it's '\0'.
Paul Eggert [Tue, 28 Sep 2004 01:09:41 +0000 (01:09 +0000)]
* src/od.c (format_address_paren): Don't output c if it's '\0'.

20 years ago(format_address_paren): c is optional, so don't output it if it's '\0'.
Paul Eggert [Tue, 28 Sep 2004 01:09:03 +0000 (01:09 +0000)]
(format_address_paren): c is optional, so don't output it if it's '\0'.

20 years ago*** empty log message ***
Jim Meyering [Mon, 27 Sep 2004 07:23:23 +0000 (07:23 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Mon, 27 Sep 2004 07:22:39 +0000 (07:22 +0000)]
.

20 years agoUse [[] in place of \[, since cvsu doesn't handle the latter,
Jim Meyering [Mon, 27 Sep 2004 07:20:46 +0000 (07:20 +0000)]
Use [[] in place of \[, since cvsu doesn't handle the latter,
and both cvs and cvsu handle the former.

20 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:53 +0000 (22:56 +0000)]
Add "ls --hide".

20 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:38 +0000 (22:56 +0000)]
Add "ls --hide".
(file_ignored): Renamed from file_interesting, with
inverted return value.  Accept the file name, not a struct dirent *.
All uses changed.  Avoid the expense of calling fnmatch if the
file is ignorable due to leading '.'.
(all_files, really_all_files): Removed; replaced by:
(ignore): New variable.  All uses changed.
(IGNORE_DEFAULT, IGNORE_DOT_AND_DOTDOT, IGNORE_MINIMAL, HIDE_OPTION):
New constants.
(hide_patterns): New variable.
(long_options, decode_switches, file_ignored, usage):
Add support for --hide.
(patterns_match): New function.
(usage): Replace "hide" with "ignore" in explanation, to avoid
confusion.

20 years ago(ls invocation): Document "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:56:04 +0000 (22:56 +0000)]
(ls invocation): Document "ls --hide".

20 years agoAdd "ls --hide".
Paul Eggert [Sun, 26 Sep 2004 22:55:05 +0000 (22:55 +0000)]
Add "ls --hide".

20 years agoFix location of "Version 5.3.0."
Paul Eggert [Sun, 26 Sep 2004 07:29:15 +0000 (07:29 +0000)]
Fix location of "Version 5.3.0."

20 years agoRemove unused variable.
Paul Eggert [Sun, 26 Sep 2004 07:10:53 +0000 (07:10 +0000)]
Remove unused variable.

20 years ago* src/ls.c: Fix problem with multibyte decimal points in human-readable output.
Paul Eggert [Sun, 26 Sep 2004 07:07:06 +0000 (07:07 +0000)]
* src/ls.c: Fix problem with multibyte decimal points in human-readable output.

20 years ago(gobble_file, print_long_format): Don't assume that
Paul Eggert [Sun, 26 Sep 2004 07:06:07 +0000 (07:06 +0000)]
(gobble_file, print_long_format): Don't assume that
human-readable output has a byte count equal to its column width;
this isn't always true in locales where the radix character is not
'.' or ','.
(format_user_or_group): Revamp code to match the above fix;
this avoids the (very faint) possibility of integer overflow.

20 years agoRegenerate
Paul Eggert [Fri, 24 Sep 2004 23:38:43 +0000 (23:38 +0000)]
Regenerate

20 years ago"chmod -w file" doc
Paul Eggert [Fri, 24 Sep 2004 23:35:13 +0000 (23:35 +0000)]
"chmod -w file" doc

20 years ago(TESTS): Add 'usage'.
Paul Eggert [Fri, 24 Sep 2004 23:34:41 +0000 (23:34 +0000)]
(TESTS): Add 'usage'.

20 years agoInitial revision
Paul Eggert [Fri, 24 Sep 2004 23:34:07 +0000 (23:34 +0000)]
Initial revision

20 years ago(main): Revamp option processing to support "chmod -r -w file".
Paul Eggert [Fri, 24 Sep 2004 23:33:39 +0000 (23:33 +0000)]
(main): Revamp option processing to support "chmod -r -w file".

20 years ago(chmod invocation): Warn about "chmod -w file".
Paul Eggert [Fri, 24 Sep 2004 23:33:13 +0000 (23:33 +0000)]
(chmod invocation): Warn about "chmod -w file".

20 years agochmod -r -w x fixes.
Paul Eggert [Fri, 24 Sep 2004 23:32:52 +0000 (23:32 +0000)]
chmod -r -w x fixes.

20 years agoMention that "chmod -r -w x" now works as expected.
Paul Eggert [Fri, 24 Sep 2004 23:32:37 +0000 (23:32 +0000)]
Mention that "chmod -r -w x" now works as expected.

20 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 08:14:44 +0000 (08:14 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Fri, 24 Sep 2004 08:13:37 +0000 (08:13 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 08:13:10 +0000 (08:13 +0000)]
*** empty log message ***

20 years ago(CVS_LIST): Use --types=AFGM option so that
Jim Meyering [Fri, 24 Sep 2004 08:13:02 +0000 (08:13 +0000)]
(CVS_LIST): Use --types=AFGM option so that
it lists only cvs-controlled regular files.

20 years ago* modechange.c (mode_compile): Don't decrement past start of string.
Paul Eggert [Fri, 24 Sep 2004 07:01:23 +0000 (07:01 +0000)]
* modechange.c (mode_compile): Don't decrement past start of string.

20 years ago(mode_compile): Don't decrement a pointer that
Paul Eggert [Fri, 24 Sep 2004 07:00:59 +0000 (07:00 +0000)]
(mode_compile): Don't decrement a pointer that
points to the start of a string, as the C Standard says the
resulting behavior is undefined.

20 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 06:58:46 +0000 (06:58 +0000)]
*** empty log message ***

20 years agoNew file, used by rules in coreutils' Makefile.maint.
Jim Meyering [Fri, 24 Sep 2004 06:58:38 +0000 (06:58 +0000)]
New file, used by rules in coreutils' Makefile.maint.

20 years ago*** empty log message ***
Jim Meyering [Fri, 24 Sep 2004 06:42:47 +0000 (06:42 +0000)]
*** empty log message ***

20 years ago(xalloc_die): Declare to be `extern', not `static'
Jim Meyering [Fri, 24 Sep 2004 06:34:43 +0000 (06:34 +0000)]
(xalloc_die): Declare to be `extern', not `static'
to avoid a warning from gcc-3.4.1.  Reported by Paul Eggert.

20 years ago* Makefile.maint (CVS_LIST): New macro.
Paul Eggert [Fri, 24 Sep 2004 05:53:21 +0000 (05:53 +0000)]
* Makefile.maint (CVS_LIST): New macro.

20 years ago(CVS_LIST): New macro.
Paul Eggert [Fri, 24 Sep 2004 05:53:05 +0000 (05:53 +0000)]
(CVS_LIST): New macro.
(sc_space_tab, sc_prohibit_atoi_atof, sc_file_system,
sc_prohibit_jm_in_m4, sc_system_h_headers, sc_sun_os_names,
sc_trailing_blank, po-check): Use it instead of the
nonstandard "cvsu --list".

20 years agoRegenerate.
Paul Eggert [Thu, 23 Sep 2004 20:31:42 +0000 (20:31 +0000)]
Regenerate.

20 years agoNew test case obs-b.
Paul Eggert [Thu, 23 Sep 2004 20:30:54 +0000 (20:30 +0000)]
New test case obs-b.
err-[134] no longer need _POSIX2_VERSION=199209.
Fix comments to match revised 'tail' behavior.

20 years agoAdd comments for tests/tail/Test.pm.
Paul Eggert [Thu, 23 Sep 2004 20:29:57 +0000 (20:29 +0000)]
Add comments for tests/tail/Test.pm.

20 years ago(parse_obsolete_option): Bring back support
Paul Eggert [Thu, 23 Sep 2004 20:28:10 +0000 (20:28 +0000)]
(parse_obsolete_option): Bring back support
for obsolete option followed by non-obsolete, or by more
than one file.  When obsolete, conform to SUSv2 rather than
original POSIX 1003.2-1992, as SUSv2 corrected the case of
"tail -c".  Add support for the SUSv2 "b" modifier.

20 years agoFix obsolete "tail" option description.
Paul Eggert [Thu, 23 Sep 2004 20:27:15 +0000 (20:27 +0000)]
Fix obsolete "tail" option description.

20 years ago(tail invocation): Fix bugs in the description of
Paul Eggert [Thu, 23 Sep 2004 20:26:31 +0000 (20:26 +0000)]
(tail invocation): Fix bugs in the description of
the obsolete syntax (e.g., it does not support -k or -m).  Warn
about usages like "tail -" and "tail -c 4" that are ambigous on
older systems.

20 years agoMore backward-compatibility fixes for "tail".
Paul Eggert [Thu, 23 Sep 2004 20:25:38 +0000 (20:25 +0000)]
More backward-compatibility fixes for "tail".

20 years agoDescribe SUSv2 etc. tail fixes.
Paul Eggert [Thu, 23 Sep 2004 20:24:52 +0000 (20:24 +0000)]
Describe SUSv2 etc. tail fixes.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:20:42 +0000 (20:20 +0000)]
*** empty log message ***

20 years agoRemove lib/xmalloc.c.
Jim Meyering [Wed, 22 Sep 2004 20:20:29 +0000 (20:20 +0000)]
Remove lib/xmalloc.c.
Add +lib/xalloc-die.c.

20 years agoUse automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:19:35 +0000 (20:19 +0000)]
Use automake-1.9.2.  Regenerate dependent files.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:19:10 +0000 (20:19 +0000)]
*** empty log message ***

20 years agoUse automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:18:41 +0000 (20:18 +0000)]
Use automake-1.9.2.  Regenerate dependent files.

20 years agoUse automake-1.9.2. Regenerate dependent files.
Jim Meyering [Wed, 22 Sep 2004 20:18:09 +0000 (20:18 +0000)]
Use automake-1.9.2.  Regenerate dependent files.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:16:41 +0000 (20:16 +0000)]
*** empty log message ***

20 years agoRemove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 20:16:38 +0000 (20:16 +0000)]
Remove trailing blanks.

20 years agoRemove extraneous spaces before TAB.
Jim Meyering [Wed, 22 Sep 2004 20:15:49 +0000 (20:15 +0000)]
Remove extraneous spaces before TAB.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:14:48 +0000 (20:14 +0000)]
*** empty log message ***

20 years agoRemove trailing blank.
Jim Meyering [Wed, 22 Sep 2004 20:14:25 +0000 (20:14 +0000)]
Remove trailing blank.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:13:31 +0000 (20:13 +0000)]
*** empty log message ***

20 years ago(struct dirstack_state) [current_arg_jumpbuf]: Improve the comment.
Jim Meyering [Wed, 22 Sep 2004 20:13:09 +0000 (20:13 +0000)]
(struct dirstack_state) [current_arg_jumpbuf]: Improve the comment.

20 years ago*** empty log message ***
Jim Meyering [Wed, 22 Sep 2004 20:11:18 +0000 (20:11 +0000)]
*** empty log message ***

20 years ago(enum) [ALG_MD5]: Define to be 1, not 0.
Jim Meyering [Wed, 22 Sep 2004 20:11:10 +0000 (20:11 +0000)]
(enum) [ALG_MD5]: Define to be 1, not 0.

20 years ago(xalloc_die): Declare to be static.
Jim Meyering [Wed, 22 Sep 2004 20:09:41 +0000 (20:09 +0000)]
(xalloc_die): Declare to be static.

20 years ago(remember_created): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:09:09 +0000 (20:09 +0000)]
(remember_created): Declare as `extern'.

20 years ago(copy): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:08:59 +0000 (20:08 +0000)]
(copy): Declare as `extern'.

20 years ago(chown_files): Declare as `extern'.
Jim Meyering [Wed, 22 Sep 2004 20:08:51 +0000 (20:08 +0000)]
(chown_files): Declare as `extern'.

20 years ago.
Jim Meyering [Wed, 22 Sep 2004 20:07:02 +0000 (20:07 +0000)]
.

20 years ago(check-AUTHORS): New rule.
Jim Meyering [Wed, 22 Sep 2004 20:06:44 +0000 (20:06 +0000)]
(check-AUTHORS): New rule.
(check): Depend on it.

20 years agoGenerate.
Jim Meyering [Wed, 22 Sep 2004 20:03:50 +0000 (20:03 +0000)]
Generate.

20 years ago(syntax-check-rules): Remove duplicate sc_tight_scope.
Jim Meyering [Wed, 22 Sep 2004 20:02:53 +0000 (20:02 +0000)]
(syntax-check-rules): Remove duplicate sc_tight_scope.
(sc_system_h_headers): Also exclude copy.h; it includes <stdbool.h>.

20 years agoRemove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 20:00:58 +0000 (20:00 +0000)]
Remove trailing blanks.

20 years agoRemove trailing blanks.
Jim Meyering [Wed, 22 Sep 2004 20:00:37 +0000 (20:00 +0000)]
Remove trailing blanks.

20 years agoremove trailing blank
Jim Meyering [Wed, 22 Sep 2004 19:59:20 +0000 (19:59 +0000)]
remove trailing blank

20 years ago* src/ls.c (decode_switches): Don't compare a short value to SIZE_MAX.
Paul Eggert [Wed, 22 Sep 2004 19:47:59 +0000 (19:47 +0000)]
* src/ls.c (decode_switches): Don't compare a short value to SIZE_MAX.

20 years ago(decode_switches): Don't compare a short value
Paul Eggert [Wed, 22 Sep 2004 19:47:38 +0000 (19:47 +0000)]
(decode_switches): Don't compare a short value
to SIZE_MAX: GCC sometimes complains.

20 years agogetopt cleanup.
Paul Eggert [Tue, 21 Sep 2004 22:27:07 +0000 (22:27 +0000)]
getopt cleanup.

20 years agoRemove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:26:42 +0000 (22:26 +0000)]
Remove unused "case 0".

20 years agoAdjust to new wording in diagnostic.
Paul Eggert [Tue, 21 Sep 2004 22:25:51 +0000 (22:25 +0000)]
Adjust to new wording in diagnostic.

20 years ago(main): Remove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:13:53 +0000 (22:13 +0000)]
(main): Remove unused "case 0".
(verbose): Now bool, not int.
(VERBOSE_OPTION): New enum.
(longopts, main): Use it.

20 years agoDon't include "long-options.h".
Paul Eggert [Tue, 21 Sep 2004 22:13:13 +0000 (22:13 +0000)]
Don't include "long-options.h".

20 years agoDon't include "long-options.h".
Paul Eggert [Tue, 21 Sep 2004 22:12:55 +0000 (22:12 +0000)]
Don't include "long-options.h".
(main): Remove unused "case 0".

20 years ago(longopts): Add --help, --version.
Paul Eggert [Tue, 21 Sep 2004 22:12:13 +0000 (22:12 +0000)]
(longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
Don't include "long-options.h".

20 years ago(longopts): Add --help, --version.
Paul Eggert [Tue, 21 Sep 2004 22:11:28 +0000 (22:11 +0000)]
(longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
(main): Don't reorder arguments, so that we can check weird file names.

20 years agoRemove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:10:39 +0000 (22:10 +0000)]
Remove unused "case 0".
(long_opts): Standardize on NULL vs 0.

20 years ago(main): Remove unused "case 0".
Paul Eggert [Tue, 21 Sep 2004 22:09:52 +0000 (22:09 +0000)]
(main): Remove unused "case 0".
(long_options): Standardize on NULL vs 0.

20 years agoRemove now-unused long-options static var.
Paul Eggert [Tue, 21 Sep 2004 22:09:09 +0000 (22:09 +0000)]
Remove now-unused long-options static var.
(main): Use getopt where it suffices, not getopt_long.

20 years ago(main): Use getopt where it suffices, not getopt_long.
Paul Eggert [Tue, 21 Sep 2004 22:07:51 +0000 (22:07 +0000)]
(main): Use getopt where it suffices, not getopt_long.

20 years agoReject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:05:52 +0000 (22:05 +0000)]
Reject unknown options.

20 years agoReject unknown options.
Paul Eggert [Tue, 21 Sep 2004 22:05:27 +0000 (22:05 +0000)]
Reject unknown options.

20 years agoInclude <getopt.h>.
Paul Eggert [Tue, 21 Sep 2004 22:04:31 +0000 (22:04 +0000)]
Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.

20 years agoInclude <getopt.h>.
Paul Eggert [Tue, 21 Sep 2004 22:01:50 +0000 (22:01 +0000)]
Include <getopt.h>.
(main): Reject unknown options.

20 years agoInclude <getopt.h>.
Paul Eggert [Tue, 21 Sep 2004 22:01:28 +0000 (22:01 +0000)]
Include <getopt.h>.
(main): Reject unknown options.

20 years agoThe following commands now reject unknown options:
Paul Eggert [Tue, 21 Sep 2004 22:00:27 +0000 (22:00 +0000)]
The following commands now reject unknown options:
basename dirname factor hostname link nohup sync unlink yes
Also, pathchk no longer accepts trailing options.

20 years ago* man/rm.x: Say "the response is affirmative".
Paul Eggert [Tue, 21 Sep 2004 07:54:15 +0000 (07:54 +0000)]
* man/rm.x: Say "the response is affirmative".

20 years agoSay "the response is affirmative" rather than "the
Paul Eggert [Tue, 21 Sep 2004 07:53:54 +0000 (07:53 +0000)]
Say "the response is affirmative" rather than "the
response begins with y or Y".

20 years ago* coreutils.texi (mv invocation, rm invocation): Say "the response
Paul Eggert [Tue, 21 Sep 2004 05:56:21 +0000 (05:56 +0000)]
* coreutils.texi (mv invocation, rm invocation): Say "the response
is affirmative" rather than "the response begins with y or Y".

20 years ago(mv invocation, rm invocation): Say "the response
Paul Eggert [Tue, 21 Sep 2004 05:56:11 +0000 (05:56 +0000)]
(mv invocation, rm invocation): Say "the response
is affirmative" rather than "the response begins with y or Y".

20 years agoFix echo off-by-1 bug.
Paul Eggert [Mon, 20 Sep 2004 07:34:26 +0000 (07:34 +0000)]
Fix echo off-by-1 bug.