Commit Graph

18 Commits

Author SHA1 Message Date
darcy fc5c0ee967 Don't include newlines when comparing to prevent errors when lines have
characters that sort lower such as tabs.

This is a temporary fix to allow pullups to existing, supported versions
of NetBSD.  I will follow up with a version for current using the new
getline function.
2009-11-28 03:56:38 +00:00
lukem 35ccf17c8c fix -Wcast-qual issues for WARNS=4 2009-04-11 12:18:45 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
xtraeme ee89c9ff79 Kill __P(), use ANSI function declarations. 2005-02-17 17:31:28 +00:00
wiz 4b3439b23a Add -f to usage. From Kouichirou Hiratsuka in PR 26196. 2004-07-09 11:50:21 +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
hubertf 63d86770bc Add -f option to allow case folding, as in sort(1).
Patch submitted by Andrew Brown <twofsonet@graffiti.com>
1999-02-11 00:53:24 +00:00
lukem 7202b75851 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-18 13:02:59 +00:00
jtc 5a172566ef Fixed bug I introduced when changing printf comparison vs. EOF. Noted by
andreas@planix.com.
1995-09-05 19:57:43 +00:00
jtc 3e4b73c5a6 Sync with 4.4lite2 1995-09-02 05:45:13 +00:00
glass e5a8e93b12 points lost 1995-03-27 15:54:30 +00:00
jtc d5a6ad4fdc The return value of printf is less than 0, not necessarily EOF, on failure. 1995-03-26 20:12:13 +00:00
glass 244eb8b5c5 merged with 4.4Lite 1995-03-26 09:25:49 +00:00
jtc bb8238b9db Check writes to stdout; if a write fails, comm writes a diagnostic message
to standard error and aborts with a non zero exit value.
1994-11-08 18:37:10 +00:00
jtc 2ddbb97f0f #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
1993-10-13 18:33:45 +00:00
jtc f83d35d084 Remove cruft from getopt processing (`-' need not be special cased).
Include appropriate header files to bring prototypes into scope.
Use setlocale() to set locale, and strcoll() for comparisions even though
this won't work until full localization support is completed.
Document the fact that comm now conforms to POSIX.2.
1993-09-21 23:20:34 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00