Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 81e204a3e7 (header-check): New rule.
(local-check): Add header-check.
2002-01-21 20:03:59 +00:00
Jim Meyering ccfd76fbc8 (strftime-check): New rule.
(local-check): Convert this target to a list.  Update uses.
Mark them as .PHONY.
2002-01-21 19:57:53 +00:00
Jim Meyering 0957ccf367 *** empty log message *** 2002-01-21 19:53:45 +00:00
Jim Meyering 3ca688d69a Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:53:23 +00:00
Jim Meyering 885956355c *** empty log message *** 2002-01-21 19:52:06 +00:00
Jim Meyering e6345ecb09 Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:51:31 +00:00
Jim Meyering 758e7f409f Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:50:50 +00:00
Jim Meyering 945532de66 Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:50:28 +00:00
Jim Meyering 54bf872aab *** empty log message *** 2002-01-21 19:49:58 +00:00
Jim Meyering ee6911b745 Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:49:51 +00:00
Jim Meyering c5c6647f22 Don't include "xalloc.h", as system.h already does that via sys2.h. 2002-01-21 19:49:24 +00:00
Jim Meyering 72d40f6724 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.
2002-01-20 20:44:49 +00:00
Jim Meyering 99f7bd761f *** empty log message *** 2002-01-20 08:22:12 +00:00
Jim Meyering 325addae1d 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.
2002-01-19 00:12:30 +00:00
Jim Meyering 4e69204179 . 2002-01-19 00:07:20 +00:00
Jim Meyering c7b097f904 *** empty log message *** 2002-01-19 00:03:42 +00:00
Jim Meyering 8723a1eaae *** empty log message *** 2002-01-19 00:02:48 +00:00
Jim Meyering fe680fd860 *** empty log message *** 2002-01-18 23:59:25 +00:00
Jim Meyering 2bd66cf7fc . 2002-01-18 23:56:59 +00:00
Jim Meyering 8e7e29d1de . 2002-01-18 23:56:32 +00:00
Jim Meyering 96efa91b23 . 2002-01-18 23:50:03 +00:00
Jim Meyering ea2703dd8c *** empty log message *** 2002-01-18 23:47:33 +00:00
Jim Meyering 009e3b99cf *** empty log message *** 2002-01-18 23:47:13 +00:00
Jim Meyering 10b3363e2e (jm_MACROS): Use AC_FUNC_STRNLEN.
Remove useless quotes: DF_PROG="df".
2002-01-18 23:43:38 +00:00
Jim Meyering c8aa23a9cc (main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT. 2002-01-18 23:40:06 +00:00
Jim Meyering 8a755a3d27 (parse_obsolescent_option): Issue a warning for obsolete usage,
unless POSIXLY_CORRECT.
2002-01-18 23:39:37 +00:00
Jim Meyering 36a16de45c (main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT. 2002-01-18 23:39:06 +00:00
Jim Meyering 6e2ffd49b1 tweak copyright line 2002-01-18 23:36:00 +00:00
Jim Meyering 2abefb14eb *** empty log message *** 2002-01-18 19:51:04 +00:00
Jim Meyering e2c1c2e529 Add these tests:
tr '[==]' x
tr '[::]' x
they should fail, not get a failed assertion.
2002-01-18 19:50:28 +00:00
Jim Meyering 067c2ea921 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.
2002-01-18 19:18:07 +00:00
Jim Meyering e91fe759ec *** empty log message *** 2002-01-18 19:16:03 +00:00
Jim Meyering 37d0d50168 *** empty log message *** 2002-01-18 19:13:27 +00:00
Jim Meyering 6f46b8dd99 . 2002-01-18 15:40:54 +00:00
Jim Meyering 1f2f9be7f8 (main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT. 2002-01-18 15:36:23 +00:00
Jim Meyering 96400fcda4 . 2002-01-16 23:33:48 +00:00
Jim Meyering 4ff8979277 *** empty log message *** 2002-01-16 23:32:01 +00:00
Jim Meyering 3e9354e7f7 Add support for POSIX 1003.1-2001, which requires removal for
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax.

Document this.
2002-01-16 23:31:51 +00:00
Jim Meyering 42e25937cf *** empty log message *** 2002-01-16 23:31:33 +00:00
Jim Meyering 1701230f32 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.
2002-01-16 23:31:14 +00:00
Jim Meyering 68bd369ece *** empty log message *** 2002-01-16 23:14:24 +00:00
Jim Meyering 358a274042 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).
2002-01-16 23:13:49 +00:00
Jim Meyering 2f8c0a3131 (ISDIGIT, S_ISVTX, S_IXUGO): Comment fix. 2002-01-16 23:04:06 +00:00
Jim Meyering 9b0e6e4b56 *** empty log message *** 2002-01-16 23:02:37 +00:00
Jim Meyering 2302cc643b (_POSIX2_VERSION, POSIX2_VERSION): New macros. 2002-01-16 23:02:28 +00:00
Jim Meyering f29617e3fe add 2002 to Copyright line 2002-01-16 23:01:04 +00:00
Jim Meyering 485d699baf tweak comment 2002-01-16 23:00:10 +00:00
Jim Meyering a5bda3260c add 2002 to Copyright line 2002-01-16 22:59:27 +00:00
Jim Meyering b5b50f46ea 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.
2002-01-16 22:59:14 +00:00
Jim Meyering 0037e217df add 2002 to Copyright line 2002-01-16 22:56:54 +00:00