summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste
AgeCommit message (Collapse)AuthorFilesLines
2018-08-04fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t;schwarze1-3/+5
pointed out by Andre Stoebe <as at nul not space>
2018-08-04obvious KNF: avoid '!' for tests of non-boolean variables,schwarze1-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
2018-08-04Use POSIX getline(3) rather than the non-standard and error-prone fgetln(3).schwarze1-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@.
2018-01-02When invoked with no file arguments, display usage and fail instead ofguenther1-1/+4
silently doing nothing. suggested by Klemens Nanni (kl3 (at) posteo.org), from FreeBSD r92772 ok millert@
2017-06-28Remove the nonsensical "-s - -" in the third example; quirk reportedschwarze1-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.
2015-12-09Remove NULL-checks before free(). ok tb@mmcc1-3/+2
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-07tame "stdio rpath", satisfies the fopen casesderaadt1-1/+4
ok semarie
2014-11-25Release file descriptors as soon as they are not needed anymore.tobias1-1/+3
ok millert
2010-09-03add an EXIT STATUS section for /usr/bin;jmc1-3/+3
2010-08-12make fgetln fixups look like the man page. correct a pair of brances andtedu1-11/+14
some other style tweaks
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-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
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc1-3/+3
updates to follow;
2009-01-04replace hardcoded exit values with .Ex macros;sobrado1-5/+3
ok jmc@
2007-08-06the ellipsis is not an optional argument; while here, sync the usagesobrado2-7/+7
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-05-30- use a consistent text for STANDARDSjmc1-5/+5
- note which options are extensions to POSIX
2006-05-04Use queue(3) macros instead of custom queue.ray1-17/+13
OK beck@
2006-01-04add an EXAMPLES section adapted from freebsd's page,jmc1-1/+27
courtesy of ray lai;
2004-10-10use err/warnmickey1-20/+15
2003-07-10add missing includesdavid1-2/+3
ok deraadt@ tedu@
2003-06-10mostly ansi cleanup; pval okderaadt1-12/+7
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert2-13/+5
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part 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.millert1-6/+6
2001-11-19kill more registersmpech1-10/+10
millert@ ok
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manaaron1-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.
2000-06-07Check return value of malloc(). Also make the code clearer with respect toaaron1-12/+10
setting lbuf = NULL; millert@ ok
2000-03-10Various cleanups and standardization.aaron1-4/+5
1999-08-24better fix; now if the last line in a file stream does not contain a newline,aaron1-19/+32
construct a null-terminated copy of the buffer returned by fgetln() and process it as normal
1999-08-23fgets() -> fgetln(). When reading files like this, the notion of a `line' isaaron1-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.
1999-06-05- remove trailing white spaceaaron1-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... :/
1998-11-16more -Wallderaadt1-7/+18
1998-09-27usr.bin/ man page cleanups, n-saaron1-6/+10
1997-01-17r?index -> strr?chrmillert1-4/+4
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!millert1-3/+3
1996-06-26rcsidderaadt3-4/+5
1995-10-18initial import of NetBSD treederaadt3-0/+378