]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shuf: with -r, don't dump core if the input is empty
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Feb 2014 23:34:48 +0000 (15:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Feb 2014 23:35:27 +0000 (15:35 -0800)
commit9f60f37a28c37acb66aa38003ccaa07f13abbd9d
treeb7fb5360fe4b32fe3ac4cbb6b6f2ca80543822cd
parent85c925ef54348d795e3549d7b01ceb2d57096a50
shuf: with -r, don't dump core if the input is empty

Problem reported by valiant xiao in <http://bugs.gnu.org/16855>.
* NEWS: Document this.
* src/shuf.c (main): With -r, report an error if the input is empty.
* tests/misc/shuf.sh: Test for the bug.
NEWS
src/shuf.c
tests/misc/shuf.sh