Commit Graph

77 Commits

Author SHA1 Message Date
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
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
kim fd771a9c66 Fix bug pointed out by Jerry Peek <jpeek@jpeek.com> in PR bin/7674.
If hold space null when doing an 'G', make sure it contains a newline.
Fix copied from revision 1.17 where cgd applied a fix for 'x'.
1999-05-31 04:46:33 +00:00
ross c7790fec57 Punctuation character are magic to -mdoc and can't be used directly
as macro arguments unless combined with \&.
1998-12-24 02:07:36 +00:00
christos ea2df27a8f char -> unsigned char
compensate for not having REG_STARTEND
1998-12-19 22:12:32 +00:00
christos 431b0659ba char -> unsigned char 1998-12-19 22:12:11 +00:00
drochner 20b876f326 avoid malloc(0) 1998-12-08 14:08:50 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mrg 505c7f6151 use int as array index. 1998-03-30 02:29:28 +00:00
enami d9fba75667 .Nm in SYNOPSIS except first one should be followed by "". 1998-01-10 08:29:55 +00:00
thorpej 229db4813c Remove an extra semicolon that broke processing of the "r" directive. 1997-10-22 19:51:58 +00:00
lukem 2237cf10d6 WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF 1997-10-19 23:05:11 +00:00
mrg 59a949ac9c merge lite-2 -- was mostly already done. grr. 1997-10-19 05:23:48 +00:00
jtc 5b466bef97 Changed order of STANDARDS and HISTORY subheads to conform with
specification in mdoc(7).
1997-09-09 07:26:02 +00:00
cgd c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
mikel cea63f2488 add missing backslash; from David Brownlee in PR bin/3321.
also cleanup RCSids a bit.
1997-03-13 04:57:46 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
cjs f271ac2363 Make it clearer how to use alternate delimiters in context patterns. 1996-12-15 08:28:46 +00:00
mark 2754bf6ea9 Use an integer instead of a char with getc() and ungetc() in mf_fgets()
so that it works with compilers that default to unsigned chars
Note: getc() and ungetc() are prototyped to use ints rather than
chars.
1996-05-08 21:36:05 +00:00
cgd 637e8bb002 fix bug pointed out by Dennis Ferguson <dennis@mci.net>. if hold space null
when doing an 'x', make sure it contains a newline.
1995-07-11 04:09:50 +00:00
mycroft 23f31f5bcd The `D' command should only input a new line if the pattern space becomes empty. 1995-03-15 12:12:16 +00:00
mycroft c92e174d74 Fix the P command, and optimize D slightly. 1995-03-15 11:25:10 +00:00
mycroft 9a90db1e8e Remove an old #ifndef of little value. 1995-03-15 11:13:30 +00:00
mycroft 35e8bf367a Compile group commands differently, using a stack rather than calling the
parser recursively.  Don't throw away commands after an end group.
1995-03-09 11:19:24 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc 94f49c37a9 Fixed typo in usage string. 1995-02-23 17:25:23 +00:00
mycroft 8b96645c69 Fix typo. 1994-12-04 06:06:19 +00:00
mycroft b01b8d8a74 Fix thinko in previous commit. 1994-11-15 19:03:25 +00:00
mycroft 49ebbb080e Fix core dump on end of group reported by John Kohl, in a different way. 1994-11-09 19:30:32 +00:00
alm b1dcef2867 echo hello | ./sed 'sl[l]lxl'
historically outputs:
hexlo
1994-04-17 04:19:27 +00:00
mycroft f8e2732fe8 Fix bug with D leaving junk at end of pattern space. 1994-03-24 15:55:01 +00:00
cgd 6cc95e4fee DTRT with empty RE matches. or at least, do something better. fix off
to bostic and dspin.
1994-03-01 06:32:54 +00:00
andrew 14f1242b37 Restore the traditional behaviour of the "n" command. 1994-02-28 07:00:00 +00:00