tnn
0846a7629f
Merge the following revisions from OpenBSD to let sed(1) handle
...
arbitrarily long lines (closes our PR bin/42261).
openbsd/usr.bin/sed/extern.h 1.5
openbsd/usr.bin/sed/main.c 1.13-1.15
openbsd/usr.bin/sed/misc.c 1.8
openbsd/usr.bin/sed/compile.c 1.25-1.28
openbsd/usr.bin/sed/defs.h 1.4
2010-02-19 16:35:27 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
lukem
d27a41bf3e
Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)
2009-04-13 07:29:55 +00:00
wiz
ccc14bc16a
Sort options. Uppercase GNU.
2008-09-21 16:46:01 +00:00
perry
5a047c798a
Add a -r flag that is an alias for -E, for compatibility with gnu sed.
2008-09-16 13:32:04 +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
christos
80cd289830
provide _POSIX2_LINE_MAX if not there.
2007-04-17 20:30:29 +00:00
gdamore
d9ac053afa
Make TOOL_SED, to allow using our own sed in cases where the host's version
...
is busted in some way.
The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.
Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.
2006-06-18 05:16:41 +00:00
mrg
95c96a60f2
remove sh3/GCC2 hack.
2006-06-02 19:44:48 +00:00
wiz
cc9f77ff20
Clarify location of `}'. Requested by joerg. Bump date.
2006-05-14 14:34:49 +00:00
mrg
117693dfce
when calling compile_tr() add (void *) to the 2nd argument's cast chain.
2006-05-11 17:18:19 +00:00
mrg
0db1500b43
retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4.
2006-04-07 19:38:58 +00:00
christos
472d6fbe72
Coverity CID 878: Remove impossible tests against NULL pointers.
2006-04-02 03:47:26 +00:00
christos
999d9f8f32
Coverity CID 1181: Protect access against NULL.
2006-04-02 03:40:06 +00:00
grant
0bfb4106b0
no trailing comma at end of enum.
2004-11-20 06:40:01 +00:00
matt
d0560e80c6
When adding text due to an a, c, or i command, don't eat the space(s) at
...
the beginning of the lines since the addition is supposed to be "verbatim".
Fix a comment for compile_text indicating it's also used for the 'c' command.
2004-11-17 22:17:54 +00:00
wiz
b8c5588d79
Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255.
2004-07-13 12:11:06 +00:00
wiz
5df46dc9cc
Sort options. From Kouichirou Hiratsuka in PR 26255 (slightly changed).
2004-07-13 12:09:29 +00:00
enami
15f238472a
Yet another s/xmalloc/xrealloc/ so that large multi line text
...
can be added.
2004-07-09 23:43:07 +00:00
mycroft
282d260910
xmalloc()->xrealloc() so that patterns larger than _POSIX2_LINE_MAX*2-1 work.
2004-07-09 16:34:29 +00:00
grant
55ed2aadb5
apply patch in PR to avoid writing to unallocated memory.
...
fixes PR bin/25911 from SHIMIZU Ryo.
2004-06-13 08:34:31 +00:00
grant
1e6747bd53
apply patch in PR to fix argument parsing bug.
...
fixes PR bin/24234 from Keisuke YOSHIDA.
2004-06-13 08:31:30 +00:00
minskim
5b777c8343
Fix a bug that made sed(1) fail if the last character of the line
...
buffer was a backslash. This closes PR bin/25899.
Patch was borrowed from FreeBSD. Their log says:
Fix a bug in sed(1)'s "s" command wherein if an escape ("\"
character) was initiated at the last character of the line buffer,
the Wrong Thing was done and sed barfed by interpreting the
following NUL byte as a digit. Instead, pull up the next buffer
and record that the "\" was last seen.
OK'ed by jmc@.
2004-06-12 04:29:22 +00:00
wiz
5b677ebe3a
Bump Dd for previous.
2004-01-04 02:24:32 +00:00
wiz
86a0205ded
Point people to re_format(7) instead of regex(3) for
...
RE description; from Greg A. Woods.
2004-01-04 02:24:07 +00:00
itojun
434c034061
safer realloc, from openbsd
2003-11-07 04:44:57 +00:00
itojun
bad71a3818
prevent integer underflow. freebsd rev 1.32. via openbsd
2003-11-07 03:58:06 +00:00
uwe
faa73a6d7e
In test_error() use <& to duplicate input descriptors,
...
correct the order of descriptors in redirection that saves stdin.
2003-10-27 20:09:49 +00:00
uwe
03e0a01658
Deoptimize (gcc-sh3-sed hack) only if ${HAVE_GCC3} != "yes".
2003-10-27 13:27:41 +00:00
grant
ba2a3df7f5
call setprogname(), replace a 'sed' with getprogname().
2003-10-16 12:11:12 +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
wiz
2acfaaf7f5
Quote bang.
2003-06-27 09:06:23 +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
wiz
3c4c9d2b57
Remove #if __STDC__. De-__P() and ANSIfy.
2002-06-14 00:41:42 +00:00
wiz
50bdb90860
WARNS=2
2002-06-14 00:37:29 +00:00
itojun
f51456c273
err/errx/warn/warnx do not need \n at the end
2002-06-11 06:06:18 +00:00
wiz
12102d9f6d
Fix format string in usage. bin/16869 by Julio Merino.
2002-05-17 17:27:12 +00:00
thorpej
abcb4fee4e
Use -O0 on SuperH, for now.
2002-04-23 20:21:03 +00:00
wiz
c640510df0
Correct spelling of "delimiter", and remove from ignored-errors lists.
2002-02-26 02:37:28 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
ross
ba8a357387
tweak the description of the n function
2002-02-08 01:20:15 +00:00
ross
8ed9321304
Note that the `n' function does not restart the script.
2002-02-07 04:28:14 +00:00
atatat
c25d406046
Add a -E flag to ed(1) and sed(1) so that they can use extended
...
regular expressions instead of just basic regular expressions.
2002-01-23 19:07:33 +00:00
kleink
3ff80f3170
Accept empty commands separated by semicolons; from Aymeric Vincent in
...
PR standards/15231.
2002-01-14 19:37:30 +00:00
wiz
f86d47668c
Uppercase and unquote section headers, punctuation nit.
2001-12-08 19:14:18 +00:00
atatat
3cbffc40e1
Back out last patch (again). This patch seems to satisfy test suites
...
that I've found, while the previous one did not.
2001-10-02 03:03:02 +00:00
atatat
cfad8d9136
New fix for PR bin/14074. This one doesn't make sed hang.
2001-09-28 21:12:04 +00:00
atatat
2e515657d7
Back out the pr fix. It doesn't work.
2001-09-28 21:10:34 +00:00
atatat
7fb1c88366
Don't attempt to memmove() if psl (pattern space length) is zero.
...
Fixes PR bin/14074: Simple expression core dumps sed.
2001-09-27 05:35:44 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00