Jim Meyering [Sat, 8 Jul 2006 06:04:18 +0000 (06:04 +0000)]
* src/dd.c (skip): Remove one of two adjacent "the"s in a comment.
Jim Meyering [Sat, 8 Jul 2006 06:03:50 +0000 (06:03 +0000)]
* coreutils.texi (Squeezing): Separate doubled "the", so typo-checkers
don't complain.
Jim Meyering [Sat, 8 Jul 2006 05:31:59 +0000 (05:31 +0000)]
* Makefile.am (check-texinfo): Enforce the zeros vs. zeroes consistency.
Jim Meyering [Sat, 8 Jul 2006 05:28:39 +0000 (05:28 +0000)]
* coreutils.texi: Fix some typos. Use `zeros' consistently (both
`zeros' and `zeroes' are correct).
Jim Meyering [Fri, 7 Jul 2006 06:38:36 +0000 (06:38 +0000)]
* NEWS: Mention that mv can now remove an empty destination directory,
and give an example. Prompted by a report from Florent Bayle.
Jim Meyering [Wed, 5 Jul 2006 10:17:24 +0000 (10:17 +0000)]
* src/ls.c (usage): Correct the description of -G: it is useful
only in a long listing. Reported by Martin Pool in
<https://launchpad.net/distros/ubuntu/+source/coreutils/+bug/51653>.
Jim Meyering [Wed, 5 Jul 2006 10:03:55 +0000 (10:03 +0000)]
* man/chmod.x: Correct the description of the sticky bit. Reported
by Chris Moore via Ian Jackson in <http://bugs.debian.org/376745>.
Jim Meyering [Wed, 5 Jul 2006 09:08:42 +0000 (09:08 +0000)]
* src/copy.c (copy_internal): Don't work around old NFS clients like
SunOS-4.1.4 and Irix 5.3 that set errno to values like EIO and
ENOTEMPTY upon failed rename. Otherwise, we risk misinterpreting
a banal failure as a recursive move-into-self failure.
Reported by Florent Bayle in <http://bugs.debian.org/376749>.
Jim Meyering [Wed, 5 Jul 2006 06:57:09 +0000 (06:57 +0000)]
.
Jim Meyering [Wed, 5 Jul 2006 06:57:00 +0000 (06:57 +0000)]
Regenerate, to remove fuzz.
Jim Meyering [Tue, 4 Jul 2006 07:28:57 +0000 (07:28 +0000)]
Really add wcwidth.h.
Jim Meyering [Tue, 4 Jul 2006 07:28:45 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Jul 2006 07:23:10 +0000 (07:23 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Jul 2006 07:17:34 +0000 (07:17 +0000)]
Really add wcwidth.m4.
Paul Eggert [Tue, 4 Jul 2006 05:39:07 +0000 (05:39 +0000)]
Sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 05:38:32 +0000 (05:38 +0000)]
Sync from gnulib. Also:
(gt_FUNC_SETENV): Undo private change that added an
AC_LIBSOURCES line here, since Bruno didn't buy it back. Instead,
update ../lib/Makefile.am to mention the files explicitly.
Paul Eggert [Tue, 4 Jul 2006 05:37:58 +0000 (05:37 +0000)]
(gl_PREREQ): Require gl_FUNC_WCWIDTH, to accommodate
sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 05:37:11 +0000 (05:37 +0000)]
(libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,
to accommodate sync from gnulib.
Paul Eggert [Tue, 4 Jul 2006 04:50:34 +0000 (04:50 +0000)]
Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
MacOS X 10.4.6. Don't mention <sys/int_types.h>.
Jim Meyering [Mon, 3 Jul 2006 17:38:20 +0000 (17:38 +0000)]
Plug another unusual leak.
(AD_mark_helper): Free malloc'd filename if hash_insert says
that string is already in the hash table.
Jim Meyering [Mon, 3 Jul 2006 15:20:23 +0000 (15:20 +0000)]
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
macro is used before the first cycle_check call.
Jim Meyering [Mon, 3 Jul 2006 15:10:35 +0000 (15:10 +0000)]
The dev/inode of the topmost directory in each hierarchy were not
being recorded.
* src/remove.c (remove_cwd_entries): Don't call cycle_check here.
(AD_push): Call it from here instead.
Jim Meyering [Mon, 3 Jul 2006 13:14:01 +0000 (13:14 +0000)]
Fix two small leaks.
* src/remove.c (AD_stack_clear): New function.
(rm_1): Use it.
(AD_pop_and_chdir): Free *prev_dir just before longjmp.
Jim Meyering [Mon, 3 Jul 2006 12:55:25 +0000 (12:55 +0000)]
* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
Add $VG_PATH_PREFIX as a prefix to $PATH
Jim Meyering [Mon, 3 Jul 2006 09:10:36 +0000 (09:10 +0000)]
.
Jim Meyering [Mon, 3 Jul 2006 08:37:50 +0000 (08:37 +0000)]
* tests/envvar-check (vars): Add CDPATH and POSIXLY_CORRECT.
* tests/Makefile.am (evar-check): Remove rule.
(EXTRA_DIST): Remove .env-warn.
* tests/.env-warn: Remove file. No longer used.
Suggestion from Eric Blake.
Jim Meyering [Mon, 3 Jul 2006 07:42:30 +0000 (07:42 +0000)]
*** empty log message ***
Jim Meyering [Mon, 3 Jul 2006 07:42:27 +0000 (07:42 +0000)]
(gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend
./configure SKIP_FTRUNCATE_CHECK=yes, rather than env ... ./configure.
Suggestion from Ralf Wildenhues.
Paul Eggert [Sun, 2 Jul 2006 09:15:08 +0000 (09:15 +0000)]
(intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits.
Paul Eggert [Sun, 2 Jul 2006 09:14:28 +0000 (09:14 +0000)]
(gl_STDINT_H): Use more-mnemonic identifiers for
test cases, so that config.log is a bit easier to follow.
Jim Meyering [Sun, 2 Jul 2006 08:29:30 +0000 (08:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Jul 2006 08:29:26 +0000 (08:29 +0000)]
New file, from gnulib. Required by stdint.m4.
Paul Eggert [Sun, 2 Jul 2006 07:09:25 +0000 (07:09 +0000)]
Include <stdint.h> unconditionally, since we
now assume the stdint module.
Paul Eggert [Sun, 2 Jul 2006 07:08:50 +0000 (07:08 +0000)]
Sync stdint module from gnulib.
Paul Eggert [Sat, 1 Jul 2006 23:53:05 +0000 (23:53 +0000)]
With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
Paul Eggert [Sat, 1 Jul 2006 23:50:46 +0000 (23:50 +0000)]
(f-pipe-1): Renamed from f-1.
(test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
Paul Eggert [Sat, 1 Jul 2006 23:50:15 +0000 (23:50 +0000)]
(main): With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
Paul Eggert [Sat, 1 Jul 2006 23:49:46 +0000 (23:49 +0000)]
(tail invocation): With no operand, 'tail -f' now
silently ignores the '-f' only if standard input is a FIFO or pipe
and POSIXLY_CORRECT is set.
Jim Meyering [Sat, 1 Jul 2006 07:04:52 +0000 (07:04 +0000)]
* src/ln.c (do_link): Use new, shorter URL, for ag-review link.
Jim Meyering [Sat, 1 Jul 2006 06:50:30 +0000 (06:50 +0000)]
Add ^lib/xstrtold\.c$, so make distcheck passes once again.
Jim Meyering [Sat, 1 Jul 2006 06:44:22 +0000 (06:44 +0000)]
*** empty log message ***
Paul Eggert [Sat, 1 Jul 2006 00:11:23 +0000 (00:11 +0000)]
seq defaults to a minimal fixed point format that does not lose
information if seq's operands are all fixed point decimal numbers.
You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623',
for example, since the default format now has the same effect.
seq now lets you use %a, %A, %E, %F, and %G formats.
seq now uses long double internally rather than double.
Paul Eggert [Sat, 1 Jul 2006 00:10:21 +0000 (00:10 +0000)]
(seq invocation): seq now uses long double
internally rather than double. It now defaults to a minimal fixed
point format if possible. It lets you use %a, %A, %E, %F, %G.
Don't assume printf doesn't work for numbers that fit in 64 but
not 32 bits; typically they work these days. Improve discussion
of large integers and update the rounding-error numbers.
Paul Eggert [Sat, 1 Jul 2006 00:09:56 +0000 (00:09 +0000)]
(XSTRTOD, DOUBLE): New macros, so that we can support
both double and long double versions.
(XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
Paul Eggert [Sat, 1 Jul 2006 00:09:22 +0000 (00:09 +0000)]
(xstrtold): New decl.
Paul Eggert [Sat, 1 Jul 2006 00:08:56 +0000 (00:08 +0000)]
(gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
want to require the building of c-strtod.o.
Paul Eggert [Sat, 1 Jul 2006 00:08:31 +0000 (00:08 +0000)]
(cu_LIB_CHECK): Remuve SEQ_LIBM, since seq no longer
needs -lm directly.
Paul Eggert [Sat, 1 Jul 2006 00:08:05 +0000 (00:08 +0000)]
(gl_PREREQ): Require gl_C_STRTOD and gl_XSTRTOLD.
Paul Eggert [Sat, 1 Jul 2006 00:07:48 +0000 (00:07 +0000)]
(gl_XSTRTOLD): New macro.
Paul Eggert [Sat, 1 Jul 2006 00:07:26 +0000 (00:07 +0000)]
(seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).
Paul Eggert [Sat, 1 Jul 2006 00:07:06 +0000 (00:07 +0000)]
Don't include <math.h> or <xstrtol.h>; no longer needed.
(isfinite) [!defined isfinite]: New macro.
(separator, terminator): Now points to const.
(first, step, last): Remove.
(usage): Update to match new behavior.
(struct operand, operand): New type.
(scan_arg): Renamed from scan_double_arg, since we no longer use double.
All uses changed.
Compute and return a value of type operand, not double.
(long_double_format): Renamed from valid_format, and now returns a
new format with an "L" added if needed, if the original format was
valid. Allow %a, %A, %E, %F, and %G formats.
(print_numbers): Take numeric values as args rather than from globals.
Print long double, not double.
(get_width_format): Remove.
(get_default_format): New function.
(main): Implement new way of calculating default format.
Don't worry about locale's representation of the decimal point, since
the arguments are always processed in the C locale.
Paul Eggert [Sat, 1 Jul 2006 00:06:35 +0000 (00:06 +0000)]
(neg-2): Adjust to new default format.
(eq-wid-1, eq-wid-2): Resurrect these tests, since the new
implementation should do the right thing.
Paul Eggert [Sat, 1 Jul 2006 00:06:11 +0000 (00:06 +0000)]
Initial revision.
Jim Meyering [Fri, 30 Jun 2006 10:31:42 +0000 (10:31 +0000)]
* tests/stty/basic-1: Work around an intermittent test failure
on HP-UX 11.11. Report and analysis from Bob Proulx.
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
Jim Meyering [Thu, 29 Jun 2006 21:45:51 +0000 (21:45 +0000)]
From Derek R. Price:
* lib/strftime.c: Assume strftime exists.
* m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
Paul Eggert [Wed, 28 Jun 2006 23:51:13 +0000 (23:51 +0000)]
* src/sort.c (main): Support obsolete usages like "sort +1 -2" even when
conforming to POSIX 1003.1-2001, since this is a pure extension to
POSIX.
Paul Eggert [Wed, 28 Jun 2006 23:50:40 +0000 (23:50 +0000)]
* coreutils.texi (sort invocation): 'sort +1 -2' is now supported
even when conforming to POSIX 1003.1-2001.
Paul Eggert [Wed, 28 Jun 2006 23:50:21 +0000 (23:50 +0000)]
(sort invocation): 'sort +1 -2' is now supported
even when conforming to POSIX 1003.1-2001, since this is a pure
extension to POSIX.
Paul Eggert [Wed, 28 Jun 2006 23:49:58 +0000 (23:49 +0000)]
Support obsolete usages like "sort +1 -2" even when conforming to
POSIX 1003.1-2001.
Paul Eggert [Wed, 28 Jun 2006 22:24:54 +0000 (22:24 +0000)]
(CLOSEDIR): Remove. All uses changed to closedir.
Paul Eggert [Wed, 28 Jun 2006 22:24:14 +0000 (22:24 +0000)]
* savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
Paul Eggert [Wed, 28 Jun 2006 22:21:48 +0000 (22:21 +0000)]
* src/system.h (CLOSEDIR): Remove. All uses changed to closedir.
Paul Eggert [Wed, 28 Jun 2006 22:04:56 +0000 (22:04 +0000)]
Fix attribution again.
Paul Eggert [Wed, 28 Jun 2006 22:04:12 +0000 (22:04 +0000)]
Fix attribution for last patch.
Paul Eggert [Wed, 28 Jun 2006 22:00:33 +0000 (22:00 +0000)]
Don't require AC_C_CONST, since it's obsolete.
Require Autoconf 2.60.
Paul Eggert [Wed, 28 Jun 2006 22:00:13 +0000 (22:00 +0000)]
(gl_FUNC_GNU_STRFTIME): Don't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 21:59:41 +0000 (21:59 +0000)]
(_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since it's obsolete.
Paul Eggert [Wed, 28 Jun 2006 21:59:07 +0000 (21:59 +0000)]
(gl_CHECK_ALL_TYPES): Don't require AC_C_CONST, since it's obsolete.
Jim Meyering [Wed, 28 Jun 2006 07:01:42 +0000 (07:01 +0000)]
* src/c99-to-c89.diff: Regenerate, to remove fuzz.
Jim Meyering [Wed, 28 Jun 2006 06:51:06 +0000 (06:51 +0000)]
* tests/mv/i-link-no: Work around HP-UX /bin/sh tracing problem
(set -x when VERBOSE=yes) when stderr is redirected before stdout
causing shell tracing of the stdout redirection to be written to
the stderr file. Avoid problem and test failure on HP-UX by
redirecting stderr last.
* tests/dd/unblock-sync: Order shell file redirections for
stderr and stdout in the common style.
tests/acl: Likewise.
Jim Meyering [Tue, 27 Jun 2006 21:22:15 +0000 (21:22 +0000)]
.PHONY: sc_tight_scope
Jim Meyering [Tue, 27 Jun 2006 20:26:12 +0000 (20:26 +0000)]
* coreutils.texi (wc invocation): Remove ./ prefix from example.
From Padraig Brady.
Jim Meyering [Tue, 27 Jun 2006 18:43:58 +0000 (18:43 +0000)]
* tests/misc/cat-proc: Try to avoid any spurious numeric
differences in frequently-changing /proc/cpuinfo.
Reported by Nelson Beebe.
Jim Meyering [Mon, 26 Jun 2006 15:34:19 +0000 (15:34 +0000)]
* coreutils.texi (wc invocation): Spell out `--files0-from' in
the example. Suggestion from Bob Proulx.
Jim Meyering [Mon, 26 Jun 2006 13:29:48 +0000 (13:29 +0000)]
Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
fd_to_subdirp failure, not just when errno == EACCES.
* src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
rmdir, here, even though rmdir may happen to be adequate.
Jim Meyering [Mon, 26 Jun 2006 13:02:01 +0000 (13:02 +0000)]
* NEWS: rm no longer fails to remove an empty, unreadable directory
* src/remove.c (remove_cwd_entries): If we can't open a directory,
and the failure is not being ignored, try to remove the directory
with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
Problem report and test case from Paul Eggert in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
* tests/rm/empty-inacc: New test, for the above.
Jim Meyering [Mon, 26 Jun 2006 10:33:09 +0000 (10:33 +0000)]
* coreutils.texi (wc invocation): Document new --files0-from option.
Jim Meyering [Mon, 26 Jun 2006 09:12:35 +0000 (09:12 +0000)]
now, trunk passes tests on openbsd
Jim Meyering [Mon, 26 Jun 2006 08:39:59 +0000 (08:39 +0000)]
Avoid a segfault for wc --files0=- < /dev/null.
* src/wc.c (compute_number_width): Return right away if nfiles == 0.
Jim Meyering [Sun, 25 Jun 2006 20:45:32 +0000 (20:45 +0000)]
remove wc --files0-from item
Jim Meyering [Sun, 25 Jun 2006 19:27:19 +0000 (19:27 +0000)]
tweak grammar in comment
Jim Meyering [Sun, 25 Jun 2006 18:26:09 +0000 (18:26 +0000)]
* NEWS: wc accepts a new option --files0-from=FILE, where FILE
contains a list of NUL-separated file names.
* src/wc.c: Include "readtokens.h".
(usage): Describe the new option, and adjust the `Usage':
with this option, no FILE may be specified on the command line.
(main): Handle the new option.
* tests/misc/wc-files0: New tests, for the above.
* tests/misc/wc-files0-from: Likewise.
* tests/misc/Makefile.am (TESTS): Add wc-files0.
Jim Meyering [Sun, 25 Jun 2006 06:55:07 +0000 (06:55 +0000)]
(sleep invocation): Document that accepting
multiple arguments and suffixes are extensions.
Reported by Dan Jacobson.
Jim Meyering [Sat, 24 Jun 2006 05:31:41 +0000 (05:31 +0000)]
* src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions.
Jim Meyering [Thu, 22 Jun 2006 12:50:32 +0000 (12:50 +0000)]
* src/tee.c (tee_files): Rename from tee, to avoid conflict with
the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
Paul Eggert [Tue, 20 Jun 2006 19:20:25 +0000 (19:20 +0000)]
(openat): Use ?:, not if, to work around GCC bug 4210.
Jim Meyering [Tue, 20 Jun 2006 10:19:40 +0000 (10:19 +0000)]
fix typo in comment: s/nerrower/narrower/
Paul Eggert [Tue, 20 Jun 2006 05:59:16 +0000 (05:59 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES):
Use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
cc merely issues a bunch of annoying warnings for --as-needed
(this problem was reported by Bob Proulx). Also, try linking with
-lm to detect a bug in binutils 2.16 (this problem was reported
by Ralf Wildenhues).
Jim Meyering [Mon, 19 Jun 2006 19:13:04 +0000 (19:13 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Jun 2006 19:13:00 +0000 (19:13 +0000)]
Apply this change from gnulib:
2006-06-16 Eric Blake <ebb9@byu.net>
* unsetenv.c [!defined errno]: Assume errno.h declares errno.
Paul Eggert [Mon, 19 Jun 2006 07:19:00 +0000 (07:19 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
--as-needed option if available.
Jim Meyering [Sun, 18 Jun 2006 22:06:42 +0000 (22:06 +0000)]
* Makefile.cfg (local-checks-to-skip): Add changelog-check,
so this check is not run as part of "make distcheck".
Jim Meyering [Sun, 18 Jun 2006 21:52:03 +0000 (21:52 +0000)]
Test for a bug that causes glibc's getcwd to suffer a failed assertion.
* getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and macro.
* getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
also check for glibc-2.4's abort-inducing bug.
Jim Meyering [Sun, 18 Jun 2006 17:08:52 +0000 (17:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 18 Jun 2006 17:08:50 +0000 (17:08 +0000)]
Fix typo (s/neq/ne/) in previous change.
Jim Meyering [Sun, 18 Jun 2006 14:29:29 +0000 (14:29 +0000)]
* getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
Low-probability clean-up should be to use rmdir to get rid of
the just-created directory, not unlink.
Jim Meyering [Sun, 18 Jun 2006 14:00:34 +0000 (14:00 +0000)]
* ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
configure fail, and request a bug report to inform us about it.
Add a comment that, barring reports to the contrary, in 2007 we'll
assume ftruncate is universally available.
Jim Meyering [Sun, 18 Jun 2006 06:31:25 +0000 (06:31 +0000)]
make error output a little clearer
Jim Meyering [Sat, 17 Jun 2006 17:46:33 +0000 (17:46 +0000)]
* tests/rm/inaccessible: Skip this test on systems without openat support.
Reported by Bob Proulx.
Jim Meyering [Fri, 16 Jun 2006 09:57:36 +0000 (09:57 +0000)]
.