From 326e5855bc8dd3d0c5b2c0e461c65879d2b5694d Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Wed, 9 Jan 2013 12:23:35 +0000 Subject: seq: fix misaligment with -w when no precision for start value * src/seq.c (get_default_format): Also account for the case where '.' is auto added to the start value, which is significant when the number sequence narrows. * tests/misc/seq.pl: Add two new tests for the failing cases. * NEWS: Mention the fix. Fixes http://bugs.gnu.org/13394 --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 34754bb17..26939c178 100644 --- a/NEWS +++ b/NEWS @@ -51,6 +51,10 @@ GNU coreutils NEWS -*- outline -*- the output numbers are properly aligned and of the correct width. [This bug was present in "the beginning".] + seq -w ensures correct alignment when the step value includes a precision + while the start value does not, and the number sequence narrows. + [This bug was present in "the beginning".] + seq -s no longer prints an erroneous newline after the first number, and outputs a newline after the last number rather than a trailing separator. [bug introduced in coreutils-8.20] -- cgit v1.2.3-70-g09d2