Commit Graph
16647 Commits
Author SHA1 Message Date
Jim Meyering 61a679bbea *** empty log message *** 2003-09-07 16:34:01 +00:00
Jim Meyering 101f307f3c *** empty log message *** 2003-09-07 16:32:02 +00:00
Jim Meyering b2c5dd9d70 *** empty log message *** 2003-09-06 21:44:17 +00:00
Jim Meyering 220f481d5f *** empty log message *** 2003-09-06 21:37:44 +00:00
Jim Meyering 29b73a0e5e *** empty log message *** 2003-09-06 09:17:10 +00:00
Jim Meyering 0b8a15929c *** empty log message *** 2003-09-06 08:49:43 +00:00
Jim Meyering 93b183e3ad (enum): Add ALLOW_MISSING_OPTION.
(parse_options): Give a diagnostic for (but still accept) the
deprecated --allow-missing option.
2003-09-06 08:49:37 +00:00
Jim Meyering 00b25daa96 . 2003-09-05 20:55:28 +00:00
Jim Meyering 740b0b6e12 *** empty log message *** 2003-09-05 20:53:37 +00:00
Jim Meyering 1f4715e0e8 Don't ignore -S if input is a pipe. Bug report by Michael McFarland in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-09/msg00008.html>.

(sort_buffer_size): Omit SIZE_BOUND arg.  Compute the
size_bound ourselves. if an input file is a pipe and the user
specified a size, use that size instead of trying to guess the
pipe size.  This has the beneficial side effect of avoiding the
overhead of default_sort_size in that case.  All callers changed.
(sort): Remove static var size; now done by sort_buffer_size.
2003-09-05 20:53:08 +00:00
Jim Meyering 098a0f56ca *** empty log message *** 2003-09-05 20:45:32 +00:00
Jim Meyering 1061c70284 (elide_tail_lines_pipe): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.
(struct linebuffer): Change nbytes and nlines
from unsigned int to size_t.  unsigned int is safe (after the
2003-09-03 patch) but size_t is cleaner.

Standardize on BUFSIZ as opposed to other macro names and values.
(BUFSIZE): Remove.  All uses changed to BUFSIZ.
2003-09-05 20:45:26 +00:00
Jim Meyering 968be3baa5 (pipe_lines, pipe_bytes): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.
(struct linebuffer, struct charbuffer): Change nbytes and nlines from
unsigned int to size_t.  unsigned int is safe (after the 2003-09-03 patch)
but size_t is cleaner.
(pipe_bytes): Likewise for local variable 'i', which was 'int'.

Standardize on BUFSIZ as opposed to other macro names and values.

(BUFSIZ) [!defined BUFSIZ]: Remove. stdio.h has always defined it,
and other code already assumes it's defined.
2003-09-05 20:44:20 +00:00
Jim Meyering 566dee1e96 *** empty log message *** 2003-09-05 19:11:20 +00:00
Jim Meyering 51fe03e45c Standardize on BUFSIZ as opposed to other macro names and values.
(BUFSIZ) [!defined BUFSIZ]: Don't define.
(IO_BUF_SIZE): Remove; replace all uses with sizeof io_buf.
(io_buf): IO_BUF_SIZE -> BUFSIZ.
2003-09-05 14:27:27 +00:00
Jim Meyering eb8fc598b0 *** empty log message *** 2003-09-05 07:56:52 +00:00
Jim Meyering df4a189e23 Wait .5 seconds for backgrounded process
to start, rather than just .1.  Upon failure, print unexpected state.
2003-09-05 07:56:39 +00:00
Jim Meyering 23181a481d *** empty log message *** 2003-09-05 06:59:32 +00:00
Jim Meyering 6d913bbe43 (onearg-2): Output should be empty. 2003-09-05 06:56:38 +00:00
Jim Meyering 1ba2d9615e (step): Default to 1.
(print_numbers): Allow the output to be empty.
(main): The default step is 1, even if LAST < FIRST;
as per documentation.
2003-09-05 06:54:59 +00:00
Jim Meyering 9746b175d7 *** empty log message *** 2003-09-05 06:43:14 +00:00
Jim Meyering 75c85c36af (wget_files): Temporarily disable, until master
versions are restored to ftp.gnu.org.
2003-09-05 06:43:03 +00:00
Jim Meyering 5fe692927c . 2003-09-04 22:28:35 +00:00
Jim Meyering 8863b3d3b3 . 2003-09-04 22:27:47 +00:00
Jim Meyering c4a4716553 *** empty log message *** 2003-09-04 22:27:07 +00:00
Jim Meyering a0a5e1ca28 (AM_INIT_AUTOMAKE): Specify automake-1.7.6. 2003-09-04 22:27:00 +00:00
Jim Meyering b9ebf17c3b *** empty log message *** 2003-09-04 22:25:58 +00:00
Jim Meyering 438038167d sort -t '\0' now uses a NUL tab.
sort option order no longer matters, unless POSIX requires it.
2003-09-04 22:25:53 +00:00
Jim Meyering c39acefee8 (sort invocation): -d now overrides -i.
"whitespace" -> "blanks"; "whitespace" isn't correct.
-t '\0' now specifies a NUL tab.
2003-09-04 22:25:34 +00:00
Jim Meyering d702490003 *** empty log message *** 2003-09-04 22:24:21 +00:00
Jim Meyering 4b60fac4da *** empty log message *** 2003-09-04 22:22:05 +00:00
Jim Meyering 221e569fbf This makes seq's --width (-w) option work properly even when the
endpoint requiring the largest width is negative and smaller than
the other endpoint.

