summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-03 15:10:22 +0000
committerJim Meyering <jim@meyering.net>2003-05-03 15:10:22 +0000
commitcbbdaf78f8f9ed34f716198618d5eb88318afd50 (patch)
tree0528ebfac81ffe7f620976c0697cb0f7b468b2ba
parent57c1158f0256f7f2e2204acc44dbfa72c494dbbe (diff)
downloadcoreutils-cbbdaf78f8f9ed34f716198618d5eb88318afd50.tar.xz
*** empty log message ***
-rw-r--r--ChangeLog19
1 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 94fba6cbc..584831fb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,18 @@
* Version 5.0.1.
+ Extend head to accept --lines=-N (--bytes=-N) and to print all
+ but the N lines (bytes) at the end of the file.
+ * src/head.c: Include full-write.h, full-read.h, inttostr.h, quote.h.
+ Use quote() in diagnostics, rather than literal `' marks.
+ (copy_fd, elide_tail_bytes_pipe, elide_tail_bytes_file):
+ New functions.
+ (elide_tail_lines_pipe, elide_tail_lines_file): New functions.
+ (head_file): Reorganize so as to call head from only one place.
+ (main): Likewise, for head_file.
+ Handle new, undocumented option, --presume-input-pipe.
+ Handle negative line and byte counts.
+
* tests/du/8gb: Skip test if the file system of `.' doesn't support
sparse files -- otherwise it'd create a file of size 8GB.
@@ -79,13 +91,6 @@
* tests/misc/tty-eof: Send two tokens, not just one, so we don't
make the now-more-picky tsort fail.
-2003-04-25 Jim Meyering <jim@meyering.net>
-
- * src/head.c (elide_tail_bytes_pipe): FIXME-- in progress..
- Idea prompted by discussion with David Flynn <dav@chess.plus.com>
- Extend head to accept --lines=-N (--bytes=-N) and to print all
- but the N lines (bytes) at the end of the file.
-
2003-04-24 Jim Meyering <jim@meyering.net>
* src/tsort.c (tsort): Remove unnecessary test of have_read_stdin.