Commit Graph

15669 Commits

Author SHA1 Message Date
Jim Meyering
949f3a3c76 Remove unnecessary cast of argument to free. 2003-05-13 14:31:39 +00:00
Jim Meyering
26532ef1f2 Include "quote.h".
Use quote in diagnostics.  Change many error format strings
from just `%s' to e.g., `error reading %s'.
(pipe_lines): Change type of parameter, n_lines, to uintmax_t.
Rewrite newline-counting loop to use memchr.
2003-05-13 13:25:10 +00:00
Jim Meyering
4641ffbefa *** empty log message *** 2003-05-13 12:42:16 +00:00
Jim Meyering
eb66adf96f *** empty log message *** 2003-05-13 12:42:13 +00:00
Jim Meyering
4421b1a969 (true invocation): Mention that it is possible to
make true --help or true --version (in non-POSIX mode) exit nonzero.
2003-05-13 12:42:02 +00:00
Jim Meyering
8566426512 *** empty log message *** 2003-05-13 10:21:31 +00:00
Jim Meyering
0035f73f02 *** empty log message *** 2003-05-13 10:21:22 +00:00
Jim Meyering
5352c4a62b (elide_tail_lines_pipe): Use `if', not an assert.
Now that assert is no longer used, don't include <assert.h>.
2003-05-13 10:21:13 +00:00
Jim Meyering
320da0f8a8 *** empty log message *** 2003-05-12 15:12:11 +00:00
Jim Meyering
d7b1b67638 *** empty log message *** 2003-05-12 15:07:09 +00:00
Jim Meyering
17adb8367a (ftw_startup): Always call free_cwd after restore_cwd. 2003-05-12 14:51:02 +00:00
Jim Meyering
e55a05cecf *** empty log message *** 2003-05-12 09:36:38 +00:00
Jim Meyering
8f59417689 Include <assert.h>.
(AUTHORS): Add my name.
(elide_tail_lines_pipe): New function.
2003-05-12 09:36:26 +00:00
Jim Meyering
216fe27e16 *** empty log message *** 2003-05-12 08:23:00 +00:00
Jim Meyering
1a056dabfd *** empty log message *** 2003-05-12 08:19:14 +00:00
Jim Meyering
a12ea0b255 (my_strftime): Let the `-' (no-pad) flag affect
the space-padded-by-default conversion specifiers, %e, %k, %l.
2003-05-12 08:19:05 +00:00
Jim Meyering
ab2a67a331 . 2003-05-11 13:20:15 +00:00
Jim Meyering
3c95527a01 . 2003-05-11 09:18:44 +00:00
Jim Meyering
5b5557e3a3 . 2003-05-11 06:35:10 +00:00
Jim Meyering
92f900fdf3 (main): Handle argc < optind. 2003-05-11 06:32:47 +00:00
Jim Meyering
6a0019aa78 (main): Handle argc < optind. 2003-05-10 20:27:56 +00:00
Jim Meyering
4fd6d22880 (main): Handle argc == 0. 2003-05-10 20:27:16 +00:00
Jim Meyering
c2173890f0 (main): Handle argc < optind. 2003-05-10 20:01:32 +00:00
Jim Meyering
2c199e6990 *** empty log message *** 2003-05-10 20:00:59 +00:00
Jim Meyering
9eb8322209 (main): Handle argc == 0. 2003-05-10 20:00:54 +00:00
Jim Meyering
888d3d38d9 Handle argc < optind. 2003-05-10 19:58:04 +00:00
Jim Meyering
a6a4c372c0 (main): Handle argc == 0. 2003-05-10 19:56:49 +00:00
Jim Meyering
74de8e29a8 Handle argc < optind. 2003-05-10 19:56:10 +00:00
Jim Meyering
e2cad9b457 (send_signals): Don't check command line arguments here.
(main): Check them here instead.  Handle argc < optind.
2003-05-10 15:45:00 +00:00
Jim Meyering
9153514495 Handle argc < optind. 2003-05-10 15:39:39 +00:00
Jim Meyering
f01fcb05a9 Handle argc < optind. 2003-05-10 15:00:00 +00:00
Jim Meyering
9b652d0790 Handle argc < optind. 2003-05-10 14:59:04 +00:00
Jim Meyering
8a7f744635 Handle argc < optind. 2003-05-10 14:58:15 +00:00
Jim Meyering
ddc5610b88 (main): Set program_name before first use.
Remove that (redundant) first use.
Don't exit successfully just because --verbose was specified.
Pass 0, not EXIT_SUCCESS, as first argument to error; when that
parameter is 0, error does not exit.
2003-05-10 14:54:23 +00:00
Jim Meyering
ea67851e7e *** empty log message *** 2003-05-10 14:53:51 +00:00
Jim Meyering
cc43b4e784 (syntax-check): Check for `error (EXIT_SUCCESS,'. 2003-05-10 14:53:47 +00:00
Jim Meyering
f6d13ddf6d (main): Handle argc < optind. 2003-05-10 14:39:16 +00:00
Jim Meyering
b037820eb4 (main): Handle argc < optind. 2003-05-10 14:37:12 +00:00
Jim Meyering
7afaa765d3 *** empty log message *** 2003-05-10 14:34:24 +00:00
Jim Meyering
8eb2464d3e (main): Handle argc < optind. 2003-05-10 14:33:24 +00:00
Jim Meyering
007103be2e add semicolon 2003-05-10 14:19:44 +00:00
Jim Meyering
dfd12de6b9 (main): When failing due to too few arguments, also say
that rather than just "Try `uname --help' for more information.".
2003-05-10 14:17:46 +00:00
Jim Meyering
13f9aa90fa *** empty log message *** 2003-05-10 14:14:51 +00:00
Jim Meyering
49f700b61c (main): When failing due to unaccepted arguments,
also say `too many arguments' rather than just `Try `uname --help'
for more information.'.
2003-05-10 13:47:38 +00:00
Jim Meyering
f4c0d12cb0 (main): Handle argc < optind. 2003-05-10 13:42:48 +00:00
Jim Meyering
6c1a29f06f (main): Don't segfault when argc < optind. 2003-05-10 13:39:05 +00:00
Jim Meyering
2de1d40446 (main): Use error, rather than fprintf, for the sake of consistency. 2003-05-10 13:36:50 +00:00
Jim Meyering
0919600481 (main): Test for the case of no arguments before computing n_files. 2003-05-10 13:30:26 +00:00
Jim Meyering
3de521ebf9 (main): Test for `missing argument' before computing n_files. 2003-05-10 13:25:41 +00:00
Jim Meyering
9f763671c0 Include error.h. 2003-05-10 10:41:14 +00:00