summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorАлексей Шилин <rootlexx@mail.ru>2014-01-29 01:23:46 +0000
committerPádraig Brady <P@draigBrady.com>2014-02-09 20:22:33 +0000
commit476ce37019df5b1cb917c5b50e71f9bce5911401 (patch)
tree7e207caa284a827d176567e521222ddda21098d6 /NEWS
parent17d92a9106c6d07cc985e6e14f5501dec3db57f2 (diff)
downloadcoreutils-476ce37019df5b1cb917c5b50e71f9bce5911401.tar.xz
head: fix --lines=-0 outputting nothing if no newline at EOF
* src/head.c (elide_tail_lines_pipe): Just output all input in this case to avoid the issue and also avoid redundant '\n' processing. (elide_tail_lines_seekable): Likewise. * tests/misc/head-elide-tail.pl: Add tests for no '\n' at EOF. * NEWS: Mention the fix. Fixes http://bugs.gnu.org/16329
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0da82accf..e72942b10 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,10 @@ GNU coreutils NEWS -*- outline -*-
when reading the SELinux context for a file.
[bug introduced in coreutils-8.22]
+ head --lines=-0, when the input does not contain a trailing '\n',
+ now copies all input to stdout. Previously nothing was output in this case.
+ [bug introduced with the --lines=-N feature in coreutils-5.0.1]
+
ln -sf now replaces symbolic links whose targets can't exist. Previously
it would display an error, requiring --no-dereference to avoid the issue.
[bug introduced in coreutils-5.3.0]