Commit Graph

26 Commits

Author SHA1 Message Date
yamt 656cf52a10 a fix from openbsd.
XXX is it better to output a newline?

> revision 1.7
> date: 2000/06/04 23:52:19;  author: aaron;  state: Exp;  lines: +30 -14
> Handle the case where the last line of input does not contain a newline; issue
> reported by marc@snafu.org. The main thing here is we use fgetln() instead of
> fgets(), also giving us the advantage of being able to handle lines of
> unlimited length. Some -Wall and other fixes from millert@ as well.
2005-03-22 21:56:28 +00:00
xtraeme 6dca62f25b Kill __P(), use ANSI function declarations, constify; WARNS=3. 2005-02-17 17:35:47 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
jmmv e4b15274f9 Add missing section header EXIT STATUS. 2003-07-07 12:20:04 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
itojun f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
wiz 10f4f9ee80 Sync usage with man page synopsis. From Ryan Younce in bin/16644, with
slight changes.
2002-05-12 21:28:50 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
christos c3203395bd char -> unsigned char 1998-11-06 23:06:38 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
kleink 645accbc1f Fix typo in SYNOPSIS section. 1997-11-03 18:24:45 +00:00
lukem 263324f188 WARNSify, fix .Nm usage, getopt returns -1 not EOF, deprecate register 1997-10-18 13:21:28 +00:00
mrg 954a0f16a0 getopt returns -1 not EOF. 1997-02-11 09:41:45 +00:00
jtc 8ab9cf7c7c Remove spurious 'Do not', which looks to be the result of a bad cut-n-paste 1995-10-02 20:19:26 +00:00
jtc 71bb6dda25 Sync with 4.4lite2 1995-09-02 05:57:23 +00:00
glass 843a1dd6bf Merged with 4.4Lite 1995-03-26 20:51:24 +00:00
mycroft 75cf3d0500 Better-looking patch for a problem already fixed. 1995-03-20 23:50:43 +00:00
jtc 105b403a51 Minor tweaks.
The most significant problem of not being able to handle text files with
infinately long lines (required by POSIX.2) has not been addressed.
1993-12-31 19:24:42 +00:00
jtc f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
jtc 0942acadf0 Document that utility now conforms to IEEE 1003.2-1992. 1993-08-19 17:16:39 +00:00
jtc 2ea901d347 Make cut 1003.2 compliant by adding -b and -n options. This was trivial,
as we don't support multibyte characters yet.
1993-08-16 22:44:50 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd cbdd011637 Simon J. Gerraty <sjg@zen.void.oz.au>:
cut -f1 outputs a field separator before the first field.
1993-04-02 20:21:47 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00