Jim Meyering [Wed, 6 Mar 2002 09:11:13 +0000 (09:11 +0000)]
update from masters
Jim Meyering [Wed, 6 Mar 2002 09:06:01 +0000 (09:06 +0000)]
.
Jim Meyering [Wed, 6 Mar 2002 08:56:50 +0000 (08:56 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Mar 2002 08:56:16 +0000 (08:56 +0000)]
(cut invocation): Say that selected input is written in the same
order that it is read, and is written exactly once.
Jim Meyering [Tue, 5 Mar 2002 09:03:40 +0000 (09:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 23:25:58 +0000 (23:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 23:25:05 +0000 (23:25 +0000)]
(tgz-size): Also handle a suffix of `K', since
the sizes in the output of `du -h' now look like `29K'
Jim Meyering [Sun, 3 Mar 2002 22:30:13 +0000 (22:30 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 22:30:06 +0000 (22:30 +0000)]
Make cp -r equivalent to cp -R. Add a new cp option --copy-contents
for people who want to emulate the traditional (and rarely desirable)
cp -r behavior.
(cp invocation): Document this.
Fix some related minor bugs: --no-dereference is no longer
equivalent to -d, and --archive (-a) can override the other
symlink options. Warn that cp -R is not portable on symbolic
links unless you also specify -P.
Jim Meyering [Sun, 3 Mar 2002 22:29:41 +0000 (22:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 22:29:36 +0000 (22:29 +0000)]
.
Jim Meyering [Sun, 3 Mar 2002 22:29:31 +0000 (22:29 +0000)]
(copy_internal): Remove -r warning; no longer needed.
Jim Meyering [Sun, 3 Mar 2002 22:28:48 +0000 (22:28 +0000)]
(COPY_CONTENTS_OPTION): New enum value.
(long_opts): Add --copy-contents.
(usage): Describe new behavior. Sort options.
(main): Implement new behavior. Remove diagnostics for -a and -r;
no longer needed.
Jim Meyering [Sun, 3 Mar 2002 09:57:20 +0000 (09:57 +0000)]
.
Jim Meyering [Sun, 3 Mar 2002 09:54:53 +0000 (09:54 +0000)]
.
Jim Meyering [Sat, 2 Mar 2002 17:43:10 +0000 (17:43 +0000)]
.
Jim Meyering [Sat, 2 Mar 2002 17:42:45 +0000 (17:42 +0000)]
Reflect changed semantics of cp's -r option.
Jim Meyering [Sat, 2 Mar 2002 17:39:58 +0000 (17:39 +0000)]
.
Jim Meyering [Sat, 2 Mar 2002 17:39:26 +0000 (17:39 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:39:17 +0000 (17:39 +0000)]
(strnlen): Define-away/undef so that an inconsistent prototype in
string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't cause trouble.
Jim Meyering [Sat, 2 Mar 2002 17:37:50 +0000 (17:37 +0000)]
.
Jim Meyering [Sat, 2 Mar 2002 17:36:04 +0000 (17:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:35:39 +0000 (17:35 +0000)]
(cp invocation): Document that cp -r
preserves symlinks. Emphasize non-portability of cp -r.
Jim Meyering [Sat, 2 Mar 2002 17:23:34 +0000 (17:23 +0000)]
(main): Warn when -r is specified before --archive (-a).
Jim Meyering [Sat, 2 Mar 2002 17:17:49 +0000 (17:17 +0000)]
add a comment
Jim Meyering [Sat, 2 Mar 2002 17:16:42 +0000 (17:16 +0000)]
(copy_internal): For each symlink copied by cp -r,
issue a warning that `cp -r' is not portable.
Jim Meyering [Sat, 2 Mar 2002 17:15:42 +0000 (17:15 +0000)]
(main): Revert change of 2001-12-29. With this change,
cp -r once again preserves symlinks.
(usage): Document the original (now-restored) behavior.
Jim Meyering [Sat, 2 Mar 2002 16:44:07 +0000 (16:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 16:44:02 +0000 (16:44 +0000)]
(main): Fail if -r is specified after --archive (-a) on the command line.
Jim Meyering [Sat, 2 Mar 2002 13:24:46 +0000 (13:24 +0000)]
be careful about leading/trailing spaces
Jim Meyering [Sat, 2 Mar 2002 08:38:57 +0000 (08:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 08:38:47 +0000 (08:38 +0000)]
(copy_reg): Detect abuse of a race condition
whereby an unprivileged user could gain read access to otherwise-
inaccessible files when root uses cp or mv to copy a hierarchy
belonging to that user.
Jim Meyering [Fri, 1 Mar 2002 23:57:21 +0000 (23:57 +0000)]
Include timespec.h.
(strftime, time, stime): Remove declarations; no longer needed.
(usage): Document %N.
(main): Use gettime rather than time to get the time of day,
so that we can get fractional times.
Similarly for settime and stime, so that we can set fractional times
(though this currently is not available to the user since we don't
parse fractional times; add FIXMES for that).
Check for gettime failures; e.g. this can occur if it
is past 2038 and we are a 32-bit app running on a 64-bit OS.
Get fractional part of file time stamps.
Do not falsely report failures just because time_t happens to be -1
(e.g. a file time stamp 1 second before the epoch).
(show_date): 2nd arg is now struct timespec, not time_t.
All uses changed. Use nstrftime rather than strftime, so that
we can format fractional seconds.
Jim Meyering [Fri, 1 Mar 2002 23:54:58 +0000 (23:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:54:52 +0000 (23:54 +0000)]
(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.
Jim Meyering [Fri, 1 Mar 2002 23:36:30 +0000 (23:36 +0000)]
.
Jim Meyering [Fri, 1 Mar 2002 23:35:58 +0000 (23:35 +0000)]
(strftime-check): Add `N'.
Jim Meyering [Fri, 1 Mar 2002 23:35:00 +0000 (23:35 +0000)]
(Time directives): Add %N for nanoseconds.
This documents the recent change to 'ls'.
Jim Meyering [Fri, 1 Mar 2002 23:34:23 +0000 (23:34 +0000)]
reflect renaming: nanosleep.h -> timespec.h
Jim Meyering [Fri, 1 Mar 2002 23:29:32 +0000 (23:29 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:28:21 +0000 (23:28 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:26:26 +0000 (23:26 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:26:10 +0000 (23:26 +0000)]
(jm_MACROS): Do not replace stime; no longer used.
Check for clock_settime.
Jim Meyering [Fri, 1 Mar 2002 23:21:09 +0000 (23:21 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:21:01 +0000 (23:21 +0000)]
.
Jim Meyering [Fri, 1 Mar 2002 23:20:53 +0000 (23:20 +0000)]
(libfetish_a_SOURCES): Add gettime.c, settime.c,
timespec.h. Remove nanosleep.h.
Jim Meyering [Fri, 1 Mar 2002 23:20:20 +0000 (23:20 +0000)]
new file, from Paul Eggert
Jim Meyering [Fri, 1 Mar 2002 23:19:28 +0000 (23:19 +0000)]
Reflect renaming: nanosleep.h -> timespec.h.
Jim Meyering [Fri, 1 Mar 2002 23:16:55 +0000 (23:16 +0000)]
new macros/decls, from Paul Eggert
Jim Meyering [Fri, 1 Mar 2002 23:15:29 +0000 (23:15 +0000)]
renamed from nanosleep.h
Jim Meyering [Thu, 28 Feb 2002 08:34:43 +0000 (08:34 +0000)]
(decode_switches, usage): Add --time-style=+FORMAT.
Jim Meyering [Thu, 28 Feb 2002 08:30:31 +0000 (08:30 +0000)]
*** empty log message ***
Jim Meyering [Thu, 28 Feb 2002 08:30:19 +0000 (08:30 +0000)]
(pr invocation): Reword to avoid using `:'
in an @opindex entry -- info doesn't permit it.
Jim Meyering [Thu, 28 Feb 2002 08:20:05 +0000 (08:20 +0000)]
*** empty log message ***
Jim Meyering [Thu, 28 Feb 2002 08:19:50 +0000 (08:19 +0000)]
(Formatting file timestamps): Document new
time-formatting method: --time-style=+FORMAT.
Jim Meyering [Tue, 26 Feb 2002 16:03:24 +0000 (16:03 +0000)]
.
Jim Meyering [Tue, 26 Feb 2002 15:48:03 +0000 (15:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:39:27 +0000 (15:39 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:38:49 +0000 (15:38 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:22:22 +0000 (15:22 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:22:09 +0000 (15:22 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:21:39 +0000 (15:21 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:21:11 +0000 (15:21 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:20:39 +0000 (15:20 +0000)]
(jm_MACROS): Require AC_FUNC_ACL.
Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
Jim Meyering [Tue, 26 Feb 2002 15:20:00 +0000 (15:20 +0000)]
Include "acl.h" rather than <sys/acl.h>.
(USE_ACL): Remove; replaced by HAVE_ACL everywhere.
(gobble_file): Use file_has_acl rather than doing it ourselves.
Jim Meyering [Tue, 26 Feb 2002 14:53:28 +0000 (14:53 +0000)]
*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 14:53:18 +0000 (14:53 +0000)]
(libfetish_a_SOURCES): Add acl.h, acl.c.
Jim Meyering [Tue, 26 Feb 2002 14:06:55 +0000 (14:06 +0000)]
.
Jim Meyering [Tue, 26 Feb 2002 08:32:56 +0000 (08:32 +0000)]
tweak comment
Jim Meyering [Mon, 25 Feb 2002 12:11:03 +0000 (12:11 +0000)]
latest from FSF
Jim Meyering [Sun, 24 Feb 2002 17:24:29 +0000 (17:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 24 Feb 2002 17:24:06 +0000 (17:24 +0000)]
Include posixver.h.
Jim Meyering [Sat, 23 Feb 2002 09:16:44 +0000 (09:16 +0000)]
(DISTFILES.common): Add remove-potcdate.sin.
(.SUFFIXES): Add .sed and .sin.
(.sin.sed): New rule.
($(DOMAIN).pot-update): Depend on remove-potcdate.sed. If the old
POT file exists and the new POT file differs from it only in the
first POT-Creation-Date line, keep the old POT file. So the PO files
don't need to be remade, and automake's "distcheck" target succeeds.
(mostlyclean): Remove remove-potcdate.sed and additional temporary
files.
Jim Meyering [Sat, 23 Feb 2002 09:16:02 +0000 (09:16 +0000)]
.
Jim Meyering [Sat, 23 Feb 2002 09:15:45 +0000 (09:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 23 Feb 2002 09:14:52 +0000 (09:14 +0000)]
.
Jim Meyering [Sat, 23 Feb 2002 09:12:20 +0000 (09:12 +0000)]
(simple_cat, cat, main): Used char * rather than
unsigned char *, to avoid some technical violations of the C
standard, and to avoid the need for casts. I guess the
unsigned char * was probably there for improved performance
with ancient compilers, but the code wasn't using the
unsignedness any more.
Reported by Nelson H. F. Beebe.
(cat): int -> size_t for full_write arg. This doesn't
fix any bugs since the buffer size is small, but it makes
the code a bit clearer.
Jim Meyering [Sat, 23 Feb 2002 09:02:23 +0000 (09:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 23 Feb 2002 09:02:18 +0000 (09:02 +0000)]
(xpath_concat): Reorder code to pacify
compilers that don't know that xalloc_die never returns.
Jim Meyering [Wed, 20 Feb 2002 16:09:14 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 20 Feb 2002 16:06:29 +0000 (16:06 +0000)]
*** empty log message ***
Jim Meyering [Wed, 20 Feb 2002 16:06:20 +0000 (16:06 +0000)]
Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(main): Use `posix2_version ()' in place of POSIX2_VERSION.
Jim Meyering [Tue, 19 Feb 2002 20:41:18 +0000 (20:41 +0000)]
*** empty log message ***
Jim Meyering [Tue, 19 Feb 2002 20:41:13 +0000 (20:41 +0000)]
(seq invocation): In the example, use "tail
-n 3", not "tail -3", to conform to POSIX 1003.1-2001.
Jim Meyering [Mon, 18 Feb 2002 12:41:49 +0000 (12:41 +0000)]
update due to modified mk-script
Jim Meyering [Mon, 18 Feb 2002 12:40:53 +0000 (12:40 +0000)]
.
Jim Meyering [Mon, 18 Feb 2002 12:39:48 +0000 (12:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:39:42 +0000 (12:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:39:19 +0000 (12:39 +0000)]
(test_vector): Rename tests of obsolete usage to have prefix of `obs'.
For tests matching /^obs/,
put _POSIX2_VERSION=199209 in the environment, so the tests succeed
even when the environment would have contained _POSIX2_VERSION=200112.
Jim Meyering [Mon, 18 Feb 2002 12:35:15 +0000 (12:35 +0000)]
*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:35:00 +0000 (12:35 +0000)]
For tests matching /^(obs|err-[134])/,
put _POSIX2_VERSION=199209 in the environment, so the tests succeed
even when the environment would have contained _POSIX2_VERSION=200112.
Jim Meyering [Mon, 18 Feb 2002 12:33:30 +0000 (12:33 +0000)]
*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:33:11 +0000 (12:33 +0000)]
When getting input via a pipe, apply the
environment settings to the command in question, not to `cat'.
No longer allow more than one element in the
$Test::env or $Test::env_default arrays. No one used that.
Jim Meyering [Sun, 17 Feb 2002 22:53:18 +0000 (22:53 +0000)]
*** empty log message ***
Jim Meyering [Sun, 17 Feb 2002 22:50:33 +0000 (22:50 +0000)]
Tell sort to accept old-style options.
Jim Meyering [Sun, 17 Feb 2002 22:48:54 +0000 (22:48 +0000)]
.
Jim Meyering [Sun, 17 Feb 2002 22:48:45 +0000 (22:48 +0000)]
Tell head to accept old-style options like `-1'.
Jim Meyering [Sun, 17 Feb 2002 22:39:51 +0000 (22:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 17 Feb 2002 22:39:47 +0000 (22:39 +0000)]
Tell head to accept old-style options like `-1'.
Jim Meyering [Sun, 17 Feb 2002 21:47:43 +0000 (21:47 +0000)]
*** empty log message ***