summaryrefslogtreecommitdiff
path: root/usr.bin/sed
AgeCommit message (Collapse)Author
2004-07-20ansi; khalek@linuxgamers.netTheo de Raadt
2004-07-10xmalloc()->xrealloc() so that patterns larger than _POSIX2_LINE_MAX*2-1Otto Moerbeek
work. From mycroft@netbsd. ok millert@
2004-07-09From the other BSDs: fix a bug that made sed(1) fail if the lastOtto Moerbeek
character of the line buffer was a backslash. ok deraadt@
2004-06-131-byte overflow; ryo@nerv.org, otto okTheo de Raadt
2004-04-06- add margins when formatting w/ -TasciiJason McIntyre
- remove some macros that were causing formatting errors
2004-02-17Unbreak numeric flag parsing. Based on a fix from Jared Yanovich; thisOtto Moerbeek
version with millert@. Resolves PR 3677. ok millert@
2004-02-01add paper.txt target;Jason McIntyre
2004-01-31make USD reference a little clearer;Jason McIntyre
2004-01-29- replace old-style macrosJason McIntyre
- mmultiple args do not need to be quoted - uppercase .Sh args - reference 15.sed usd - some other tidy up
2004-01-23`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))Jason McIntyre
discussed with todd@
2004-01-02point people to re_format(7) for a description of basic regularJason McIntyre
expressions, rather than regex(3); from Greg A. Woods;
2003-11-07adress -> address, and a few more; all from Jonathon Gray;Jason McIntyre
(mvme68k/mvme88k) vs.c and (vax) if_le.c ok miod@ isakmpd ones ok ho@
2003-11-07prevent overflow, see freebsd r1.32. also, do nicer reallocs.Ted Unangst
ok millert@ otto@
2003-10-07handle ; terminators for strings like other sed programs do. this isTheo de Raadt
apparently an extension, but without it you cannot express longer labelled sed scripts as one-liners. noted by seb@todesplanet.de apr 2002. also noted by cerille lefevre a bit later. fixed by otto and myself, tested on tree builds to be careful
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-08-27install sed USD;Jason McIntyre
ok mickey@
2003-06-26caldera-licensed docMichael Shalayeff
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-13a few more strlcpyTheo de Raadt
2002-07-09make sed r command not bail out. try sed -e "/a/r"Theo de Raadt
vtamara@wimsey.informatik.uni-kl.de, pr 2755
2002-06-11kill err(3) newlines; ok miod@, deraadt@Jason Peel
2002-04-15Fix sed(1) in the case where a last line is specified and hold spaceTodd C. Miller
is not specified, and then the first part of the pattern space is deleted, when there are two or more input lines, as this results in subtraction of one from an unsigned integral value of '0'. That bogus value is used in one case for a loop (that will run far too many times in this case) and a function to search for a value within a specified range of memory, however now the range of memory is obscenely large and a segmentation (or memory) fault will occur. This is fixed by checking for and appropriately handling a nil pattern space as if the specified search in memory failed, as indeed it obviously will with nil pattern space. From Tim J. Robbins by way of FreeBSD
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-06Print commands in a prettier fashion.Aaron Campbell
2000-04-15Mostly punctuation fixes.Aaron Campbell
2000-03-11Various cleanups and standardizations.Aaron Campbell
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-03-06Some section re-ordering.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
2000-03-04In Unix land we prefer "whitespace" to "white space" or "white-space". AtAaron Campbell
least, this is the impression I get from looking at a lot of Perl docs.
1999-07-04better use of quotesAaron Campbell
1999-07-02consistent .Dd usage; proper format is: .Dd Month DD, YYYYAaron Campbell
1999-06-06make G newline if hold is emptyTheo de Raadt
1998-12-28use \& block on : in macro; rossTheo de Raadt
1998-09-27usr.bin/ man page cleanups, n-sAaron Campbell
1998-09-24correct sccsid, not like it really mattersTodd C. Miller
1998-09-22Terminate our output string correctly if we've gotbrian
an ``a'' command that has an escaped newline on the last line of the last script that we're processing.
1998-06-23Fix snprintf return value usage.Todd C. Miller
1998-04-30make y command 8 bit clean; Elmar.Bartel@informatik.tu-muenchen.deTheo de Raadt
1998-02-15fix a commentTheo de Raadt
1998-01-21Back out last change. ed and sed should not use extended regular expressions.Todd C. Miller
1998-01-18Support extended (modern) instead of basic (obsolescent)Todd C. Miller
regular expressions. hubert.feyrer@rz.uni-regensburg.de
1997-11-14fix for a line continuation bug, more than a year ald. work by mckusick,Theo de Raadt
bostic, mark@linus.demon.co.uk, davidg, and bde.
1997-09-11extra ()Theo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-05-30for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \Theo de Raadt
grep '"' | cut -d':' -f1`; do sed -e '/^.Dd /s/"//g' -e '/^.Dd /s/\(^.Dd [A-Za-z]*\) \(.*\)$/\1, \2/' <$i >x cat x > $i done