(get_width_format): Include `-' in the set of bytes
allowed in a `simple' number (no decimal point, no exponent).
2003-09-04 22:21:25 +00:00
Jim Meyering 0bfd14e9b6 *** empty log message *** 2003-09-04 22:20:51 +00:00
Jim Meyering a1f9e115c7 *** empty log message *** 2003-09-04 22:13:20 +00:00
Jim Meyering 1871cb1fd0 *** empty log message *** 2003-09-04 22:13:08 +00:00
Jim Meyering 70293df29a (usage): Say "blanks" instead of "whitespace",
Similar fixes for many comments.
(TAB_DEFAULT): New constant, so that we can support NUL as
the field separator.
(tab): Now int, not char.  Initialize to TAB_DEFAULT.
(specify_sort_size): If multiple sizes are specified, use the largest.
(begfield, limfield): Support NUL tab char.
(set_ordering): Do not let -i override -d.
(main): Report an error if incompatible -o or -t options are given.
Report an error for "-t ''".  Allow "-t '\0'" to specify a NUL tab.
2003-09-04 22:12:59 +00:00
Jim Meyering 6503d273a2 [o2, nul-tab]: New tests for changes of 2003-09-02. 2003-09-04 22:11:16 +00:00
Jim Meyering 169a0a3f49 (elide_tail_lines_pipe): Don't truncate return value from safe_read. 2003-09-04 21:43:35 +00:00
Jim Meyering 7750d1ac2d (pipe_lines): Don't truncate return value from safe_read. 2003-09-04 21:43:12 +00:00
Jim Meyering 7cda1f5373 *** empty log message *** 2003-09-03 20:30:40 +00:00
Jim Meyering 04191c7a34 *** empty log message *** 2003-09-03 20:30:31 +00:00
Jim Meyering a42a4b7bd3 (human_readable): Fix bug that rounded 10501 to 10k.
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
2003-09-03 20:30:25 +00:00
Jim Meyering c8b7d2500d *** empty log message *** 2003-09-03 08:53:29 +00:00
Jim Meyering 6f3fcc3168 (AUTHORS): Remove Larry McVoy's name, since the relatively
small amount of code from him was first moved to lib/human.c, and was
subsequently rewritten entirely.
2003-09-03 08:53:19 +00:00
Jim Meyering ae8c5ba47a *** empty log message *** 2003-09-03 08:28:12 +00:00
Jim Meyering 54feed1c1a (relative_time_table): Use tDAY_UNIT for "tomorrow",
"yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
course with correspondingly smaller numbers for tomorrow and
yesterday.  From Tadayoshi Funaba.  Originally installed into
sh-utils on 1999-08-07, but the patch was mistakenly reverted by
the next change to that shared file (but this time in fileutils)
on 1999-08-29.
2003-09-03 08:28:08 +00:00
Jim Meyering ccef10d373 *** empty log message *** 2003-09-02 21:48:18 +00:00
Jim Meyering e23f19a810 *** empty log message *** 2003-08-31 11:26:40 +00:00
Jim Meyering 33ed497451 Reorder/rename the last 3 tests to make them consistent with
those in tests/sha1sum/basic-1.
2003-08-31 11:26:23 +00:00
Jim Meyering 53576d2eda (check-bsd2, check-bsd3): New tests for
--check exit status and BSD SHA1 format (adapted from tests
in tests/md5sum/basic-1).
2003-08-31 11:23:57 +00:00