seq: fix to always honor the step value
commit2238ab574191d30b89a007b760c616efaf9c219c
authorPádraig Brady <P@draigBrady.com>
Tue, 22 Jan 2013 11:13:16 +0000 (22 11:13 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 26 Jan 2013 02:37:13 +0000 (26 02:37 +0000)
tree289b6fe06491cb9c30ceac15d607985c07d0981c
parent326e5855bc8dd3d0c5b2c0e461c65879d2b5694d
seq: fix to always honor the step value

* src/seq.c (main): With 3 positive integer args we were
checking the end value was == "1", rather than the step value.
* tests/misc/seq.pl: Add tests for this case.
Reported by Marcel Böhme in http://bugs.gnu.org/13525
NEWS
src/seq.c
tests/misc/seq.pl