From: Jim Meyering Date: Sat, 3 May 2003 15:10:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v5.0.1~606 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbbdaf78f8f9ed34f716198618d5eb88318afd50;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index 94fba6cbcd..584831fb50 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 - - * src/head.c (elide_tail_bytes_pipe): FIXME-- in progress.. - Idea prompted by discussion with David Flynn - 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 * src/tsort.c (tsort): Remove unnecessary test of have_read_stdin.