Jim Meyering [Fri, 2 May 2003 21:43:00 +0000 (21:43 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 May 2003 21:42:51 +0000 (21:42 +0000)]
(canonicalize_file_name) [!HAVE_RESOLVEPATH]:
A memory-allocation error could result in heap corruption. Fix it
by also updating `dest' when rpath may be changed by xrealloc.
Jim Meyering [Fri, 2 May 2003 19:52:59 +0000 (19:52 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 May 2003 19:52:48 +0000 (19:52 +0000)]
(usage): Don't mention obsolescent -WIDTH option.
Instead explain about `-' and standard input.
(main): Give a proper diagnostic for e.g., `fmt -c -72'.
Jim Meyering [Fri, 2 May 2003 19:52:34 +0000 (19:52 +0000)]
Give a proper diagnostic for e.g., `fmt -c -72'.
Jim Meyering [Fri, 2 May 2003 19:49:06 +0000 (19:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 May 2003 19:37:23 +0000 (19:37 +0000)]
Include "quote.h".
Use quote() in diagnostics, rather than literal `' marks.
(main): Exit nonzero when unable to open an input file.
Jim Meyering [Fri, 2 May 2003 19:36:48 +0000 (19:36 +0000)]
make sure we fail when unable to open an input file
Jim Meyering [Fri, 2 May 2003 19:20:18 +0000 (19:20 +0000)]
make sure -72x elicits an error
Jim Meyering [Fri, 2 May 2003 19:15:19 +0000 (19:15 +0000)]
(main): Diagnose invalid suffix on obsolescent width specifications like `-72x'.
Jim Meyering [Fri, 2 May 2003 13:03:28 +0000 (13:03 +0000)]
.
Jim Meyering [Fri, 2 May 2003 13:02:54 +0000 (13:02 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 May 2003 13:02:48 +0000 (13:02 +0000)]
bump serial number
Jim Meyering [Fri, 2 May 2003 13:02:40 +0000 (13:02 +0000)]
(jm_MACROS): Require GL_FUNC_READDIR.
Jim Meyering [Fri, 2 May 2003 13:01:28 +0000 (13:01 +0000)]
(GL_FUNC_READDIR): Revive dead file. Change name to
have GL_ (not jm_) prefix. Adjust cache variables similarly.
Create 500 rather than just 300 files, to exercise bug on
Darwin6.5, too.
Jim Meyering [Fri, 2 May 2003 12:53:02 +0000 (12:53 +0000)]
Work around nasty readdir bug with Darwin6.5 and hfs file system.
(IF_READDIR_NEEDS_REWINDDIR): Define.
[! HAVE_WORKING_READDIR] (remove_cwd_entries): If readdir has just
returned NULL and there has been at least one successful unlink or
rmdir call since the opendir or previous rewinddir, then call
rewinddir and reiterate the loop.
Jim Meyering [Fri, 2 May 2003 10:44:41 +0000 (10:44 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 May 2003 10:44:32 +0000 (10:44 +0000)]
Factor out common code.
(readdir_ignoring_dotdirs): New function.
(is_empty_dir): Use it here.
(remove_cwd_entries): Use it here.
Jim Meyering [Fri, 2 May 2003 07:13:10 +0000 (07:13 +0000)]
revive dead file
Jim Meyering [Thu, 1 May 2003 17:52:40 +0000 (17:52 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 17:51:52 +0000 (17:51 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 17:49:47 +0000 (17:49 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 17:49:41 +0000 (17:49 +0000)]
Create 500 rather than just 300 files.
There's a bug in Darwin6.5's readdir that shows up only with
338 or more files.
Fix a bug in this test: `cd $pwd' (not to `..'), now that $tmp
has two components.
Jim Meyering [Thu, 1 May 2003 16:25:34 +0000 (16:25 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 16:25:13 +0000 (16:25 +0000)]
Change type of n_units, n_bytes, n_lines to be `uintmax_t'.
(dump_remainder): Move two declarations `down' into the scope
where they are used.
(xlseek): Return the resulting offset.
(file_lines): Rename parameter, file_length, to end_pos.
(pipe_lines): Don't coerce safe_read return value to `int'.
Adapt tests accordingly.
(pipe_bytes) [struct charbuffer] (nbytes): Change type from `int'
to `unsigned int'.
Change type of `total_bytes' from `int' to `size_t',
since the former wouldn't always be wide enough.
Don't coerce safe_read return value to `int',
and adapt tests accordingly.
Now that testing for a read error no longer involves
using `tmp', handle that case *after* freeing `tmp'.
(start_bytes): Clean up.
(tail_bytes): Now that `n_bytes' may be larger than
OFF_T_MAX, test for that condition and, if it's true, don't
use lseek optimizations.
(parse_options): Don't fail just because N_UNITS is larger than
the maximum size of a file -- tail may be applied to an input
stream (e.g., a pipe) with more data than that.
Jim Meyering [Thu, 1 May 2003 13:22:19 +0000 (13:22 +0000)]
(file_lines): Rename parameter, file_length, to end_pos.
Jim Meyering [Thu, 1 May 2003 13:19:37 +0000 (13:19 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 13:19:28 +0000 (13:19 +0000)]
(syntax-check): Rename from alloc-check.
Also check for SPACE-TAB sequences.
Also check for malloc/calloc/realloc casts.
Jim Meyering [Thu, 1 May 2003 11:49:17 +0000 (11:49 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 May 2003 11:49:12 +0000 (11:49 +0000)]
(start_lines): Rewrite to use memchr. Clean up.
Jim Meyering [Mon, 28 Apr 2003 20:29:27 +0000 (20:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 28 Apr 2003 20:29:22 +0000 (20:29 +0000)]
Send two tokens, not just one, so we don't
make the now-more-picky tsort fail.
Jim Meyering [Mon, 28 Apr 2003 19:41:01 +0000 (19:41 +0000)]
.
Jim Meyering [Mon, 28 Apr 2003 16:07:33 +0000 (16:07 +0000)]
correct grammar in comment
Jim Meyering [Sat, 26 Apr 2003 06:44:50 +0000 (06:44 +0000)]
*** empty log message ***
Jim Meyering [Fri, 25 Apr 2003 18:42:21 +0000 (18:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 25 Apr 2003 18:42:16 +0000 (18:42 +0000)]
(GL_FUNC_GETCWD_PATH_MAX): If PATH_MAX
is not defined, don't run the test, and don't use the wrapper.
Otherwise, on the Hurd, it would take a long time to create
and remove a hierarchy about 4000 levels deep.
Based on a patch from Robert Millan.
Jim Meyering [Fri, 25 Apr 2003 18:20:02 +0000 (18:20 +0000)]
*** empty log message ***
Jim Meyering [Thu, 24 Apr 2003 13:51:05 +0000 (13:51 +0000)]
.
Jim Meyering [Thu, 24 Apr 2003 13:50:32 +0000 (13:50 +0000)]
*** empty log message ***
Jim Meyering [Thu, 24 Apr 2003 13:50:27 +0000 (13:50 +0000)]
(tsort): Remove unnecessary test of have_read_stdin.
(main): Minor syntactic clean-up.
Jim Meyering [Thu, 24 Apr 2003 13:48:54 +0000 (13:48 +0000)]
(tsort): Fail if the input contains an odd number of tokens.
Jim Meyering [Thu, 24 Apr 2003 13:36:03 +0000 (13:36 +0000)]
(only-one): add another test
Jim Meyering [Thu, 24 Apr 2003 09:09:23 +0000 (09:09 +0000)]
add localedir.h
Jim Meyering [Wed, 23 Apr 2003 22:24:55 +0000 (22:24 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Apr 2003 22:24:24 +0000 (22:24 +0000)]
make sure tsort fails given an odd number of input tokens
Jim Meyering [Wed, 23 Apr 2003 13:11:08 +0000 (13:11 +0000)]
update from master
Jim Meyering [Wed, 23 Apr 2003 08:39:10 +0000 (08:39 +0000)]
.
Jim Meyering [Wed, 23 Apr 2003 08:39:00 +0000 (08:39 +0000)]
Fix printf POSIX compatibility bug reported by Ben Harris in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>.
(printf invocation): It's \NNN in the format,
\0NNN in the %b operand.
Jim Meyering [Tue, 22 Apr 2003 08:22:22 +0000 (08:22 +0000)]
Change an occurrence of [ \t] to [\t ].
Jim Meyering [Mon, 21 Apr 2003 18:02:00 +0000 (18:02 +0000)]
(print_esc): Tweak spelling of new variable.
Jim Meyering [Mon, 21 Apr 2003 18:00:49 +0000 (18:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Apr 2003 18:00:24 +0000 (18:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Apr 2003 17:59:21 +0000 (17:59 +0000)]
Fix printf POSIX compatibility bug reported by Ben Harris in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>.
* doc/coreutils.texi (printf invocation): It's \NNN in the format,
\0NNN in the %b operand.
* src/printf.c (usage): Likewise.
(print_esc): New arg OCTAL0 to specify whether \0NNN or \NNN
is desired. All uses changed. Behave like Bash printf if %b
operand uses \NNN where the initial N is not 0.
Jim Meyering [Mon, 21 Apr 2003 16:47:02 +0000 (16:47 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Apr 2003 16:46:56 +0000 (16:46 +0000)]
Add tests for the printf fixes of 2003-04-20.
Jim Meyering [Mon, 21 Apr 2003 15:13:50 +0000 (15:13 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 Apr 2003 15:13:43 +0000 (15:13 +0000)]
New version, now that this file is now on the list in ../Makefile.cfg.
Jim Meyering [Mon, 21 Apr 2003 15:12:46 +0000 (15:12 +0000)]
(cvs_files): Add $(srcdir)/config/depcomp to the list.
Jim Meyering [Mon, 21 Apr 2003 15:09:23 +0000 (15:09 +0000)]
remove SPCs before TAB
Jim Meyering [Thu, 17 Apr 2003 07:36:32 +0000 (07:36 +0000)]
*** empty log message ***
Jim Meyering [Thu, 17 Apr 2003 07:36:24 +0000 (07:36 +0000)]
Remove uses of PROTOTYPE macro.
Jim Meyering [Wed, 16 Apr 2003 22:16:56 +0000 (22:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Apr 2003 22:16:36 +0000 (22:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Apr 2003 21:54:45 +0000 (21:54 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 Apr 2003 21:43:07 +0000 (21:43 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 22:21:43 +0000 (22:21 +0000)]
regenerate, using new ../Makefile.am.in
Jim Meyering [Tue, 15 Apr 2003 22:21:07 +0000 (22:21 +0000)]
regenerate, using new ../Makefile.am.in
Jim Meyering [Tue, 15 Apr 2003 22:18:58 +0000 (22:18 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 22:18:12 +0000 (22:18 +0000)]
Use $(VAR) rather than @VAR@, now that we can rely on automake to
emit a definition for each substituted variable.
Remove definition of PERL.
Jim Meyering [Tue, 15 Apr 2003 17:04:18 +0000 (17:04 +0000)]
remove SPCs before TAB
Jim Meyering [Tue, 15 Apr 2003 16:12:44 +0000 (16:12 +0000)]
remove SPCs before TAB
Jim Meyering [Tue, 15 Apr 2003 16:11:41 +0000 (16:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 06:27:50 +0000 (06:27 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 06:27:18 +0000 (06:27 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 06:26:49 +0000 (06:26 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:23:27 +0000 (06:23 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 Apr 2003 06:22:54 +0000 (06:22 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:22:33 +0000 (06:22 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:21:52 +0000 (06:21 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:21:29 +0000 (06:21 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:19:03 +0000 (06:19 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Tue, 15 Apr 2003 06:18:05 +0000 (06:18 +0000)]
Remove (or replace-with-TAB(s) to retain alignment)
each sequence of spaces before a TAB character.
Jim Meyering [Sun, 13 Apr 2003 09:11:18 +0000 (09:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Apr 2003 09:10:50 +0000 (09:10 +0000)]
(is_empty_dir): Don't closedir (NULL).
Jim Meyering [Sat, 12 Apr 2003 19:54:00 +0000 (19:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Apr 2003 19:52:38 +0000 (19:52 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Apr 2003 19:52:33 +0000 (19:52 +0000)]
add test corresponding to today's too-many-newlines fix
Jim Meyering [Sat, 12 Apr 2003 19:51:36 +0000 (19:51 +0000)]
Giving nl an invalid STYLE argument (in --header-numbering=STYLE (-h),
--body-numbering=STYLE (-b), or --footer-numbering=STYLE (-f)) or
FORMAT (--number-format=FORMAT (-n)) would not give a useful diagnostic.
(main): Fix those problems and remove literal quote marks
(e.g., "`%s'") from format string; instead use "%s" in each format
string and `quote (optarg)' as the corresponding argument.
Also, diagnose all invalid command line options before failing.
Jim Meyering [Sat, 12 Apr 2003 18:44:53 +0000 (18:44 +0000)]
(proc_text): Fix a bug introduced on 2001-11-10,
for textutils-2.0.17, that would make nl output extra newlines
in some cases.
Jim Meyering [Sat, 12 Apr 2003 13:03:01 +0000 (13:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Apr 2003 13:02:57 +0000 (13:02 +0000)]
(TESTS): Add readlink.
Jim Meyering [Sat, 12 Apr 2003 13:02:34 +0000 (13:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Apr 2003 13:02:13 +0000 (13:02 +0000)]
A few tests of the --canonicalize option.
Jim Meyering [Fri, 11 Apr 2003 14:06:02 +0000 (14:06 +0000)]
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
Jim Meyering [Fri, 11 Apr 2003 14:05:51 +0000 (14:05 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Apr 2003 12:55:58 +0000 (12:55 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Apr 2003 12:54:22 +0000 (12:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Apr 2003 12:51:41 +0000 (12:51 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Apr 2003 12:46:24 +0000 (12:46 +0000)]
Remove SPC in SPC-TAB sequence.