summaryrefslogtreecommitdiff
path: root/usr.bin/sed/process.c
AgeCommit message (Expand)Author
2024-12-23sed: Fix handling of an empty pattern spaceMohamed Akram
2024-12-17sed: The change ("c") command should start a new cycle.Valeriy Ushakov
2023-11-26usr.bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2018-08-29sed: Fix -i option behavior with 'q' command.Mark Johnston
2018-07-30sed: unsign some indexes to fix sign-compare warnings.Pedro F. Giffuni
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-02-28Renumber copyright clause 4Warner Losh
2016-08-02sed(1): Revert r303047 "cleanup" and therefore r303572.Pedro F. Giffuni
2016-07-21sed(1): Appease older GCC.Pedro F. Giffuni
2016-07-19sed(1): Assorted cleanups and simplifications.Pedro F. Giffuni
2016-07-17sed(1): Fix off by one introduced in r299211.Pedro F. Giffuni
2016-06-01sed(1): Fix a mismatch and sync with the OpenBSD's commit.Pedro F. Giffuni
2016-05-25sed: convert sed to use REG_STARTEND more explicitly.Pedro F. Giffuni
2016-05-07sed: rewrite the main loop.Pedro F. Giffuni
2015-01-27Fix resource leak and dereference after NULL.Pedro F. Giffuni
2015-01-13Replace __inline GNUism with the standard inline.Pedro F. Giffuni
2015-01-08sed: Address warnings with clang and gcc48.Pedro F. Giffuni
2014-08-08sed(1): Don't force a newline on last line, if input stream doesn't have oneJean-Sébastien Pédron
2014-07-30Fix relative numerical addressing (addr,+N).Jeremie Le Hen
2009-05-25Implement "addr1,+N" ranges - not dissimilar to grep's -A switch.Brian Somers
2008-02-09WARNS fixes:David Malone
2007-06-12Drop the argument to the OUT macro because it can't emitYaroslav Tykhiy
2007-06-12Don't forget to clear out the hold space for each subsequent fileYaroslav Tykhiy
2007-06-12There is a symbolic antonym for REPLACE as a flag to cspace()Yaroslav Tykhiy
2007-04-21Change the semantics of -i (in-place editing) so that it treatsYaroslav Tykhiy
2007-04-02Don't forget to close the range if we branched over its endYaroslav Tykhiy
2007-04-02Prevent foot-shooting in advance: Put the MATCH() macro's valueYaroslav Tykhiy
2007-04-01This trivial change should fix at least 3 similar bugs. All ofYaroslav Tykhiy
2007-03-31Make the comment for cspace() match reality.Yaroslav Tykhiy
2006-05-27Fix using "P" command on empty pattern space. If the "P" command isKirill Ponomarev
2005-04-09Remove unused variables.Stefan Farfeleder
2004-08-09Per letter dated July 22, 1999 remove 3rd clause of Berkeley derivedDiomidis Spinellis
2004-07-14Make the 'y' (translate) command aware of multibyte characters.Tim J. Robbins
2004-07-13Overhaul lputs() to deal with multibyte characters, characters that takeTim J. Robbins
2003-11-04Reimplement in-place editing in a slightly less disgusting manner. Also,Dag-Erling Smørgrav
2003-11-04Whitespace cleanupDag-Erling Smørgrav
2003-11-04ANSIfyDag-Erling Smørgrav
2003-11-02Change the buffer length test in NEEDSP() so that it does notTim J. Robbins
2003-06-05Do not dribble zero bytes into the output, by replacing an obfuscated ifTony Finch
2003-06-04Fix substitution when the regex matches the zero-length string.Tony Finch
2002-09-20Initialize a variable in order to fix when faced with picky compilers.Eric Melville
2002-08-11Correct boundary condition error in `D' and `P' commands when the lastTim J. Robbins
2002-07-19s/inline/__inline/Mark Murray
2002-07-08Make cspace()'s second argument const. Make `escapes' in lputs() const.Tim J. Robbins
2002-07-03Avoid checking whether each line is the last line of the file when we don'tTim J. Robbins
2002-07-03Don't let the pattern space become null if the `x' command is used when theTim J. Robbins
2002-06-24Fix off by one in `y' (transliterate) command which caused the last characterTim J. Robbins
2002-06-22Now that the pattern space contains no trailing newline, modify the `l'Tim J. Robbins
2002-06-22Don't store newlines at the end of each line in the hold/pattern spaces,Tim J. Robbins