diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-03-31 10:21:58 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-03-31 10:24:07 -0700 |
commit | d08381bc261d95502a205f7214686f80383c9692 (patch) | |
tree | 7cb9c052f70fe75fe4474233a6ca500afacc871b /NEWS | |
parent | 2d8ae88a228ac82c725f22aaee24accde8a12dcf (diff) | |
download | coreutils-d08381bc261d95502a205f7214686f80383c9692.tar.xz |
head: fix bug with head -c-N when stdin is not at start
* src/head.c (elide_tail_bytes_file): Fix typo in lseek invocation.
* tests/misc/head-c.sh: Add test for this bug.
* NEWS: Document this.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,10 @@ GNU coreutils NEWS -*- outline -*- date could crash or go into an infinite loop when parsing a malformed TZ="". [bug introduced with the --date='TZ="" ..' parsing feature in coreutils-5.3.0] + head --bytes=-N - no longer fails with a bogus diagnostic when stdin's + seek pointer is not at the beginning. + [bug introduced with the --bytes=-N feature in coreutils-5.0.1] + 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] |