summaryrefslogtreecommitdiff
path: root/usr.bin/sed/process.c
AgeCommit message (Expand)Author
2022-01-12Make lputs use psl instead of expecting it to be null-terminated.Martijn van Duren
2018-11-14Make sed's -i flag more compatible with what gsed does.Martijn van Duren
2017-12-13Fix sign compare warnings; OK martijn@Todd C. Miller
2017-02-22Remove unused-with-dead-store variable oldpsanl.Tom Cosgrove
2017-01-21Nuke more whitespace caught in the headlights of "warning:"Kenneth R Westerback
2017-01-20Split error() into error() and warning() so error() can be marked __dead toKenneth R Westerback
2016-10-11Fix an off by one error when no matches were found in a substitute.Martijn van Duren
2016-05-30Make sed use the new REG_STARTEND | REG_NOTBOL combination. This fixes a beginMartijn van Duren
2015-10-26Rename err() to error() to prevent confusion with the stdlib function.mmcc
2015-07-20fix eyesore whitespaceJasper Lievisse Adriaanse
2015-07-19figure out the linewidth at initialization, rather than lateTheo de Raadt
2015-07-17add -i flag to sed to do in-place editing; mostly based on freebsdJasper Lievisse Adriaanse
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
2015-04-13correct multiplication idiom during xreallocarray, and expand appendnumTheo de Raadt
2014-12-12Rework the pointer swap in the 'P' command to make the intentJonathan Gray
2014-12-01sed has a xreallocarray(), but two n*s cases were not replacedTheo de Raadt
2013-11-28unsigned char for ctypeTheo de Raadt
2011-09-17Rewrite the main loop of the "sed s/..." command, to fix multipleIngo Schwarze
2011-07-26Backout previous, naddy@ found the following regression:Ingo Schwarze
2011-07-24Rewrite the main loop of the "sed s/..." command, shortening it by tenIngo Schwarze
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-10-07The 'l' command should not encode newlines. Also document thatTodd C. Miller
2006-10-09pretty. the comma operator should not be used to cram two statements intoTed Unangst
2003-11-07prevent overflow, see freebsd r1.32. also, do nicer reallocs.Ted Unangst
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
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
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-11-19kill more registersMike Pechkin
1999-06-06make G newline if hold is emptyTheo de Raadt
1998-04-30make y command 8 bit clean; Elmar.Bartel@informatik.tu-muenchen.deTheo de Raadt
1997-09-11extra ()Theo de Raadt
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt