Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2018 18:40:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217149] seq(1) inconsistently omits 'last' when using float increment
Message-ID:  <bug-217149-8-FXt9GtSWSY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217149-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217149-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217149

fernando.apesteguia@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fernando.apesteguia@gmail.c
                   |                            |om

--- Comment #4 from fernando.apesteguia@gmail.com ---
Created attachment 190550
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190550&action=
=3Dedit
patch to /usr.bin/seq/seq.c

I added some lines on top of Yuri's patch to handle the special case of mis=
sing
'last'. With this new patch:

$ ./seq 1.6 .05 2
1.6
1.65
1.7
1.75
1.8
1.85
1.9
1.95
2

$ ./seq 1.65 .05 2
1.65
1.7
1.75
1.8
1.85
1.9
1.95
2

$ ./seq 1.1 0.1 1.2
1.1
1.2

$ ./seq 1.1 0.3 1.2
1.1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217149-8-FXt9GtSWSY>