Jim Meyering [Tue, 22 Jan 2002 09:53:13 +0000 (09:53 +0000)]
.
Jim Meyering [Tue, 22 Jan 2002 08:14:46 +0000 (08:14 +0000)]
.
Jim Meyering [Tue, 22 Jan 2002 08:13:00 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:12:51 +0000 (08:12 +0000)]
Include xmemcoll.h, not memcoll.h.
Use xmemcoll instead of memcoll.
(die): Do not invoke cleanup; atexit does this now.
(main): Use atexit to invoke cleanup on exit.
Set xmemcoll_exit_failure to SORT_FAILURE.
Jim Meyering [Tue, 22 Jan 2002 08:11:04 +0000 (08:11 +0000)]
Include xmemcoll.h, not memcoll.h.
Use xmemcoll instead of memcoll.
Jim Meyering [Tue, 22 Jan 2002 08:04:03 +0000 (08:04 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:03:54 +0000 (08:03 +0000)]
(libfetish_a_SOURCES): Add them.
Jim Meyering [Tue, 22 Jan 2002 08:02:55 +0000 (08:02 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:02:43 +0000 (08:02 +0000)]
(quotearg_n_style_mem): New function.
Jim Meyering [Tue, 22 Jan 2002 08:02:22 +0000 (08:02 +0000)]
(quotearg_buffer_restyled):
Fix bug with quoting buffers containing NUL when backslashing escapes.
This bug was exposed by the other changes in this patch.
(quotearg_n_options): New arg ARGSIZE.
All callers changed.
(quoting_options_from_style): New function.
(quotearg_n_style): Use it.
(quotearg_n_style_mem): New function.
Jim Meyering [Tue, 22 Jan 2002 07:56:44 +0000 (07:56 +0000)]
Include errno.h, and declare errno if not defined.
(memcoll): Set errno to zero if there is no error.
Jim Meyering [Mon, 21 Jan 2002 23:33:51 +0000 (23:33 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 22:02:35 +0000 (22:02 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 22:02:28 +0000 (22:02 +0000)]
(CMP_WITH_IGNORE): Don't assume that the difference
between two size_t values can be stored in an int; this doesn't
work, for example, on 64-bit Solaris.
Jim Meyering [Mon, 21 Jan 2002 22:01:58 +0000 (22:01 +0000)]
(keycmp): Don't assume that the difference between two size_t values can be
stored in an int; this doesn't work, for example, on 64-bit Solaris.
Also, fix the type of two locals to be size_t instead of int.
Jim Meyering [Mon, 21 Jan 2002 22:00:32 +0000 (22:00 +0000)]
(compare_files): Don't assume that the difference
between two size_t values can be stored in an int; this doesn't
work, for example, on 64-bit Solaris.
Jim Meyering [Mon, 21 Jan 2002 20:04:08 +0000 (20:04 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 20:03:59 +0000 (20:03 +0000)]
(header-check): New rule.
(local-check): Add header-check.
Jim Meyering [Mon, 21 Jan 2002 19:57:53 +0000 (19:57 +0000)]
(strftime-check): New rule.
(local-check): Convert this target to a list. Update uses.
Mark them as .PHONY.
Jim Meyering [Mon, 21 Jan 2002 19:53:45 +0000 (19:53 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:53:23 +0000 (19:53 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:52:06 +0000 (19:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:51:31 +0000 (19:51 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:50:50 +0000 (19:50 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:50:28 +0000 (19:50 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:49:58 +0000 (19:49 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:49:51 +0000 (19:49 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:49:24 +0000 (19:49 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Sun, 20 Jan 2002 20:44:49 +0000 (20:44 +0000)]
Avoid undefined behavior when strcoll fails,
by resorting the directory with strcmp instead.
Include <setjmp.h>.
Include "quote.h".
(compare_atime, rev_cmp_atime, compare_ctime, rev_cmp_ctime,
compare_mtime, rev_cmp_mtime, compare_size, rev_comp_size,
compare_name, rev_cmp_name, compare_extension, rev_cmp_extension,
compare_version, rev_compare_version): Move before use, so that
we can remove the forward declaration. Reimplement in terms of
the new functions described below, using xstrcoll instead of strcoll.
(failed_strcoll): New var.
(xstrcoll): New function.
(V): New type.
(cmp_ctime, compstr_ctime, rev_str_ctime): New functions.
(cmp_mtime, compstr_mtime, rev_str_mtime): Likewise.
(cmp_atime, compstr_atime, rev_str_atime): Likewise.
(cmp_size, compstr_size, rev_str_size): Likewise.
(cmp_version): Likewise.
(cmp_name, compstr_name, rev_str_name): Likewise.
(cmp_extension, compstr_extension, rev_str_extension): Likewise.
(sort_files): Use prototype for internal function var.
If the strcoll-based comparison fails, fall back on a strcmp-based one.
Jim Meyering [Sun, 20 Jan 2002 08:22:12 +0000 (08:22 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Jan 2002 00:12:30 +0000 (00:12 +0000)]
Ensure that the two version numbers in configure.ac remain in sync.
(local-check): Depend on ac-check.
(ac_p_pkg, AC_INIT_PKG): Define.
(ac_p_ver, AC_INIT_VER): Define.
(ac-check): New rule.
Jim Meyering [Sat, 19 Jan 2002 00:07:20 +0000 (00:07 +0000)]
.
Jim Meyering [Sat, 19 Jan 2002 00:03:42 +0000 (00:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Jan 2002 00:02:48 +0000 (00:02 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:59:25 +0000 (23:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:56:59 +0000 (23:56 +0000)]
.
Jim Meyering [Fri, 18 Jan 2002 23:56:32 +0000 (23:56 +0000)]
.
Jim Meyering [Fri, 18 Jan 2002 23:50:03 +0000 (23:50 +0000)]
.
Jim Meyering [Fri, 18 Jan 2002 23:47:33 +0000 (23:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:47:13 +0000 (23:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:43:38 +0000 (23:43 +0000)]
(jm_MACROS): Use AC_FUNC_STRNLEN.
Remove useless quotes: DF_PROG="df".
Jim Meyering [Fri, 18 Jan 2002 23:40:06 +0000 (23:40 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
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.
Jim Meyering [Fri, 18 Jan 2002 23:39:06 +0000 (23:39 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 23:36:00 +0000 (23:36 +0000)]
tweak copyright line
Jim Meyering [Fri, 18 Jan 2002 19:51:04 +0000 (19:51 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Fri, 18 Jan 2002 19:16:03 +0000 (19:16 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:13:27 +0000 (19:13 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 15:40:54 +0000 (15:40 +0000)]
.
Jim Meyering [Fri, 18 Jan 2002 15:36:23 +0000 (15:36 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Wed, 16 Jan 2002 23:33:48 +0000 (23:33 +0000)]
.
Jim Meyering [Wed, 16 Jan 2002 23:32:01 +0000 (23:32 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 16 Jan 2002 23:31:33 +0000 (23:31 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 16 Jan 2002 23:14:24 +0000 (23:14 +0000)]
*** empty log message ***
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).
Jim Meyering [Wed, 16 Jan 2002 23:04:06 +0000 (23:04 +0000)]
(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 23:02:37 +0000 (23:02 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:02:28 +0000 (23:02 +0000)]
(_POSIX2_VERSION, POSIX2_VERSION): New macros.
Jim Meyering [Wed, 16 Jan 2002 23:01:04 +0000 (23:01 +0000)]
add 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 23:00:10 +0000 (23:00 +0000)]
tweak comment
Jim Meyering [Wed, 16 Jan 2002 22:59:27 +0000 (22:59 +0000)]
add 2002 to Copyright line
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.
Jim Meyering [Wed, 16 Jan 2002 22:56:54 +0000 (22:56 +0000)]
add 2002 to Copyright line
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.
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.
Jim Meyering [Wed, 16 Jan 2002 22:46:26 +0000 (22:46 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 22:44:43 +0000 (22:44 +0000)]
(ISDIGIT): Comment fix.
add 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:43:41 +0000 (22:43 +0000)]
add 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:38:26 +0000 (22:38 +0000)]
add 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:38:04 +0000 (22:38 +0000)]
add 2002 to Copyright line
Jim Meyering [Wed, 16 Jan 2002 22:37:35 +0000 (22:37 +0000)]
(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:36:52 +0000 (22:36 +0000)]
(ISDIGIT): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 22:34:07 +0000 (22:34 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 16 Jan 2002 10:01:52 +0000 (10:01 +0000)]
.
Jim Meyering [Mon, 14 Jan 2002 18:52:15 +0000 (18:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jan 2002 09:58:35 +0000 (09:58 +0000)]
.
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.
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.
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.
Jim Meyering [Mon, 14 Jan 2002 08:53:49 +0000 (08:53 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 14 Jan 2002 08:52:45 +0000 (08:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Jan 2002 08:36:48 +0000 (08:36 +0000)]
(mergefps): Fix bug when eliminating empty files.
Jim Meyering [Sun, 13 Jan 2002 19:54:12 +0000 (19:54 +0000)]
.
Jim Meyering [Sun, 13 Jan 2002 19:44:32 +0000 (19:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jan 2002 09:33:37 +0000 (09:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Jan 2002 09:33:32 +0000 (09:33 +0000)]
Tweak to work with the programs in diffutils.
Jim Meyering [Sat, 12 Jan 2002 22:33:09 +0000 (22:33 +0000)]
.
Jim Meyering [Sat, 12 Jan 2002 22:32:46 +0000 (22:32 +0000)]
.
Jim Meyering [Sat, 12 Jan 2002 22:32:09 +0000 (22:32 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 22:30:02 +0000 (22:30 +0000)]
*** empty log message ***
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>
Jim Meyering [Sat, 12 Jan 2002 22:19:06 +0000 (22:19 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 09:14:08 +0000 (09:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Jan 2002 09:13:31 +0000 (09:13 +0000)]
(shred invocation): List some journaled filesystems.