summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t;schwarze2018-08-041-3/+5
| | | | pointed out by Andre Stoebe <as at nul not space>
* obvious KNF: avoid '!' for tests of non-boolean variables,schwarze2018-08-041-22/+21
| | | | | | __dead void usage, return from main and return is not a function, err(1, NULL) after malloc failure, and garbage collect (void) casts on functions that usually do not need return value checks
* Use POSIX getline(3) rather than the non-standard and error-prone fgetln(3).schwarze2018-08-041-45/+33
| | | | | | In part based on a diff from Lauri Tirkkonen <lotheac at iki dot fi>. While here, significantly simplify sequential(). No objection when shown on tech@.
* When invoked with no file arguments, display usage and fail instead ofguenther2018-01-021-1/+4
| | | | | | | silently doing nothing. suggested by Klemens Nanni (kl3 (at) posteo.org), from FreeBSD r92772 ok millert@
* Remove the nonsensical "-s - -" in the third example; quirk reportedschwarze2017-06-281-8/+14
| | | | | | | | by Redouan Ait Mallouk <raitmallouk at gmail dot com>. The paste(1) utility allows two equivalent solutions for many tasks involving only one input stream; while here, make that more obvious by always showing both solutions.
* Remove NULL-checks before free(). ok tb@mmcc2015-12-091-3/+2
|
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* tame "stdio rpath", satisfies the fopen casesderaadt2015-10-071-1/+4
| | | | ok semarie
* Release file descriptors as soon as they are not needed anymore.tobias2014-11-251-1/+3
| | | | ok millert
* add an EXIT STATUS section for /usr/bin;jmc2010-09-031-3/+3
|
* make fgetln fixups look like the man page. correct a pair of brances andtedu2010-08-121-11/+14
| | | | some other style tweaks
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-12/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* replace hardcoded exit values with .Ex macros;sobrado2009-01-041-5/+3
| | | | ok jmc@
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-062-7/+7
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - use a consistent text for STANDARDSjmc2007-05-301-5/+5
| | | | - note which options are extensions to POSIX
* Use queue(3) macros instead of custom queue.ray2006-05-041-17/+13
| | | | OK beck@
* add an EXAMPLES section adapted from freebsd's page,jmc2006-01-041-1/+27
| | | | courtesy of ray lai;
* use err/warnmickey2004-10-101-20/+15
|
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* mostly ansi cleanup; pval okderaadt2003-06-101-12/+7
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-6/+6
|
* kill more registersmpech2001-11-191-10/+10
| | | | millert@ ok
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* Check return value of malloc(). Also make the code clearer with respect toaaron2000-06-071-12/+10
| | | | setting lbuf = NULL; millert@ ok
* Various cleanups and standardization.aaron2000-03-101-4/+5
|
* better fix; now if the last line in a file stream does not contain a newline,aaron1999-08-241-19/+32
| | | | | construct a null-terminated copy of the buffer returned by fgetln() and process it as normal
* fgets() -> fgetln(). When reading files like this, the notion of a `line' isaaron1999-08-231-9/+11
| | | | | | | more appropriate than C strings. Now paste won't die if it encounters null characters. If the last line in the stream does not contain a newline, we now say "incomplete line" instead of lying about "line too long". fgetln() uses realloc, so now we're not limited to POSIX_LINE_MAX.
* - remove trailing white spaceaaron1999-06-051-2/+2
| | | | | | | - remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
* more -Wallderaadt1998-11-161-7/+18
|
* usr.bin/ man page cleanups, n-saaron1998-09-271-6/+10
|
* r?index -> strr?chrmillert1997-01-171-4/+4
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-263-4/+5
|
* initial import of NetBSD treederaadt1995-10-183-0/+378