[Bug 217149] seq(1) inconsistently omits 'last' when using float increment

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 12 18:40:29 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217149

fernando.apesteguia at gmail.com changed:

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

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

I added some lines on top of Yuri's patch to handle the special case of missing
'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

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


More information about the freebsd-bugs mailing list