GNU bug report logs - #12959
"seq -w -1e-3 9" misaligned

Previous Next

Package: coreutils;

Reported by: "Marcel Böhme" <hawkie <at> web.de>

Date: Thu, 22 Nov 2012 10:51:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12959: closed ("seq -w -1e-3 9" misaligned)
Date: Fri, 23 Nov 2012 09:31:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 23 Nov 2012 09:04:54 +0000
with message-id <50AF3C36.7050906 <at> draigBrady.com>
and subject line Re: bug#12959: "seq -w -1e-3 9" misaligned
has caused the debbugs.gnu.org bug report #12959,
regarding "seq -w -1e-3 9" misaligned
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12959: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12959
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Marcel Böhme" <hawkie <at> web.de>
To: bug-coreutils <at> gnu.org
Subject: "seq -w -1e-3 9" misaligned
Date: Thu, 22 Nov 2012 11:49:05 +0100 (CET)
Hi,

While the output of (1) "seq -w -1e-2 9" prints the width as expected, the output of (2) "seq -w -1e-3 9" does not:
 (1) vs. (2)
-0.01 | -0.001
00.99 | 0.999
01.99 | 1.999
02.99 | 2.999
03.99 | 3.999
04.99 | 4.999
05.99 | 5.999
06.99 | 6.999
07.99 | 7.999
08.99 | 8.999

Similarly, see "seq -w -1e2 -98" vs. "seq -w -1e3 -998".

Can you kindly confirm that the bug was introduced 4 years ago in the following commit: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=86e4b778b148bdd82395fdc312ce8d937f303e33

Best regards,
 Marcel



[Message part 3 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Marcel Böhme <hawkie <at> web.de>
Cc: 12959-done <at> debbugs.gnu.org
Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned
Date: Fri, 23 Nov 2012 09:04:54 +0000
[Message part 4 (text/plain, inline)]
On 11/22/2012 10:58 AM, Pádraig Brady wrote:
> On 11/22/2012 10:49 AM, Marcel Böhme wrote:
>> Hi,
>>
>> While the output of (1) "seq -w -1e-2 9" prints the width as expected, the output of (2) "seq -w -1e-3 9" does not:
>>   (1) vs. (2)
>> -0.01 | -0.001
>> 00.99 | 0.999
>> 01.99 | 1.999
>> 02.99 | 2.999
>> 03.99 | 3.999
>> 04.99 | 4.999
>> 05.99 | 5.999
>> 06.99 | 6.999
>> 07.99 | 7.999
>> 08.99 | 8.999
>>
>> Similarly, see "seq -w -1e2 -98" vs. "seq -w -1e3 -998".
>>
>> Can you kindly confirm that the bug was introduced 4 years ago in the following commit: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=86e4b778b148bdd82395fdc312ce8d937f303e33
>
> Confirmed:
>
> $ ~/git/coreutils/src/seq -w -1e-3 1
> -0.001
> 0.999
>
> $ ~/git/coreutils/src/seq -w -.001 1
> -0.001
> 00.999

The attached should fix this.

thanks,
Pádraig.
[seq-w-e.diff (text/x-patch, attachment)]

This bug report was last modified 12 years and 233 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.