Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 12549a6db8 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(shortopts): Remove; no longer needed.
(main): Parse options using POSIX 1003.1-2001 rules if
conforming to that standard.  Do not warn of obsolete options.
2002-02-16 08:00:46 +00:00
Jim Meyering 3741aa834b (_POSIX2_VERSION, POSIX2_VERSION): Remove definitions.
(OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): Likewise.
2002-02-16 07:47:48 +00:00
Jim Meyering e98b44e829 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(short_options): Remove; no longer needed.
(COMMON_SHORT_OPTIONS): New macro.
(main): Parse options using POSIX 1003.1-2001 rules if
conforming to that standard.  Do not warn of obsolete options.
2002-02-16 07:44:20 +00:00
Jim Meyering 9cb0d2f448 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(short_options): Remove; no longer needed.
(COMMON_SHORT_OPTIONS): New macro.
(SEP_STRING_OPTION): Remove; no longer needed.
All uses changed to back to the corresponding short options.
(main): Parse options using POSIX 1003.1-2001 rules if
conforming to that standard.  Do not warn of obsolete options.
2002-02-16 07:42:52 +00:00
Jim Meyering 8232744d27 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(main): Revert to previous behavior, except report
an error and exit if the obsolete syntax is used and if conforming
to the new standard.
2002-02-16 07:39:17 +00:00
Jim Meyering a5e2a85f07 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(short_options): Remove; no longer needed.
(COMMON_SHORT_OPTIONS): New macro.
(STRINGS_OPTION, WIDTH_OPTION): Remove; no longer needed.
All uses changed to back to the corresponding short options.
(main): Parse options using POSIX 1003.1-2001 rules if
conforming to that standard.  Do not warn of obsolete options.
2002-02-16 07:37:15 +00:00
Jim Meyering 1183723f25 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(main): Revert to previous behavior, except report
an error and exit if the obsolete syntax is used and if conforming
to the new standard.
2002-02-16 07:31:27 +00:00
Jim Meyering 014c8f4a02 Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(shortopts): Remove; no longer needed.
(main): Revert to previous behavior, except report
an error and exit if the obsolete syntax is used and if conforming
to the new standard.
2002-02-16 07:29:18 +00:00
Jim Meyering b042392540 . 2002-02-16 07:22:32 +00:00
Jim Meyering 7823d1aaed *** empty log message *** 2002-02-16 07:22:17 +00:00
Jim Meyering f676dbef22 New test for change of 2002-02-05. 2002-02-16 07:22:09 +00:00
Jim Meyering 0798f9740f (TESTS): Add split-a. 2002-02-16 07:21:59 +00:00
Jim Meyering 80cb677ce9 Change 'split' to conform to POSIX. It now accepts an -a or
--suffix-length option, and refuses to generate more files
than there are suffixes.

Document this.
2002-02-15 15:22:32 +00:00
Jim Meyering 18a3d6a8aa from texinfo-4.0g 2002-02-15 09:10:54 +00:00
Jim Meyering 9e2f2e9f31 . 2002-02-13 13:59:39 +00:00
Jim Meyering 98ca17881b *** empty log message *** 2002-02-12 15:46:40 +00:00
Jim Meyering d4e24746dc (DEFAULT_SUFFIX_LENGTH): Define constant.
(suffix_length): Use it here.
(usage): Use it here.
2002-02-12 15:46:34 +00:00
Jim Meyering 65cbf7d1fd Include "dirname.h".
(outbase): Now a global var.
(outfile_end): Remove.
(suffix_length): New var.
(shortopts, longopts, main): Add -a or --suffix-length.
(next_file_name): Implement -a.  Do not extend the suffix length.
Check for file names that are too long.
(main): Move outfile initialization to next_file_name.

(shortopts): Remove -v (a typo).
2002-02-12 15:44:16 +00:00
Jim Meyering edcef60550 *** empty log message *** 2002-02-12 07:40:54 +00:00
Jim Meyering 3e7513f731 *** empty log message *** 2002-02-12 07:40:39 +00:00
Jim Meyering 2efda64d38 (main): Output warnings only if OBSOLETE_OPTION_WARNINGS. 2002-02-12 07:40:24 +00:00
Jim Meyering e34b2d9108 . 2002-02-11 23:27:05 +00:00
Jim Meyering bc4fb9c6f0 *** empty log message *** 2002-02-11 23:26:20 +00:00
Jim Meyering a4376b2603 Add more support for POSIX 1003.1-2001, which requires removal
for support of obsolete "-DIGITS" option syntax in nice, and
which prohibits options with optional arguments like date's
-I option.

Document this.
2002-02-11 23:25:34 +00:00
Jim Meyering 28bcd77302 *** empty log message *** 2002-02-11 23:23:48 +00:00
Jim Meyering 6793260cdd (main): Conform to POSIX 1003.1-2001 if
POSIX2_VERSION says to, otherwise warn of obsolete usage if
OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT.
2002-02-11 23:23:42 +00:00
Jim Meyering d614857d03 Add more support for POSIX 1003.1-2001, which requires removal
for support of obsolete "-DIGITS" option syntax in nice, and
which prohibits options with optional arguments like date's
-I option.

(ISO_8601_OPTION): New enum value.
(long_options): Use it.
(short_options): New constant.

(usage): Document the change.

(main): Conform to POSIX 1003.1-2001 if
POSIX2_VERSION says to, otherwise warn of obsolete usage if
OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT.
2002-02-11 22:58:59 +00:00
Jim Meyering 8abf13fa94 *** empty log message *** 2002-02-11 21:45:02 +00:00
Jim Meyering 154e260c9d (usage): Describe %F, %g, %G, %P, and %R. 2002-02-11 21:44:35 +00:00
Jim Meyering 1b7ac91429 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.
2002-02-11 15:11:05 +00:00
Jim Meyering bbc05d986e . 2002-02-11 15:04:51 +00:00
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