Commit Graph
15907 Commits
Author SHA1 Message Date
Jim Meyering 21b915db0f *** empty log message *** 2002-02-11 14:35:02 +00:00
Jim Meyering c2fbf52745 Use tail -n +2', rather than tail +2'. 2002-02-11 14:34:49 +00:00
Jim Meyering 5c754a018b *** empty log message *** 2002-02-11 14:32:49 +00:00
Jim Meyering 821811d87f From Bruno Haible
(print_esc): Call print_unicode_char with exit_on_error = false.
2002-02-11 14:32:22 +00:00
Jim Meyering 57eace9a0f *** empty log message *** 2002-02-11 14:29:31 +00:00
Jim Meyering afd24a90a3 2002-02-02 Paul Eggert <eggert@twinsun.com>
Bruno Haible  <bruno@clisp.org>

	* unicodeio.c (unicode_to_mb): New function, extracted from
	print_unicode_char. Call failure callback instead of error.
	(fwrite_success_callback): New function.
	(exit_failure_callback): New function.
	(fallback_failure_callback): New function.
	(print_unicode_char): Call unicode_to_mb.
2002-02-11 14:28:35 +00:00
Jim Meyering 395fbc0389 2002-02-02 Paul Eggert <eggert@twinsun.com>
Bruno Haible  <bruno@clisp.org>

	* unicodeio.c (unicode_to_mb): New function, extracted from
	print_unicode_char. Call failure callback instead of error.
	(fwrite_success_callback): New function.
	(exit_failure_callback): New function.
	(fallback_failure_callback): New function.
	(print_unicode_char): Call unicode_to_mb.
2002-02-11 14:28:09 +00:00
Jim Meyering 19d1db4624 . 2002-02-11 14:13:30 +00:00
Jim Meyering f54a032ad1 *** empty log message *** 2002-02-11 11:00:55 +00:00
Jim Meyering 213d9a655f (TESTS): Add head-pos. 2002-02-11 11:00:46 +00:00
Jim Meyering 71447df741 *** empty log message *** 2002-02-11 11:00:10 +00:00
Jim Meyering e44fbb95ea (head_lines): If we have read too much data, try
to seek back to the position we would have gotten to had we
been reading one byte at a time.  POSIX currently doesn't
require this, but it's easy to do and some software relies on it.
2002-02-11 11:00:00 +00:00
Jim Meyering 5ec71c5990 New file/test for the change of 2002-02-08. 2002-02-11 10:55:51 +00:00
Jim Meyering f1587760e9 *** empty log message *** 2002-02-11 08:37:00 +00:00
Jim Meyering 78c4877776 *** empty log message *** 2002-02-11 08:35:10 +00:00
Jim Meyering 55a1f9d86b (unquote): Make comment a little clearer. 2002-02-11 08:34:47 +00:00
Jim Meyering a759b38acf *** empty log message *** 2002-02-10 21:04:12 +00:00
Jim Meyering 04a5f2605f *** empty log message *** 2002-02-02 09:54:50 +00:00
Jim Meyering 7278cc2e51 (main): Prepend `warning: ' to the diagnostic, so it's
consistent with all of the other `... is obsolete...' diagnostics.
2002-02-02 09:54:38 +00:00
Jim Meyering 4166236b53 Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document this.
(shortopts): New constant.
(main): Check for obsolete options.
2002-02-02 09:53:26 +00:00
Jim Meyering 1f6bad2b30 Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document this.
(shortopts): New constant.
(main): Check for obsolete options.
2002-02-02 09:47:57 +00:00
Jim Meyering 3c25a62eb8 Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document this.
(main): Check for obsolete options.
(shortopts): New constant.
(main): Use -1, not EOF, for getopt_long.
2002-02-02 09:40:50 +00:00
Jim Meyering 5e2bb11618 Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(main): Check for obsolete options.
(short_options): New constant.
2002-02-02 09:37:12 +00:00
Jim Meyering 44dc43bb3d *** empty log message *** 2002-02-02 09:35:52 +00:00
Jim Meyering bf76cb368c Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document it.
(main): Check for obsolete options.
(short_options): New constant.
(SEP_STRING_OPTION): New enum value.
(long_options): Use it.
2002-02-02 09:35:43 +00:00
Jim Meyering c578654cad Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document it.
(main): Check for obsolete options.
(short_options): New constant.
New enum for long options.
2002-02-02 09:31:09 +00:00
Jim Meyering bf3a5672fb Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(usage): Document it.
(main): Check for obsolete options.
(header_mode_option): New constant.
2002-02-02 08:10:04 +00:00
Jim Meyering f87b5cab0c Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(main): Check for obsolete options.
(main): Fix bug: -- -N was treated as -N --.
2002-02-02 07:58:50 +00:00
Jim Meyering 33f9d106bc Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(shortopts): New constant.
(main): Check for obsolete options.
2002-02-02 07:54:49 +00:00
Jim Meyering 793fbbc7f2 (OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): New macros. 2002-02-02 00:06:50 +00:00
Jim Meyering 20c2cd43a9 *** empty log message *** 2002-02-01 23:47:28 +00:00
Jim Meyering 546f26cbb3 * src/shred.c: (VERBOSE_UPDATE): Update every 5 seconds, not every 10.
(wipename): Quote file names only when necessary.
(main): Copy quoted string into malloc'd storage so it doesn't
get clobbered when using -u and --verbose.

