aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/head
Commit message (Collapse)AuthorAgeFilesLines
* MFC: 1.11: mdoc pedantry.Giorgos Keramidas2002-07-151-6/+2
| | | | | | | 1.12: Note that this appeared at least as early as PWB UNIX. Notes: svn path=/stable/4/; revision=100030
* Sync with -current:David Malone2002-02-162-17/+18
| | | | | | | | | | | o Make usage message and man page synopsis reflect the fact that -n and -c are mutually exclusive. o In order to perform faster when doing "head -n", use a pair of fgetln/fwrite instead of getc/putchar. o change a global into a local, misc style fixes. Notes: svn path=/stable/4/; revision=90724
* MFC: markup and misc fixes.Ruslan Ermilov2001-08-161-5/+3
| | | | | | | Approved by: re Notes: svn path=/stable/4/; revision=81777
* MFC: remove whitespace at EOL.Dima Dorfman2001-07-221-1/+1
| | | | Notes: svn path=/stable/4/; revision=80147
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2001-03-061-1/+1
| | | | Notes: svn path=/stable/4/; revision=73879
* MFC: recent mdoc(7) fixes.Ruslan Ermilov2000-12-081-3/+3
| | | | Notes: svn path=/stable/4/; revision=69768
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* fread() returns 0 on eof or error, not EOF. This fixes the followingDag-Erling Smørgrav1998-10-091-2/+2
| | | | | | | | | | | | | bug: "head -c <n>" never exit and loops forever (until it is killed), if the input stream has fewer bytes than specified (n). PR: bin/8225 Submitted-by: FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp> Notes: svn path=/head/; revision=40114
* Setting eval to 1 after calling warn was the original behaviour.Philippe Charnier1997-07-111-1/+2
| | | | Notes: svn path=/head/; revision=27328
* Use err(3) instead of local redefinition.Philippe Charnier1997-07-101-42/+14
| | | | Notes: svn path=/head/; revision=27314
* Support for -c, byte count.Alexander Langer1997-04-062-8/+49
| | | | Notes: svn path=/head/; revision=24665
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Merge from Lite2Peter Wemm1997-03-111-3/+5
| | | | Notes: svn path=/head/; revision=23693
* first check the count and then getWolfram Schneider1996-02-261-1/+1
| | | | | | | | | | the next line of characters and not cause it to first get the characters even if the count (cnt) has become 0. Submitted by: R Bezuidenhout <rbezuide@mikom.csir.co.za> Notes: svn path=/head/; revision=14269
* head(1) ignored EOFs (in certain cases).Joerg Wunsch1995-08-151-3/+2
| | | | | | | | | Closes PR # bin/678: head(1) ignore EOF Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider) Notes: svn path=/head/; revision=10064
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+254
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590