diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-02-23 15:34:48 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-02-23 15:35:27 -0800 |
commit | 9f60f37a28c37acb66aa38003ccaa07f13abbd9d (patch) | |
tree | b7fb5360fe4b32fe3ac4cbb6b6f2ca80543822cd /NEWS | |
parent | 85c925ef54348d795e3549d7b01ceb2d57096a50 (diff) | |
download | coreutils-9f60f37a28c37acb66aa38003ccaa07f13abbd9d.tar.xz |
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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,9 @@ GNU coreutils NEWS -*- outline -*- it would display an error, requiring --no-dereference to avoid the issue. [bug introduced in coreutils-5.3.0] + shuf -r no longer dumps core if the input is empty. + [bug introduced in coreutils-8.22] + ** New features od accepts a new option: --endian=TYPE to handle inputs with different byte |