diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-05-11 18:46:21 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-05-16 01:08:33 +0100 |
commit | 03f6f32c416e4bca1cfe66fe85834a91636f499d (patch) | |
tree | b7a5b44a0197e5b1b847d5771dad823d399cb782 /doc | |
parent | 144d6e5f53b59cec504b1194b4f420144896f9ae (diff) | |
download | coreutils-03f6f32c416e4bca1cfe66fe85834a91636f499d.tar.xz |
sort: --debug: output data independent warnings and info
* src/sort.c (usage): Mention --debug can output warnings to stderr.
Also split the translatable string to aid translation.
(default_key_compare): A new function refactored from main(),
and now also called from the new key_warnings() function.
(key_to_opts): A new function refactored from incompatible_options(),
and now also called from the new key_warnings() function.
(key_numeric): A new function refactored to test if key is numeric.
(key_warnings): A new function to output warnings to stderr,
about questionable use of various options. Currently it warns
about zero length keys and ineffective global options.
(incompatible_options): Refactor out key_to_opts()
(main): Use key_init() to initialize gkey. Refactor out
default_key_compare(). Call key_warnings() in debug mode.
* doc/coreutils.texi (sort invocation): Mention that warnings
are output by --debug.
* tests/misc/sort-debug-warn: A new test for debug warnings.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the new feature
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 6714ada86..cd99bd0b7 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -3944,6 +3944,7 @@ of the line being used in the sort. @item --debug Highlight the portion of each line used for sorting. +Also issue warnings about questionable usage to stderr. @item --batch-size=@var{nmerge} @opindex --batch-size |