ghelmer
56c7e4a9b4
Fix truncation of lines at LINE_MAX characters by dynamically
...
extending line buffers.
PR: bin/76578
2008-02-08 23:04:13 +00:00
jmallett
c449c9befa
Fix typo.
2007-05-17 00:19:56 +00:00
jmallett
070c749233
o) Correct for missing whitespace.
...
o) We don't need to check if ifp == stdin to give the filename, since we already
know that ifn will be "stdin" if it is.
2007-05-17 00:18:01 +00:00
jmallett
4f0511a3a8
Fix confusing misindentation of a closing-brace. (It goes with the switch, not
...
with the while.)
2007-05-17 00:11:58 +00:00
tjr
d7872e5e5f
Remove a bogus check that caused empty lines not to be counted when the
...
-c option was given.
Noticed by: sf
2004-09-14 12:01:18 +00:00
tjr
ab71ec88b7
Add support for multibyte characters.
2004-07-02 23:43:05 +00:00
dwmalone
b4339b74ad
ANSIify function definitions.
...
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
2002-09-04 23:29:10 +00:00
tjr
3594350f00
Use err instead of errx when malloc fails. "malloc" is not a helpful
...
error message.
2002-07-05 09:28:13 +00:00
tjr
37c7624aa9
Skip fields in the manner required by POSIX, and the way V7 did it.
...
MFC after: 1 week
2002-06-21 07:59:31 +00:00
tjr
61c21ff1cf
Newline characters should not participate in line comparisons. Only apparent
...
when -s is used or the last line of the file is missing a newline.
Noticed by the textutils test suite.
MFC after: 1 week
2002-06-21 07:08:34 +00:00
ache
37d7c3a7df
Back out rev 1.19 because
...
1) It breaks uniq for real life languages when "substitute" directive used in
the collating table.
2) It breaks uniq usage in tool chain with other localized utilities which
use collate.
3) To follow LC_COLLATE it is directly allowed for uniq
by POSIX P1003.1 Draft7 (7.3.2). It means that rev 1.19 gains no additional
POSIX conformance.
2002-06-06 13:44:14 +00:00
tjr
264da240fc
Compare lines with strcmp(), not strcoll(). We are interested only in
...
equality, not ordering.
2002-06-06 03:13:08 +00:00
tjr
050d703846
Sync usage() with manual page synopsis.
2002-06-06 03:05:30 +00:00
tjr
60d1ab01d7
Accept an input file name of "-" to mean standard input, as required by
...
P1003.2.
2002-05-30 00:07:14 +00:00
tjr
2d9a2285ef
Fields should be separated by <blank>s, not <space>s according to P1003.2.
2002-05-29 23:55:44 +00:00
tjr
31d09977d0
Don't bother trying to handle "-" arguments ourselves, getopt(3) already
...
does this for us.
2002-05-29 23:52:55 +00:00
ache
ef9121555f
Use LC_ALL to pick collate
...
Noticed by: tjr
2002-04-19 08:16:01 +00:00
imp
0b20191705
remove __P
2002-03-22 01:42:45 +00:00
dwmalone
383583bd4f
Warns cleanups. Add FreeBSD ID to Makefile.
2001-12-03 21:37:35 +00:00
ache
91440b61a3
fix fatal typo
1999-12-10 13:06:53 +00:00
ache
25e78d8b60
toupper -> tolower to match changed behaviour of new grep case fold
1999-10-29 05:11:06 +00:00
ache
d8f93ede38
Cosmetique: use standard prototypes scheme
...
Back out prev. change: toupper is more compatible with sort -f
1999-10-24 04:41:31 +00:00
ache
c870ad3624
toupper->tolower to match what strcasecmp does
1999-10-24 04:21:42 +00:00
ache
9fbc2f9470
Use strcoll to provide the same results as sort and comm
...
Use LINE_MAX for max line size (as comm does)
1999-10-24 04:08:15 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
ache
81b26c0896
Localize it
1998-03-08 20:56:43 +00:00
joerg
caa2e7e2da
Teach comm(1) and uniq(1) about an option for case-insensitive work.
...
PR: 3042
Submitted by: graphix@iastate.edu (Kent Vander Velden)
1997-09-07 15:09:22 +00:00
charnier
16f9b719d4
Use err(3) instead of local redefinition.
1997-08-21 06:51:10 +00:00
imp
141381e1cb
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
peter
297505f8fa
Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.
1997-03-11 13:08:12 +00:00
rgrimes
f9ab90d9d6
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00