Commit Graph

  • ab4ed7f7f1 Really add wcwidth.m4. Jim Meyering 2006-07-04 07:17:34 +00:00
  • 6a97405672 Sync from gnulib. Paul Eggert 2006-07-04 05:39:07 +00:00
  • 8e19f6282b 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 2006-07-04 05:38:32 +00:00
  • d380605f01 (gl_PREREQ): Require gl_FUNC_WCWIDTH, to accommodate sync from gnulib. Paul Eggert 2006-07-04 05:37:58 +00:00
  • 71e6c80352 (libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h, to accommodate sync from gnulib. Paul Eggert 2006-07-04 05:37:11 +00:00
  • 948ca71450 Include <sys/types.h> after @FULL_PATH_STDINT_H@, for MacOS X 10.4.6. Don't mention <sys/int_types.h>. Paul Eggert 2006-07-04 04:50:34 +00:00
  • a9cf203e2d 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 2006-07-03 17:38:20 +00:00
  • 1a29d221b8 * cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this macro is used before the first cycle_check call. Jim Meyering 2006-07-03 15:20:23 +00:00
  • a47c5ca291 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 2006-07-03 15:10:35 +00:00
  • 2741ffb8b4 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 2006-07-03 13:14:01 +00:00
  • ae87c86b4a * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT): Add $VG_PATH_PREFIX as a prefix to $PATH Jim Meyering 2006-07-03 12:55:25 +00:00
  • d67693ced9 . Jim Meyering 2006-07-03 09:10:36 +00:00
  • 20592da66e * 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 2006-07-03 08:37:50 +00:00
  • c4a674722c *** empty log message *** Jim Meyering 2006-07-03 07:42:30 +00:00
  • f483ac253e (gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend ./configure SKIP_FTRUNCATE_CHECK=yes, rather than env ... ./configure. Suggestion from Ralf Wildenhues. Jim Meyering 2006-07-03 07:42:27 +00:00
  • 001f33d478 (intmax_t, uintmax_t): Prefer long to long long if both are 64 bits. Paul Eggert 2006-07-02 09:15:08 +00:00
  • 2789dcc1b9 (gl_STDINT_H): Use more-mnemonic identifiers for test cases, so that config.log is a bit easier to follow. Paul Eggert 2006-07-02 09:14:28 +00:00
  • 85e93ac1bf *** empty log message *** Jim Meyering 2006-07-02 08:29:30 +00:00
  • b1f0257390 New file, from gnulib. Required by stdint.m4. Jim Meyering 2006-07-02 08:29:26 +00:00
  • 58df3afc50 Include <stdint.h> unconditionally, since we now assume the stdint module. Paul Eggert 2006-07-02 07:09:25 +00:00
  • 047839ffb4 Sync stdint module from gnulib. Paul Eggert 2006-07-02 07:08:50 +00:00
  • 31acf81fa0 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 2006-07-01 23:53:05 +00:00
  • 2d33a9301b (f-pipe-1): Renamed from f-1. (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests. Paul Eggert 2006-07-01 23:50:46 +00:00
  • 7b49a25b50 (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 2006-07-01 23:50:15 +00:00
  • 0830b1b82a (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. Paul Eggert 2006-07-01 23:49:46 +00:00
  • aa9b173531 * src/ln.c (do_link): Use new, shorter URL, for ag-review link. Jim Meyering 2006-07-01 07:04:52 +00:00
  • 530a8d72cc Add ^lib/xstrtold\.c$, so make distcheck passes once again. Jim Meyering 2006-07-01 06:50:30 +00:00
  • 8939a957c7 *** empty log message *** Jim Meyering 2006-07-01 06:44:22 +00:00
  • 69f1a97138 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. Paul Eggert 2006-07-01 00:11:23 +00:00
  • 248c092226 (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 2006-07-01 00:10:21 +00:00
  • 3964d508e2 (XSTRTOD, DOUBLE): New macros, so that we can support both double and long double versions. (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally. Paul Eggert 2006-07-01 00:09:56 +00:00
  • 42ae65127f (xstrtold): New decl. Paul Eggert 2006-07-01 00:09:22 +00:00
  • 507aaa0037 (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 2006-07-01 00:08:56 +00:00
  • 6b2cf24aac (cu_LIB_CHECK): Remuve SEQ_LIBM, since seq no longer needs -lm directly. Paul Eggert 2006-07-01 00:08:31 +00:00
  • 0f39955197 (gl_PREREQ): Require gl_C_STRTOD and gl_XSTRTOLD. Paul Eggert 2006-07-01 00:08:05 +00:00
  • 1d30cbe7df (gl_XSTRTOLD): New macro. Paul Eggert 2006-07-01 00:07:48 +00:00
  • 37fe2d4d3e (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB). Paul Eggert 2006-07-01 00:07:26 +00:00
  • 6c5f11fbfe 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 2006-07-01 00:07:06 +00:00
  • 75a229e3a3 (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 2006-07-01 00:06:35 +00:00
  • 74d539a32f Initial revision. Paul Eggert 2006-07-01 00:06:11 +00:00
  • 28b3cf0a5c * 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 2006-06-30 10:31:42 +00:00
  • 2e63aaa8a9 From Derek R. Price: * lib/strftime.c: Assume strftime exists. * m4/strftime.m4: Don't call AC_FUNC_STRFTIME. Jim Meyering 2006-06-29 21:45:51 +00:00
  • 4a8016db69 * 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 2006-06-28 23:51:13 +00:00
  • 59e82cb266 * coreutils.texi (sort invocation): 'sort +1 -2' is now supported even when conforming to POSIX 1003.1-2001. Paul Eggert 2006-06-28 23:50:40 +00:00
  • 5b3614ac91 (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 2006-06-28 23:50:21 +00:00
  • 3869e29196 Support obsolete usages like "sort +1 -2" even when conforming to POSIX 1003.1-2001. Paul Eggert 2006-06-28 23:49:58 +00:00
  • ab621d9fa1 (CLOSEDIR): Remove. All uses changed to closedir. Paul Eggert 2006-06-28 22:24:54 +00:00
  • 699d9c460e * savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement. Paul Eggert 2006-06-28 22:24:14 +00:00
  • 0b24b84044 * src/system.h (CLOSEDIR): Remove. All uses changed to closedir. Paul Eggert 2006-06-28 22:21:48 +00:00
  • 3eaec256b7 Fix attribution again. Paul Eggert 2006-06-28 22:04:56 +00:00
  • d54ac21e44 Fix attribution for last patch. Paul Eggert 2006-06-28 22:04:12 +00:00
  • 41872b2d6b Don't require AC_C_CONST, since it's obsolete. Require Autoconf 2.60. Paul Eggert 2006-06-28 22:00:33 +00:00
  • c1f8b7eba9 (gl_FUNC_GNU_STRFTIME): Don't require AC_C_CONST, since it's obsolete. Paul Eggert 2006-06-28 22:00:13 +00:00
  • 84ab5b148f (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since it's obsolete. Paul Eggert 2006-06-28 21:59:41 +00:00
  • 4333e76636 (gl_CHECK_ALL_TYPES): Don't require AC_C_CONST, since it's obsolete. Paul Eggert 2006-06-28 21:59:07 +00:00
  • 78e532a9e4 * src/c99-to-c89.diff: Regenerate, to remove fuzz. Jim Meyering 2006-06-28 07:01:42 +00:00
  • 0e0f6e1050 * 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 2006-06-28 06:51:06 +00:00
  • c4d2d39cf8 .PHONY: sc_tight_scope Jim Meyering 2006-06-27 21:22:15 +00:00
  • 05d3db5c60 * coreutils.texi (wc invocation): Remove ./ prefix from example. From Padraig Brady. Jim Meyering 2006-06-27 20:26:12 +00:00
  • df96ded8ae * tests/misc/cat-proc: Try to avoid any spurious numeric differences in frequently-changing /proc/cpuinfo. Reported by Nelson Beebe. Jim Meyering 2006-06-27 18:43:58 +00:00
  • 80059da4ca * coreutils.texi (wc invocation): Spell out `--files0-from' in the example. Suggestion from Bob Proulx. Jim Meyering 2006-06-26 15:34:19 +00:00
  • 7590adf9b9 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 2006-06-26 13:29:48 +00:00
  • 78b166d1b1 * 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 2006-06-26 13:02:01 +00:00
  • 9cabe37ac9 * coreutils.texi (wc invocation): Document new --files0-from option. Jim Meyering 2006-06-26 10:33:09 +00:00
  • 5cd6710f08 now, trunk passes tests on openbsd Jim Meyering 2006-06-26 09:12:35 +00:00
  • 6def7f6227 Avoid a segfault for wc --files0=- < /dev/null. * src/wc.c (compute_number_width): Return right away if nfiles == 0. Jim Meyering 2006-06-26 08:39:59 +00:00
  • d77808bb40 remove wc --files0-from item Jim Meyering 2006-06-25 20:45:32 +00:00
  • 59bafa5a0c tweak grammar in comment Jim Meyering 2006-06-25 19:27:19 +00:00
  • cc70571401 * NEWS: wc accepts a new option --files0-from=FILE, where FILE contains a list of NUL-separated file names. Jim Meyering 2006-06-25 18:26:09 +00:00
  • b2657ecc6a (sleep invocation): Document that accepting multiple arguments and suffixes are extensions. Reported by Dan Jacobson. Jim Meyering 2006-06-25 06:55:07 +00:00
  • 99fb2bfe1f * src/md5sum.c (DIGEST_BUFFER): Remove now-unused definitions. Jim Meyering 2006-06-24 05:31:41 +00:00
  • b505087420 * src/tee.c (tee_files): Rename from tee, to avoid conflict with the function in glibc's <fcntl.h>. Reported by Andreas Schwab. Jim Meyering 2006-06-22 12:50:32 +00:00
  • 9d5fbcc019 (openat): Use ?:, not if, to work around GCC bug 4210. Paul Eggert 2006-06-20 19:20:25 +00:00
  • 8280381dd7 fix typo in comment: s/nerrower/narrower/ Jim Meyering 2006-06-20 10:19:40 +00:00
  • c88873d3a4 (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). Paul Eggert 2006-06-20 05:59:16 +00:00
  • d5a9087fb1 *** empty log message *** Jim Meyering 2006-06-19 19:13:04 +00:00
  • bee8bb4c9b Apply this change from gnulib: 2006-06-16 Eric Blake <ebb9@byu.net> * unsetenv.c [!defined errno]: Assume errno.h declares errno. Jim Meyering 2006-06-19 19:13:00 +00:00
  • 050ec5cb29 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's --as-needed option if available. Paul Eggert 2006-06-19 07:19:00 +00:00
  • ed91e298a4 * Makefile.cfg (local-checks-to-skip): Add changelog-check, so this check is not run as part of "make distcheck". Jim Meyering 2006-06-18 22:06:42 +00:00
  • 48d2f62213 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 2006-06-18 21:52:03 +00:00
  • a40e199756 *** empty log message *** Jim Meyering 2006-06-18 17:08:52 +00:00
  • 0b1dce2485 Fix typo (s/neq/ne/) in previous change. Jim Meyering 2006-06-18 17:08:50 +00:00
  • bf24627b4f * 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 2006-06-18 14:29:29 +00:00
  • 0399d3ff5f * 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 2006-06-18 14:00:34 +00:00
  • 89c21e7043 make error output a little clearer Jim Meyering 2006-06-18 06:31:25 +00:00
  • ef8e124bb2 * tests/rm/inaccessible: Skip this test on systems without openat support. Reported by Bob Proulx. Jim Meyering 2006-06-17 17:46:33 +00:00
  • a49a6bfe1b . Jim Meyering 2006-06-16 09:57:36 +00:00
  • 3afe316b52 add these two files (a and b) so that I can remove them -- in the eyes of cvsps Jim Meyering 2006-06-16 09:57:11 +00:00
  • a2b4ccc56a remove the files once and for all, so that tools like cvsps (and even 'cvs update') don't think they're still around Jim Meyering 2006-06-16 09:54:29 +00:00
  • 585d681783 Improve permission checks to handle running mkdir test in set-gid directories. Paul Eggert 2006-06-15 17:35:00 +00:00
  • e48234f842 tests/du/basic: Revamp not to hard-code file system block sizes. Jim Meyering 2006-06-14 08:45:33 +00:00
  • 61691e8f40 tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for the files0-from test. Jim Meyering 2006-06-12 20:35:55 +00:00
  • 3807c8d93d (check-texinfo): Use $(_W) and $(W_) instead of assuming grep -w (which is not portable). Paul Eggert 2006-06-12 20:10:25 +00:00
  • b50d64f0ad Makefile.am (EXTRA_DIST): Add .gitignore. Jim Meyering 2006-06-11 10:03:09 +00:00
  • 966a2f95a3 *** empty log message *** Jim Meyering 2006-06-11 08:43:28 +00:00
  • ba2948b764 Setting TIME_STYLE=long-iso in the environment would make the cp/same-file test fail. * tests/envvar-check (vars): Add TIME_STYLE to the list. * tests/cp/same-file: Revert last change. Source the envvar-check script, to ensure that TIME_STYLE settings don't affect these tests. Jim Meyering 2006-06-11 08:12:37 +00:00
  • 13d0cd669e * tests/cp/same-file: Execute 'ls' in the C locale, so that it uses POSIX time stamp formats. Problem reported by John Nixon in <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>. Paul Eggert 2006-06-11 07:59:16 +00:00
  • ff276995ff (__attribute__): Don't define if already defined. Paul Eggert 2006-06-11 07:11:31 +00:00
  • d9f0cce0f4 Mention the AIX-strndup-bug vs. dircolors workaround. Jim Meyering 2006-06-10 09:41:39 +00:00
  • 949ed19da0 Apply this change from gnulib: Jim Meyering 2006-06-10 09:10:12 +00:00