platform/upstream/coreutils.git
22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 23:40:06 +0000 (23:40 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years ago(parse_obsolescent_option): Issue a warning for obsolete usage,
Jim Meyering [Fri, 18 Jan 2002 23:39:37 +0000 (23:39 +0000)]
(parse_obsolescent_option): Issue a warning for obsolete usage,
unless POSIXLY_CORRECT.

22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 23:39:06 +0000 (23:39 +0000)]
(main):  Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years agotweak copyright line
Jim Meyering [Fri, 18 Jan 2002 23:36:00 +0000 (23:36 +0000)]
tweak copyright line

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:51:04 +0000 (19:51 +0000)]
*** empty log message ***

22 years agoAdd these tests:
Jim Meyering [Fri, 18 Jan 2002 19:50:28 +0000 (19:50 +0000)]
Add these tests:
tr '[==]' x
tr '[::]' x
they should fail, not get a failed assertion.

22 years agoFix tr so it no longer gets a failed assertion for [::] or [==].
Jim Meyering [Fri, 18 Jan 2002 19:18:07 +0000 (19:18 +0000)]
Fix tr so it no longer gets a failed assertion for [::] or [==].

(xmemdup): Rename from `substr' and rewrite to
take only pointer/length parameters.
(build_spec_list): Update sole caller.
Properly diagnose the invalid specs [::] and [==].
Pawel Prokop reported that `tr [::] _' elicits a failed assertion.

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:16:03 +0000 (19:16 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:13:27 +0000 (19:13 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Fri, 18 Jan 2002 15:40:54 +0000 (15:40 +0000)]
.

22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 15:36:23 +0000 (15:36 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years ago.
Jim Meyering [Wed, 16 Jan 2002 23:33:48 +0000 (23:33 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:32:01 +0000 (23:32 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:31:51 +0000 (23:31 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax.

Document this.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:31:33 +0000 (23:31 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:31:14 +0000 (23:31 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax.
(usage, main): Implement this.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:14:24 +0000 (23:14 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:13:49 +0000 (23:13 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of obsolete "+" option syntax in sort, tail, and uniq.
* doc/coreutils.texi: Document this.  (Also, document a similar
change to "touch", for fileutils).

22 years ago(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 23:04:06 +0000 (23:04 +0000)]
(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:02:37 +0000 (23:02 +0000)]
*** empty log message ***

22 years ago(_POSIX2_VERSION, POSIX2_VERSION): New macros.
Jim Meyering [Wed, 16 Jan 2002 23:02:28 +0000 (23:02 +0000)]
(_POSIX2_VERSION, POSIX2_VERSION): New macros.

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 23:01:04 +0000 (23:01 +0000)]
add 2002 to Copyright line

22 years agotweak comment
Jim Meyering [Wed, 16 Jan 2002 23:00:10 +0000 (23:00 +0000)]
tweak comment

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:59:27 +0000 (22:59 +0000)]
add 2002 to Copyright line

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 22:59:14 +0000 (22:59 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of obsolete "+" option syntax in sort, tail, and uniq.

(usage, main): Implement this.

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:56:54 +0000 (22:56 +0000)]
add 2002 to Copyright line

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 22:56:33 +0000 (22:56 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of obsolete "+" option syntax in sort, tail, and uniq.

(usage, main): Implement this.

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 22:53:00 +0000 (22:53 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of obsolete "+" option syntax in sort, tail, and uniq.

(usage, parse_obsolescent_option): Implement the above.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 22:46:26 +0000 (22:46 +0000)]
*** empty log message ***

22 years ago(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:44:43 +0000 (22:44 +0000)]
(ISDIGIT): Comment fix.
add 2002 to Copyright line

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:43:41 +0000 (22:43 +0000)]
add 2002 to Copyright line

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:38:26 +0000 (22:38 +0000)]
add 2002 to Copyright line

22 years agoadd 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:38:04 +0000 (22:38 +0000)]
add 2002 to Copyright line

22 years ago(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:37:35 +0000 (22:37 +0000)]
(ISDIGIT): Comment fix.

22 years ago(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:36:52 +0000 (22:36 +0000)]
(ISDIGIT): Comment fix.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 22:34:07 +0000 (22:34 +0000)]
*** empty log message ***

22 years ago(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:33:58 +0000 (22:33 +0000)]
(ISDIGIT): Comment fix.

Add three semicolons, each just before a closing brace.
Bison (as of version 1.31) no longer papers over that mistake.

22 years ago.
Jim Meyering [Wed, 16 Jan 2002 10:01:52 +0000 (10:01 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Mon, 14 Jan 2002 18:52:15 +0000 (18:52 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Mon, 14 Jan 2002 09:58:35 +0000 (09:58 +0000)]
.

22 years agoComment fixes to bring us up to date with respect to POSIX 1003.1-2001.
Jim Meyering [Mon, 14 Jan 2002 09:58:19 +0000 (09:58 +0000)]
Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.
In particular, POSIX.2 is now obsolete.

22 years agoComment fixes to bring us up to date with respect to POSIX 1003.1-2001.
Jim Meyering [Mon, 14 Jan 2002 09:56:49 +0000 (09:56 +0000)]
Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.
In particular, POSIX.2 is now obsolete.

22 years agoComment fixes to bring us up to date with respect to POSIX 1003.1-2001.
Jim Meyering [Mon, 14 Jan 2002 09:56:28 +0000 (09:56 +0000)]
Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.
In particular, POSIX.2 is now obsolete.

22 years ago*** empty log message ***
Jim Meyering [Mon, 14 Jan 2002 08:53:49 +0000 (08:53 +0000)]
*** empty log message ***

22 years ago(TESTS): Add sort.
Jim Meyering [Mon, 14 Jan 2002 08:53:25 +0000 (08:53 +0000)]
(TESTS): Add sort.
(TESTS_ENVIRONMENT): Add PROG=$$tst.  This is a gross kludge
that depends on the name of an automake-generated local variable.

22 years ago*** empty log message ***
Jim Meyering [Mon, 14 Jan 2002 08:52:45 +0000 (08:52 +0000)]
*** empty log message ***

22 years ago(mergefps): Fix bug when eliminating empty files.
Jim Meyering [Mon, 14 Jan 2002 08:36:48 +0000 (08:36 +0000)]
(mergefps): Fix bug when eliminating empty files.

22 years ago.
Jim Meyering [Sun, 13 Jan 2002 19:54:12 +0000 (19:54 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 13 Jan 2002 19:44:32 +0000 (19:44 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 13 Jan 2002 09:33:37 +0000 (09:33 +0000)]
*** empty log message ***

22 years agoTweak to work with the programs in diffutils.
Jim Meyering [Sun, 13 Jan 2002 09:33:32 +0000 (09:33 +0000)]
Tweak to work with the programs in diffutils.

22 years ago.
Jim Meyering [Sat, 12 Jan 2002 22:33:09 +0000 (22:33 +0000)]
.

22 years ago.
Jim Meyering [Sat, 12 Jan 2002 22:32:46 +0000 (22:32 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 22:32:09 +0000 (22:32 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 22:30:02 +0000 (22:30 +0000)]
*** empty log message ***

22 years ago(copy_reg): Don't treat errno==ENOENT as a special case.
Jim Meyering [Sat, 12 Jan 2002 22:29:55 +0000 (22:29 +0000)]
(copy_reg): Don't treat errno==ENOENT as a special case.
(same_file_ok): Detect a case that would have lead to the errno==ENOENT
condition above (and a misleading diagnostic), and return 0 so we give
a diagnostic about the source and destination being the same file.
(copy_internal): Use an explicit test for errno==EXDEV to detect
that rename has failed because source and destination are on
different devices.  This reverts part of a change from 1997-12-13,
and is to avoid letting a race condition evoke a bogus diagnostic.
Note that while POSIX has encouraged the errno==EXDEV test for
years, it was inadequate back in 1997. I'm hoping that many
more systems have conforming support these days.
Reported by Michael Gaughen <mgaughen@polyserve.com>

22 years ago*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 22:19:06 +0000 (22:19 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 09:14:08 +0000 (09:14 +0000)]
*** empty log message ***

22 years ago(shred invocation): List some journaled filesystems.
Jim Meyering [Sat, 12 Jan 2002 09:13:31 +0000 (09:13 +0000)]
(shred invocation): List some journaled filesystems.

22 years ago(usage): Also mention Ext3.
Jim Meyering [Sat, 12 Jan 2002 09:12:13 +0000 (09:12 +0000)]
(usage): Also mention Ext3.

22 years agos/the the/the/ in a comment
Jim Meyering [Sat, 12 Jan 2002 08:48:08 +0000 (08:48 +0000)]
s/the the/the/ in a comment

22 years ago*** empty log message ***
Jim Meyering [Wed, 9 Jan 2002 18:11:35 +0000 (18:11 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 8 Jan 2002 21:51:25 +0000 (21:51 +0000)]
*** empty log message ***

22 years ago(long_time_format): Extended translator comments.
Jim Meyering [Tue, 8 Jan 2002 21:51:14 +0000 (21:51 +0000)]
(long_time_format): Extended translator comments.

22 years agoupdate from master FILEUTILS-4_1_5
Jim Meyering [Sun, 6 Jan 2002 09:34:09 +0000 (09:34 +0000)]
update from master

22 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jan 2002 21:13:34 +0000 (21:13 +0000)]
*** empty log message ***

22 years ago(version_etc_copyright): Update copyright year.
Jim Meyering [Sat, 5 Jan 2002 21:13:29 +0000 (21:13 +0000)]
(version_etc_copyright): Update copyright year.

22 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jan 2002 20:38:36 +0000 (20:38 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sat, 5 Jan 2002 20:11:34 +0000 (20:11 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jan 2002 20:11:05 +0000 (20:11 +0000)]
*** empty log message ***

22 years agoadd another test
Jim Meyering [Sat, 5 Jan 2002 20:10:44 +0000 (20:10 +0000)]
add another test

22 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jan 2002 19:18:02 +0000 (19:18 +0000)]
*** empty log message ***

22 years ago(install-data-yes, uninstall-data-yes):
Jim Meyering [Wed, 2 Jan 2002 19:59:44 +0000 (19:59 +0000)]
(install-data-yes, uninstall-data-yes):
Install the LC_TIME locale category as an alias for LC_MESSAGES.
This fixes a bug introduced in the 2001-09-22 upgrade to gettext 0.10.40.

23 years ago.
Jim Meyering [Mon, 31 Dec 2001 07:56:43 +0000 (07:56 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Dec 2001 23:01:15 +0000 (23:01 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Dec 2001 22:59:09 +0000 (22:59 +0000)]
*** empty log message ***

23 years ago(main): With -r, always dereference symlinks.
Jim Meyering [Sat, 29 Dec 2001 22:58:40 +0000 (22:58 +0000)]
(main): With -r, always dereference symlinks.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Dec 2001 22:55:43 +0000 (22:55 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sat, 29 Dec 2001 22:55:17 +0000 (22:55 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Dec 2001 22:53:38 +0000 (22:53 +0000)]
*** empty log message ***

23 years ago(TESTS): Add r-vs-symlink.
Jim Meyering [Sat, 29 Dec 2001 22:53:09 +0000 (22:53 +0000)]
(TESTS): Add r-vs-symlink.

23 years ago.
Jim Meyering [Fri, 28 Dec 2001 08:08:15 +0000 (08:08 +0000)]
.

23 years agoUse notation compatible with SI and with IEC 60027-2.
Jim Meyering [Fri, 21 Dec 2001 11:54:04 +0000 (11:54 +0000)]
Use notation compatible with SI and with IEC 60027-2.
For example, --block-size=1MB now means --block-size=1000000,
whereas --block-size=1MiB now means --block-size=1048576.
A trailing `B' now means decimal, not binary; this is a silent change.
-H or --si now outputs the trailing 'B', for consistency with this.
Programs now output trailing 'K' (not 'k') to mean 1024.
New df, du short option -B is short for --block-size.
You can omit an integer `1' before a block size suffix,
e.g. `df -BG' is equivalent to `df -B 1G' and to `df --block-size=1G'.

Document the above.  Remove documentation
for obsolescent constructs MD, --kilobytes, -m or --megabytes.

23 years ago*** empty log message ***
Jim Meyering [Fri, 21 Dec 2001 11:40:55 +0000 (11:40 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 21 Dec 2001 11:39:22 +0000 (11:39 +0000)]
*** empty log message ***

23 years ago[!HAVE_CONFIG_H]: Remove block of code that duplicated
Jim Meyering [Fri, 21 Dec 2001 11:39:02 +0000 (11:39 +0000)]
[!HAVE_CONFIG_H]: Remove block of code that duplicated
code in lib/ for compiling this program without config.h.

23 years ago(usage): Deprecate --kilobytes. Document size suffixes.
Jim Meyering [Fri, 21 Dec 2001 11:36:35 +0000 (11:36 +0000)]
(usage): Deprecate --kilobytes.  Document size suffixes.

23 years ago(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
Jim Meyering [Fri, 21 Dec 2001 11:35:54 +0000 (11:35 +0000)]
(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
(long_options, usage, main): Add -B.
(usage): Deprecate --kilobytes, -m, --megabytes.
Document size suffixes.

(print_header, show_dev): Enlarge column widths for trailing "B".

23 years ago(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
Jim Meyering [Fri, 21 Dec 2001 11:31:54 +0000 (11:31 +0000)]
(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
(long_options, usage, main): Add -B.
(usage): Deprecate --kilobytes, -m, --megabytes.
Document size suffixes.

23 years ago(usage, parse_integer): Prefer K to k for 1024.
Jim Meyering [Fri, 21 Dec 2001 11:28:34 +0000 (11:28 +0000)]
(usage, parse_integer): Prefer K to k for 1024.

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 16:54:24 +0000 (16:54 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 16:53:56 +0000 (16:53 +0000)]
*** empty log message ***

23 years ago(usage, specify_sort_size): Accept 'K' (which is
Jim Meyering [Thu, 20 Dec 2001 16:53:50 +0000 (16:53 +0000)]
(usage, specify_sort_size): Accept 'K' (which is
now preferred, as it connotes 1024) as well as 'k'.

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 10:01:41 +0000 (10:01 +0000)]
*** empty log message ***

23 years ago(close_stdout_status): If ferror (stdout), do
Jim Meyering [Thu, 20 Dec 2001 10:01:25 +0000 (10:01 +0000)]
(close_stdout_status): If ferror (stdout), do
not silently exit merely because the output buffer happens to
have nothing pending.

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 18:10:46 +0000 (18:10 +0000)]
*** empty log message ***

23 years agoAdd FSF copyright notice.
Jim Meyering [Wed, 19 Dec 2001 18:10:24 +0000 (18:10 +0000)]
Add FSF copyright notice.

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 15:07:13 +0000 (15:07 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 15:05:38 +0000 (15:05 +0000)]
*** empty log message ***

23 years ago(suffixes): Prefer K to k for 1024.
Jim Meyering [Wed, 19 Dec 2001 15:05:33 +0000 (15:05 +0000)]
(suffixes): Prefer K to k for 1024.
(generate_suffix_backwards): New function.
(human_readable_inexact): Use it.