seq: give better diagnostics for invalid formats.
authorSteven Schubiger <schubiger@gmail.com>
Mon, 18 Feb 2008 21:39:22 +0000 (22:39 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 19 Feb 2008 14:41:16 +0000 (15:41 +0100)
commit4f3ff2e7007a6591294e1a656782b5f239f9840c
tree7ed8264c7566377c6730cddaaf3b47567e73151b
parenta1e715698a038af7ff341011a2aeecf6729c8de9
seq: give better diagnostics for invalid formats.

* src/seq.c: (validate_format): New function.
(main): Use it.
* tests/misc/seq (fmt-d, fmt-e): Test for expected diagnostics with
invalid formats.
* NEWS: Mention this change.
* TODO: Remove this item.
[jm: src/seq.c: make diagnostics more consistent
 tests/misc/seq (fmt-eos1): adjust the expected diagnostic ]
NEWS
TODO
src/seq.c
tests/misc/seq