]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Fix the automatic number width formatting in seq.
authorP@draigBrady.com <P@draigBrady.com>
Mon, 9 Jul 2007 15:07:38 +0000 (16:07 +0100)
committerJim Meyering <jim@meyering.net>
Mon, 9 Jul 2007 15:55:57 +0000 (17:55 +0200)
commit86e4b778b148bdd82395fdc312ce8d937f303e33
treeebc16d93da6d1c6247c77d1da1471d0330c59949
parent55c53863a87516e73c055c885dbefe80b003df82
Fix the automatic number width formatting in seq.

* src/seq.c: Fix the -w logic. Ignore spaces and '+'
characters of input numbers when determining width.
Set format correctly for input numbers in scientific notation.
* tests/seq/basic: Add various number width tests.
Details: <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10903>

Signed-off-by: Pádraig Brady <Pádraig Brady P@draigBrady.com>
ChangeLog
src/seq.c
tests/seq/basic