summaryrefslogtreecommitdiffstats
path: root/bin/ed/sub.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement g flag for s commands. Got lost in previous commit.martijn2016-10-111-2/+2
| | | | Found because of a hint by and OK schwarze@.
* Remove infinite loop detection from the s-command.martijn2016-10-101-9/+11
| | | | | | | | If a zero-length match is found do the replacement and increment the start point for the next search by one. This allows for commands like s/^/- / This brings the behaviour closer to the way sed and vi work. OK schwarze@
* Fix the begin of word bug in s-command, similar to sed.martijn2016-08-021-22/+25
| | | | nit fix and OK schwarze@
* header cleanupmmcc2016-03-221-1/+8
| | | | from Edgar Pettijohn, correction from deraadt@
* Define functions as static when they are not used outside their own c-files.tobias2015-10-091-4/+7
| | | | ok millert@
* Mark static globals that are only used in their respective .c files.millert2015-10-091-6/+6
| | | | | Also make stdin unbuffered since that is the same as using a single-byte buffer. OK tobias@
* Remove useless pattern_t typedef, POSIX regex is here to stay somillert2015-10-041-3/+3
| | | | just use regex_t directly.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* ansification, art okderaadt2003-06-111-20/+7
|
* knftodd2002-06-091-3/+3
|
* Kill unneeded longs; fixes some minor 64 bit issues. deraadt@ OKmillert2002-03-241-6/+6
|
* cleanup strcpy, strncpy, signal races, etcderaadt2001-01-161-5/+5
|
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-3/+3
|
* -Wall'ing.mickey1996-12-141-4/+4
|
* Back out my sprintf -> snprintf changes where they don't make sense andmillert1996-10-121-5/+5
| | | | | use good ole strcpy() instead. Also use perror() instead of fprintf() where it makes sense.
* sprintf -> snprintf paranoiamillert1996-09-151-5/+6
|
* update rcsidderaadt1996-06-231-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+272