Commit Graph

23342 Commits

Author SHA1 Message Date
Jim Meyering
2880a90019 *** empty log message *** 2006-07-04 07:28:45 +00:00
Jim Meyering
ba761d685f *** empty log message *** 2006-07-04 07:23:10 +00:00
Jim Meyering
ab4ed7f7f1 Really add wcwidth.m4. 2006-07-04 07:17:34 +00:00
Paul Eggert
6a97405672 Sync from gnulib. 2006-07-04 05:39:07 +00:00
Paul Eggert
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.
2006-07-04 05:38:32 +00:00
Paul Eggert
d380605f01 (gl_PREREQ): Require gl_FUNC_WCWIDTH, to accommodate
sync from gnulib.
2006-07-04 05:37:58 +00:00
Paul Eggert
71e6c80352 (libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,
to accommodate sync from gnulib.
2006-07-04 05:37:11 +00:00
Paul Eggert
948ca71450 Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
MacOS X 10.4.6.  Don't mention <sys/int_types.h>.
2006-07-04 04:50:34 +00:00
Jim Meyering
a9cf203e2d Plug another unusual leak.
(AD_mark_helper): Free malloc'd filename if hash_insert says
that string is already in the hash table.
2006-07-03 17:38:20 +00:00
Jim Meyering
1a29d221b8 * cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
macro is used before the first cycle_check call.
2006-07-03 15:20:23 +00:00
Jim Meyering
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.
2006-07-03 15:10:35 +00:00
Jim Meyering
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.
2006-07-03 13:14:01 +00:00
Jim Meyering
ae87c86b4a * tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):
Add $VG_PATH_PREFIX as a prefix to $PATH
2006-07-03 12:55:25 +00:00
Jim Meyering
d67693ced9 . 2006-07-03 09:10:36 +00:00
Jim Meyering
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.
2006-07-03 08:37:50 +00:00
Jim Meyering
c4a674722c *** empty log message *** 2006-07-03 07:42:30 +00:00
Jim Meyering
f483ac253e (gl_FUNC_FTRUNCATE): Adjust diagnostic to recommend
./configure SKIP_FTRUNCATE_CHECK=yes, rather than env ... ./configure.
Suggestion from Ralf Wildenhues.
2006-07-03 07:42:27 +00:00
Paul Eggert
001f33d478 (intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits.
2006-07-02 09:15:08 +00:00
Paul Eggert
2789dcc1b9 (gl_STDINT_H): Use more-mnemonic identifiers for
test cases, so that config.log is a bit easier to follow.
2006-07-02 09:14:28 +00:00
Jim Meyering
85e93ac1bf *** empty log message *** 2006-07-02 08:29:30 +00:00
Jim Meyering
b1f0257390 New file, from gnulib. Required by stdint.m4. 2006-07-02 08:29:26 +00:00
Paul Eggert
58df3afc50 Include <stdint.h> unconditionally, since we
now assume the stdint module.
2006-07-02 07:09:25 +00:00
Paul Eggert
047839ffb4 Sync stdint module from gnulib. 2006-07-02 07:08:50 +00:00
Paul Eggert
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.
2006-07-01 23:53:05 +00:00
Paul Eggert
2d33a9301b (f-pipe-1): Renamed from f-1.
(test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
2006-07-01 23:50:46 +00:00
Paul Eggert
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.
2006-07-01 23:50:15 +00:00
Paul Eggert
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.
2006-07-01 23:49:46 +00:00
Jim Meyering
aa9b173531 * src/ln.c (do_link): Use new, shorter URL, for ag-review link. 2006-07-01 07:04:52 +00:00
Jim Meyering
530a8d72cc Add ^lib/xstrtold\.c$, so make distcheck passes once again. 2006-07-01 06:50:30 +00:00
Jim Meyering
8939a957c7 *** empty log message *** 2006-07-01 06:44:22 +00:00
Paul Eggert
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.

seq now lets you use %a, %A, %E, %F, and %G formats.

seq now uses long double internally rather than double.
2006-07-01 00:11:23 +00:00
Paul Eggert
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.
2006-07-01 00:10:21 +00:00
Paul Eggert
3964d508e2 (XSTRTOD, DOUBLE): New macros, so that we can support
both double and long double versions.
(XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
2006-07-01 00:09:56 +00:00
Paul Eggert
42ae65127f (xstrtold): New decl. 2006-07-01 00:09:22 +00:00
Paul Eggert
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.
2006-07-01 00:08:56 +00:00
Paul Eggert
6b2cf24aac (cu_LIB_CHECK): Remuve SEQ_LIBM, since seq no longer
needs -lm directly.
2006-07-01 00:08:31 +00:00
Paul Eggert
0f39955197 (gl_PREREQ): Require gl_C_STRTOD and gl_XSTRTOLD. 2006-07-01 00:08:05 +00:00
Paul Eggert
1d30cbe7df (gl_XSTRTOLD): New macro. 2006-07-01 00:07:48 +00:00
Paul Eggert
37fe2d4d3e (seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB). 2006-07-01 00:07:26 +00:00
Paul Eggert
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.
2006-07-01 00:07:06 +00:00
Paul Eggert
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.
2006-07-01 00:06:35 +00:00
Paul Eggert
74d539a32f Initial revision. 2006-07-01 00:06:11 +00:00
Jim Meyering
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
2006-06-30 10:31:42 +00:00
Jim Meyering
2e63aaa8a9 From Derek R. Price:
* lib/strftime.c: Assume strftime exists.
* m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
2006-06-29 21:45:51 +00:00
Paul Eggert
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.
2006-06-28 23:51:13 +00:00
Paul Eggert
59e82cb266 * coreutils.texi (sort invocation): 'sort +1 -2' is now supported
even when conforming to POSIX 1003.1-2001.
2006-06-28 23:50:40 +00:00
Paul Eggert
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.
2006-06-28 23:50:21 +00:00
Paul Eggert
3869e29196 Support obsolete usages like "sort +1 -2" even when conforming to
POSIX 1003.1-2001.
2006-06-28 23:49:58 +00:00
Paul Eggert
ab621d9fa1 (CLOSEDIR): Remove. All uses changed to closedir. 2006-06-28 22:24:54 +00:00
Paul Eggert
699d9c460e * savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement. 2006-06-28 22:24:14 +00:00