]> git.ipfire.org Git - thirdparty/coreutils.git/commit
seq: do not allow 0 as increment value
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 14 Apr 2016 10:38:09 +0000 (12:38 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Thu, 14 Apr 2016 10:38:09 +0000 (12:38 +0200)
commit81e589021d9c47e4fbc4284e82881a9703246476
tree2258556550b9c8155e54cfcf3e50bc2745a52574
parent8faf269250e8eff5f5dd164dfa1d661c34f52ade
seq: do not allow 0 as increment value

* src/seq.c (main): Exit with an error diagnostic when the given
step value is Zero.
(usage): Document it.
* doc/coreutils.texi (seq invocation): Likewise.
* tests/misc/seq.pl: Add tests.
* NEWS (Changes in behavior): Mention the change.
Reported by Маренков Евгений in:
http://bugs.gnu.org/23110
NEWS
doc/coreutils.texi
src/seq.c
tests/misc/seq.pl