summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/defs.h
Commit message (Collapse)AuthorAgeFilesLines
* sed(1): Don't force a newline on last line, if input stream doesn't have onedumbbell2014-08-081-0/+1
| | | | | | | | | | | | | | | | While here, change how we check if the current line is the last one. Before, we just checked if there were more files after the current one. Now, we check the actual content of those files: they files may not have a line at all. This matches the definition of the "last line" by the Open Group. The new behavior is closer to GNU sed. PR: 160745 Phabric: https://phabric.freebsd.org/D431 Reviewed by: jilles Approved by: jilles Exp-run by: antoine
* Implement "addr1,+N" ranges - not dissimilar to grep's -A switch.brian2009-05-251-2/+3
| | | | | PR: 134856 Submitted by: Jeremie Le Hen - jeremie at le-hen dot org
* WARNS fixes:dwmalone2008-02-091-3/+3
| | | | | | | | | | 1) Add missing parens around assignment that is compared to zero. 2) Make some variables that only take non-negative values unsigned. 3) Some casts/type changes to fix other constness warnings. 4) Make one variable a const char *. 5) Make sure termwidth is positive, it doesn't make sense for it to be negative. Approved by: dds
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.ssouhlal2007-07-041-0/+1
| | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley deriveddds2004-08-091-4/+0
| | | | | | software (original contributor). Reviewed by: imp
* Make the 'y' (translate) command aware of multibyte characters.tjr2004-07-141-1/+15
|
* Remove local redefinition for err(). Add usage().charnier1997-08-111-9/+0
|
* Merge various fixes from NetBSD. This will allow the WordPerfect forjkh1995-08-161-0/+1
| | | | SCO installation to run all the way through (some POSIX fixes).
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+144
OpenPOWER on IntegriCloud