Minor clean-up.
* src/shred.c:
Use `NULL' rather than `(time_t *) 0'.
(dopass): Use STREQ in place of strcmp.
Add parentheses around use of nested ternary operator.
2002-02-01 23:43:46 +00:00
Jim Meyering a00579f70b (VERBOSE_UPDATE): Now counts seconds, not bytes.
(dopass): If verbose, output a line every VERBOSE_UPDATE seconds,
and suppress duplicate output lines.  Output a percentage as well
as a count of bytes.

Also, fix comment/code typo regarding how many bytes have been
written; this typo was harmless before, but is no longer harmless with
the above change in effect.
2002-02-01 23:34:57 +00:00
Jim Meyering 61d5f094fd (rm): Add a comment. 2002-02-01 23:30:23 +00:00
Jim Meyering 3e04fcdbb5 Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(parse_obsolescent_option, main): Likewise.
2002-02-01 16:31:55 +00:00
Jim Meyering 31cb36e88f (start_lines): Handle the case in which bytes_read is zero. 2002-02-01 09:12:50 +00:00
Jim Meyering 06506ceb4f *** empty log message *** 2002-01-28 13:51:22 +00:00
Jim Meyering 2c1c1dc64e (ac-check): Remove, now that we no longer have
to duplicate that information.
2002-01-28 13:50:50 +00:00
Jim Meyering 7db90444af *** empty log message *** 2002-01-28 10:10:33 +00:00
Jim Meyering 92747bfbc9 *** empty log message *** 2002-01-28 10:09:08 +00:00
Jim Meyering 467a80a588 *** empty log message *** 2002-01-28 10:08:38 +00:00
Jim Meyering 2d34812b74 *** empty log message *** 2002-01-28 06:30:41 +00:00
Jim Meyering 874d77f17f *** empty log message *** 2002-01-27 07:53:45 +00:00
Jim Meyering 662fff7861 tail -n +2 would perform an extra read after encountering EOF
(start_lines): Detect EOF, inform caller.
(tail_lines): Upon EOF in start_lines, return immediately.
2002-01-27 07:53:37 +00:00
Jim Meyering 2852c1c0a1 split a long line 2002-01-26 22:04:00 +00:00
Jim Meyering bae9a65da4 . 2002-01-26 19:03:43 +00:00
Jim Meyering a08c6469be (jm_MACROS): Require autoconf-2.52g. 2002-01-26 19:03:23 +00:00
Jim Meyering c99c6c304a . TEXTUTILS-2_0_20 2002-01-26 09:56:05 +00:00
Jim Meyering 6cf1df86a5 *** empty log message *** 2002-01-26 09:55:15 +00:00
Jim Meyering b2d18ac8f5 (getdate$U.o): Depend on unlocked-io.h. 2002-01-26 09:55:02 +00:00