From unknown Sat Aug 09 15:54:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12959 <12959@debbugs.gnu.org> To: bug#12959 <12959@debbugs.gnu.org> Subject: Status: "seq -w -1e-3 9" misaligned Reply-To: bug#12959 <12959@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:54:20 +0000 retitle 12959 "seq -w -1e-3 9" misaligned reassign 12959 coreutils submitter 12959 "Marcel B=C3=B6hme" severity 12959 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 22 05:50:51 2012 Received: (at submit) by debbugs.gnu.org; 22 Nov 2012 10:50:52 +0000 Received: from localhost ([127.0.0.1]:60373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbUMt-00047K-9g for submit@debbugs.gnu.org; Thu, 22 Nov 2012 05:50:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42609) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbUMr-00047D-BE for submit@debbugs.gnu.org; Thu, 22 Nov 2012 05:50:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbULT-0008Pn-Ry for submit@debbugs.gnu.org; Thu, 22 Nov 2012 05:49:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:47254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbULT-0008Pj-OY for submit@debbugs.gnu.org; Thu, 22 Nov 2012 05:49:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbULN-00074x-Qw for bug-coreutils@gnu.org; Thu, 22 Nov 2012 05:49:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbULG-0008KO-V1 for bug-coreutils@gnu.org; Thu, 22 Nov 2012 05:49:17 -0500 Received: from mout.web.de ([212.227.15.3]:53445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbULG-0008Fc-KV for bug-coreutils@gnu.org; Thu, 22 Nov 2012 05:49:10 -0500 Received: from 3capp-webde-bs40.server.lan ([172.19.170.40]) by mriweb.server.lan (mriweb001) with ESMTPA (Nemesis) id 0MQazj-1ThNVM22Un-00U9RQ for ; Thu, 22 Nov 2012 11:49:05 +0100 Received: from [137.132.225.108] by 3capp-webde-bs40.server.lan with HTTP; Thu Nov 22 11:49:05 CET 2012 MIME-Version: 1.0 Message-ID: From: =?UTF-8?Q?=22Marcel_B=C3=B6hme=22?= To: bug-coreutils@gnu.org Subject: "seq -w -1e-3 9" misaligned Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 22 Nov 2012 11:49:05 +0100 (CET) Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:whPyj9dqfZLzMYPC0ifMcgRGuK9tFTrDbcspYPLhC3Y LHt+BjdGsGeo+w2MTir0B6g9hg0oaVSJIdnGtt9/Bh164zqzNY Eww3zwAmKkLoUqWLY6a78WXf4IqHo0gpmbyMaGkDfw39OvJubB /p363xnz5RCV9F8rO/8A5N4LwFGf0BGCPADqGx9Dk/wOc9A8wB VRP5adzGj5SRuICR9Fw0kBn3hdc3dj9otkcmhY+NCYOyV2ANih K4rNyfcy/CN2NYc87bAwxAcKW7UAWiwnofkpu9+h3NDvYBsG5f eiLQSeI4mehhxI7g1fcBplbtsbm X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Hi,=0A=0AWhile=20the=20output=20of=20(1)=20"seq=20-w=20-1e-2=209"=20prints= =20the=20width=20as=20expected,=20the=20output=20of=20(2)=20"seq=20-w=20-1e= -3=209"=20does=20not:=0A=20(1)=20vs.=20(2)=0A-0.01=20|=20-0.001=0A00.99=20|= =200.999=0A01.99=20|=201.999=0A02.99=20|=202.999=0A03.99=20|=203.999=0A04.9= 9=20|=204.999=0A05.99=20|=205.999=0A06.99=20|=206.999=0A07.99=20|=207.999= =0A08.99=20|=208.999=0A=0ASimilarly,=20see=20"seq=20-w=20-1e2=20-98"=20vs.= =20"seq=20-w=20-1e3=20-998".=0A=0ACan=20you=20kindly=20confirm=20that=20the= =20bug=20was=20introduced=204=20years=20ago=20in=20the=20following=20commit= :=20http://git.savannah.gnu.org/gitweb/?p=3Dcoreutils.git;a=3Dcommitdiff;h= =3D86e4b778b148bdd82395fdc312ce8d937f303e33=0A=0ABest=20regards,=0A=C2=A0Ma= rcel=0A From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 22 05:59:55 2012 Received: (at 12959) by debbugs.gnu.org; 22 Nov 2012 10:59:55 +0000 Received: from localhost ([127.0.0.1]:60381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbUVe-0004Jd-RI for submit@debbugs.gnu.org; Thu, 22 Nov 2012 05:59:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8882) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbUVb-0004JS-B8 for 12959@debbugs.gnu.org; Thu, 22 Nov 2012 05:59:52 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAMAwUU9023323 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 22 Nov 2012 05:58:30 -0500 Received: from [10.36.116.74] (ovpn-116-74.ams2.redhat.com [10.36.116.74]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qAMAwR7I001531 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 22 Nov 2012 05:58:29 -0500 Message-ID: <50AE0553.9050902@draigBrady.com> Date: Thu, 22 Nov 2012 10:58:27 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: =?UTF-8?B?TWFyY2VsIELDtmhtZQ==?= Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qAMAwUU9023323 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 12959 Cc: 12959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 11/22/2012 10:49 AM, Marcel B=C3=B6hme 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 f= ollowing commit: http://git.savannah.gnu.org/gitweb/?p=3Dcoreutils.git;a=3D= commitdiff;h=3D86e4b778b148bdd82395fdc312ce8d937f303e33 Confirmed: $ ~/git/coreutils/src/seq -w -1e-3 1 -0.001 0.999 $ ~/git/coreutils/src/seq -w -.001 1 -0.001 00.999 I'll have a look. thanks, P=C3=A1draig. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 22 23:25:04 2012 Received: (at 12959) by debbugs.gnu.org; 23 Nov 2012 04:25:04 +0000 Received: from localhost ([127.0.0.1]:33790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbkp1-0007Es-B3 for submit@debbugs.gnu.org; Thu, 22 Nov 2012 23:25:03 -0500 Received: from mout.web.de ([212.227.15.3]:63901) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbkoq-0007EW-0A for 12959@debbugs.gnu.org; Thu, 22 Nov 2012 23:24:52 -0500 Received: from 3capp-webde-bs50.server.lan ([172.19.170.106]) by mriweb.server.lan (mriweb002) with ESMTPA (Nemesis) id 0LqHOg-1T6nl337tw-00e2Pz; Fri, 23 Nov 2012 05:23:21 +0100 Received: from [137.132.225.108] by 3capp-webde-bs50.server.lan with HTTP; Fri Nov 23 05:23:21 CET 2012 MIME-Version: 1.0 Message-ID: From: =?UTF-8?Q?=22Marcel_B=C3=B6hme=22?= To: =?UTF-8?Q?=22P=C3=A1draig_Brady=22?= Subject: Aw: bug#12959: "seq -w -1e-3 9" misaligned Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Nov 2012 05:23:21 +0100 (CET) Importance: normal Sensitivity: Normal X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K0:/VcJ9aXLKUUpEAiaIs2PUeeJRuJ5XqID218a5oQGct8 TzbbTXkNZRdbnvJdoWKyCPKrray607PgbkzYO4PORLTL71JDpQ L7DTGjSpOGGAHbVKqUFpPB/JM4EM9SrDmDWOrcwA54JMd9Em8P OGe+qn79tltdhmYcMAalOGBgqoakN/64fSPPe14ZEX9nr0hKEe IoZ4Fax2gu0/VfsQWSvjDgjEg25FhWOQ3IXrId1JFpX0F9wD/N sj7LY7ityXNpF5bIJ/OZFSybUgAZpsnkL93sNIypph2YRM4lEh iF6U8b1Bm+aUjgA7kCE8ky8zJZ9 X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 12959 Cc: 12959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hi=20P=C3=A1draig,=0A=0AThe=20problem=20seems=20to=20be=20related=20to=20th= e=20computation=20of=20ret.width=20for=20arguments=20with=20exponent=20in= =20method=20scan_arg.=20Apparently,=20the=20ret.precision=20is=20handled=20= in=20the=20presence=20of=20an=20exponent=20while=20the=20ret.width=20is=20n= ot.=0A=0AMore=20evidence:=0A$=20seq=20-w=201e3=201e5=20|=20head=20-2=0A1000= =0A1001=0A$=20seq=20-w=201e3=201e5=20|=20tail=20-2=0A99999=0A100000=0A=0A$= =20seq=20-w=20-1e-1=201=0A-00.1=0A000.9=0A$=20seq=20-w=20-0.1=201=0A-0.1=0A= 00.9=0A=0AThanks!=0A=0ABest=20regards,=0A=20Marcel=0A=0AOn=2011/22/2012=201= 1:58=20AM,=20P=C3=A1draig=20Brady=20wrote:=0A=0AOn=2011/22/2012=2010:49=20A= M,=20Marcel=20B=C3=B6hme=20wrote:=0A>=20Hi,=0A>=0A>=20While=20the=20output= =20of=20(1)=20"seq=20-w=20-1e-2=209"=20prints=20the=20width=20as=20expected= ,=20the=20output=20of=20(2)=20"seq=20-w=20-1e-3=209"=20does=20not:=0A>=20(1= )=20vs.=20(2)=0A>=20-0.01=20|=20-0.001=0A>=2000.99=20|=200.999=0A>=2001.99= =20|=201.999=0A>=2002.99=20|=202.999=0A>=2003.99=20|=203.999=0A>=2004.99=20= |=204.999=0A>=2005.99=20|=205.999=0A>=2006.99=20|=206.999=0A>=2007.99=20|= =207.999=0A>=2008.99=20|=208.999=0A>=0A>=20Similarly,=20see=20"seq=20-w=20-= 1e2=20-98"=20vs.=20"seq=20-w=20-1e3=20-998".=0A>=0A>=20Can=20you=20kindly= =20confirm=20that=20the=20bug=20was=20introduced=204=20years=20ago=20in=20t= he=20following=20commit:=20http://git.savannah.gnu.org/gitweb/?p=3Dcoreutil= s.git;a=3Dcommitdiff;h=3D86e4b778b148bdd82395fdc312ce8d937f303e33=0A=0AConf= irmed:=0A=0A$=20~/git/coreutils/src/seq=20-w=20-1e-3=201=0A-0.001=0A0.999= =0A=0A$=20~/git/coreutils/src/seq=20-w=20-.001=201=0A-0.001=0A00.999=0A=0AI= 'll=20have=20a=20look.=0A=0Athanks,=0AP=C3=A1draig.=0A=0A=0A=0A=0A=0A From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 23 04:30:10 2012 Received: (at 12959-done) by debbugs.gnu.org; 23 Nov 2012 09:30:10 +0000 Received: from localhost ([127.0.0.1]:34114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbpaH-0000IF-5P for submit@debbugs.gnu.org; Fri, 23 Nov 2012 04:30:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26881) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbpa9-0000Gf-TC for 12959-done@debbugs.gnu.org; Fri, 23 Nov 2012 04:30:04 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAN951dj000813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 23 Nov 2012 04:05:02 -0500 Received: from [10.36.116.72] (ovpn-116-72.ams2.redhat.com [10.36.116.72]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qAN94wvr026629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Nov 2012 04:05:00 -0500 Message-ID: <50AF3C36.7050906@draigBrady.com> Date: Fri, 23 Nov 2012 09:04:54 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: =?UTF-8?B?TWFyY2VsIELDtmhtZQ==?= Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned References: <50AE0553.9050902@draigBrady.com> In-Reply-To: <50AE0553.9050902@draigBrady.com> Content-Type: multipart/mixed; boundary="------------030905080501010904020701" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 12959-done Cc: 12959-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is a multi-part message in MIME format. --------------030905080501010904020701 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qAN951dj000813 On 11/22/2012 10:58 AM, P=C3=A1draig Brady wrote: > On 11/22/2012 10:49 AM, Marcel B=C3=B6hme 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=3Dcoreutils.git;a= =3Dcommitdiff;h=3D86e4b778b148bdd82395fdc312ce8d937f303e33 > > 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=C3=A1draig. --------------030905080501010904020701 Content-Type: text/x-patch; name="seq-w-e.diff" Content-Disposition: attachment; filename="seq-w-e.diff" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qAN951dj000813 >From f324be2ff77c97d9551433d1c5fdbb3d791f7ed2 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?P=3DC3=3DA1draig=3D20Brady?=3D Date: Fri, 23 Nov 2012 03:06:07 +0000 Subject: [PATCH] seq: ensure correct width output for scientific notation input MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * src/seq.c (scan_arg): Calculate the width more accurately for numbers specified using scientific notation. * tests/misc/seq.pl: Add test cases for cases that were mishandled * NEWS: Mention the fix. * THANKS.in: Reported by Marcel B=C3=B6hme --- NEWS | 4 ++++ THANKS.in | 1 + src/seq.c | 15 +++++++++++++++ tests/misc/seq.pl | 6 ++++++ 4 files changed, 26 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 15fddd4..8529216 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,10 @@ GNU coreutils NEWS = -*- outline -*- consistently padded with spaces, rather than with zeros for certain wi= dths. [bug introduced in TEXTUTILS-1_22i] =20 + seq -w ensures that for numbers input in scientific notation, + the output numbers are properly aligned and of the correct width. + [This bug was present in "the beginning".] + ** Changes in behavior =20 df --total now prints '-' into the target column (mount point) of the diff --git a/THANKS.in b/THANKS.in index 016a41e..3080cd3 100644 --- a/THANKS.in +++ b/THANKS.in @@ -367,6 +367,7 @@ Marc Haber mh+debian-bugs@zu= gschlus.de Marc Mengel mengel@fnal.gov Marc Lehman schmorp@schmorp.de Marc Olzheim marcolz@stack.nl +Marcel B=C3=B6hme hawkie@web.de Marco Franzen Marco.Franzen@Thyron.com Marcus Brinkmann http://www.marcus-brinkmann.de Marcus Daniels marcus@ee.pdx.edu diff --git a/src/seq.c b/src/seq.c index e5788ca..9c2c51f 100644 --- a/src/seq.c +++ b/src/seq.c @@ -166,6 +166,21 @@ scan_arg (const char *arg) { long exponent =3D strtol (e + 1, NULL, 10); ret.precision +=3D exponent < 0 ? -exponent : 0; + /* Don't account for e.... in the width since this is not outp= ut. */ + ret.width -=3D strlen (arg) - (e - arg); + /* Adjust the width as per the exponent. */ + if (exponent < 0) + { + if (decimal_point) + { + if (e =3D=3D decimal_point + 1) /* undo #. -> # above = */ + ret.width++; + } + else + ret.width++; + exponent =3D -exponent; + } + ret.width +=3D exponent; } } =20 diff --git a/tests/misc/seq.pl b/tests/misc/seq.pl index 351097b..39e5528 100755 --- a/tests/misc/seq.pl +++ b/tests/misc/seq.pl @@ -70,6 +70,12 @@ my @Tests =3D ['eq-wid-6', qw(-w +1 2), {OUT =3D> [qw(1 2)]}], ['eq-wid-7', qw(-w " .1" " .1"), {OUT =3D> [qw(0.1)]}], ['eq-wid-8', qw(-w 9 0.5 10), {OUT =3D> [qw(09.0 09.5 10.0)]}], + # Prior to 8.21, these tests involving numbers in scentific notation + # would fail with misalignment or wrong widths. + ['eq-wid-9', qw(-w -1e-3 1), {OUT =3D> [qw(-0.001 00.999)]}], + ['eq-wid-10',qw(-w -1e-003 1), {OUT =3D> [qw(-0.001 00.999)]}], + ['eq-wid-11',qw(-w -1.e-3 1), {OUT =3D> [qw(-0.001 00.999)]}], + ['eq-wid-12',qw(-w -1.0e-4 1), {OUT =3D> [qw(-0.00010 00.99990)]}], =20 # Prior to coreutils-4.5.11, some of these were not accepted. ['fmt-1', qw(-f %2.1f 1.5 .5 2),{OUT =3D> [qw(1.5 2.0)]}], --=20 1.7.6.4 --------------030905080501010904020701-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 23 05:10:20 2012 Received: (at 12959) by debbugs.gnu.org; 23 Nov 2012 10:10:20 +0000 Received: from localhost ([127.0.0.1]:34148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbqD9-0001jM-FS for submit@debbugs.gnu.org; Fri, 23 Nov 2012 05:10:19 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:53663) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbqD4-0001j7-Ar for 12959@debbugs.gnu.org; Fri, 23 Nov 2012 05:10:14 -0500 Received: from [192.168.1.11] (p4FF746C4.dip.t-dialin.net [79.247.70.196]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MZQdt-1Tpn6M0Oez-00LPce; Fri, 23 Nov 2012 11:08:43 +0100 Message-ID: <50AF4B29.2020402@bernhard-voelker.de> Date: Fri, 23 Nov 2012 11:08:41 +0100 From: Bernhard Voelker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 MIME-Version: 1.0 To: 12959@debbugs.gnu.org, P@draigBrady.com, hawkie@web.de Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned References: <50AE0553.9050902@draigBrady.com> <50AF3C36.7050906@draigBrady.com> In-Reply-To: <50AF3C36.7050906@draigBrady.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:9kcQ6GUsMnU37fqYcdG/3+PScBQ7ugGCTc1o0mry2Jv cSEl0flbgW3R/2TKVdPP3xDvK2BdoxttruW9IjlUDA/pLQdLJ1 p5DnfDdZAMdBWzVga4+ofwe9Ng4aXr7fl0fKVDiX+ncHdOXYQe RIjiYTtgE1vMaNf4yjTm+Hk6feshr87t8/cyfybSx7lMrZOIZT cyS7jc84qs9k8wh2z2IV/4uW5tXYq/GhDdL6Xp9Z8WYM8Rw+K9 BmP0ckTFR+tkUlowU6yRxwZ4TX9HFdqRtdZMqXAXyyQVIBGsHm 8VUWexeGVx+326qkPUpIgtqr71/sLgNkhZJGsIVnrQwP5WNcjU UsbeVViNB+s/+cHXWiV/t1ZoHbY1PnGEDLWpCX5We X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12959 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) On 11/23/2012 10:04 AM, Pádraig Brady wrote: > > The attached should fix this. > * src/seq.c (scan_arg): Calculate the width more accurately > for numbers specified using scientific notation. > * tests/misc/seq.pl: Add test cases for cases that were mishandled s/$/./ > * NEWS: Mention the fix. > * THANKS.in: Reported by Marcel Böhme s/$/./ And as it's a bug, we should mention it: http://bugs.gnu.org/12959 Other than that, the patch looks good. Thanks. Have a nice day, Berny From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 23 05:14:44 2012 Received: (at 12959) by debbugs.gnu.org; 23 Nov 2012 10:14:44 +0000 Received: from localhost ([127.0.0.1]:34153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbqHQ-0001tZ-A4 for submit@debbugs.gnu.org; Fri, 23 Nov 2012 05:14:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34397) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbqHJ-0001tF-UN for 12959@debbugs.gnu.org; Fri, 23 Nov 2012 05:14:38 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qANAD58J015284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 23 Nov 2012 05:13:05 -0500 Received: from [10.36.116.72] (ovpn-116-72.ams2.redhat.com [10.36.116.72]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qANAD2PC008327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Nov 2012 05:13:04 -0500 Message-ID: <50AF4C2E.3030104@draigBrady.com> Date: Fri, 23 Nov 2012 10:13:02 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Bernhard Voelker Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned References: <50AE0553.9050902@draigBrady.com> <50AF3C36.7050906@draigBrady.com> <50AF4B29.2020402@bernhard-voelker.de> In-Reply-To: <50AF4B29.2020402@bernhard-voelker.de> Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id qANAD58J015284 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 12959 Cc: hawkie@web.de, 12959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) On 11/23/2012 10:08 AM, Bernhard Voelker wrote: > On 11/23/2012 10:04 AM, P=C3=A1draig Brady wrote: >> >> The attached should fix this. > >> * src/seq.c (scan_arg): Calculate the width more accurately >> for numbers specified using scientific notation. >> * tests/misc/seq.pl: Add test cases for cases that were mishandled > > s/$/./ > >> * NEWS: Mention the fix. >> * THANKS.in: Reported by Marcel B=C3=B6hme > > s/$/./ > > And as it's a bug, we should mention it: > http://bugs.gnu.org/12959 > > Other than that, the patch looks good. > Thanks. Thanks for the review! P=C3=A1draig. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 23 06:47:35 2012 Received: (at 12959) by debbugs.gnu.org; 23 Nov 2012 11:47:35 +0000 Received: from localhost ([127.0.0.1]:34365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbrjK-0005wQ-Qd for submit@debbugs.gnu.org; Fri, 23 Nov 2012 06:47:35 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:52239) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbrjJ-0005wI-B4 for 12959@debbugs.gnu.org; Fri, 23 Nov 2012 06:47:34 -0500 Received: from [192.168.1.11] (p4FF746C4.dip.t-dialin.net [79.247.70.196]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LnUpq-1T3O1j066I-00hYtw; Fri, 23 Nov 2012 12:46:05 +0100 Message-ID: <50AF61FB.9060405@bernhard-voelker.de> Date: Fri, 23 Nov 2012 12:46:03 +0100 From: Bernhard Voelker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 MIME-Version: 1.0 To: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= Subject: Re: bug#12959: "seq -w -1e-3 9" misaligned References: <50AE0553.9050902@draigBrady.com> <50AF3C36.7050906@draigBrady.com> <50AF4B29.2020402@bernhard-voelker.de> <50AF4C2E.3030104@draigBrady.com> In-Reply-To: <50AF4C2E.3030104@draigBrady.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:zfEgWmxeaxalG8sbNKBeCaZAeOr/pF1F45+huw4kQOo 7tQI8EEeKZHuOw+9LTMIStBTU75EzKRQWac+3VP5mRjskuuNcR 7Nk/57py83k4qgGYkQnTrFkYshF/6WJ0QvwZV52FE1X22D5jhI tWNwxRtFmlN9wDFvyRAkfqjOBFCC6MwcxbcWEVpUS+rmozjbCV aG4trwRxmVMOwvXIe4qRnWTSWkpE7rXkNtpptcGzbwotxxpoKc B/pXLzPhR6ExmNUW0fRPl13zK/Ws4kgnpltJsHleLMhesmXo+U 0fihqjVk+MR2jH9WfXC46/YVMs3mye//NB51aJb/ifX4nfhuYF zEpac+nYvBriKx8Rg9qXBFdjdjgmoY64vsjDNkMAw X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12959 Cc: hawkie@web.de, 12959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) On 11/23/2012 11:13 AM, Pádraig Brady wrote: > Thanks for the review! > Pádraig. No worries, you're welcome. For what it's worth, you may also add an integer test case like "seq -w -1e3 1" which is/was also affected by this bug: $ seq -w -1e3 1 | head -n 2 -1000 -999 Have a nice day, Berny From unknown Sat Aug 09 15:54:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 21 Dec 2012 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator