History log of /src/usr.bin/sed/main.c |
Revision | | Date | Author | Comments |
1.38 |
| 11-Mar-2021 |
christos | Use the same options like m4 (-g turns on GNU, -G turns off GNU) Suggested by uwe@
|
1.37 |
| 11-Mar-2021 |
christos | Add -G to support GNU extensions
|
1.36 |
| 15-May-2020 |
christos | sed(1): Don't force a newline on last line, if input stream doesn't have one
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.
From FreeBSD (9dd857db3dc558dc61dc8674d204ebc83cac0739), requested by mrg@
|
1.35 |
| 05-Oct-2019 |
christos | add an abort for a case that can't happen
|
1.34 |
| 12-Mar-2015 |
christos | branches: 1.34.16; The latest refactoring changes broke sed -i: cd /tmp; echo foo > test; sed -i.orig s,fo,ba, test Back them out until they are fixed.
|
1.33 |
| 01-Mar-2015 |
asau | Close files opened at processing time within processing phase.
|
1.32 |
| 01-Mar-2015 |
asau | Move data I/O file pointers into processing part.
|
1.31 |
| 28-Feb-2015 |
asau | Improve modularity of "sed" source: - move program source input subroutines into compiler part; - move data I/O subroutines into processor part.
|
1.30 |
| 26-Jun-2014 |
christos | restore sccsid[]'s per core@'s decision
|
1.29 |
| 21-Jun-2014 |
christos | typo
|
1.28 |
| 21-Jun-2014 |
christos | CID 10006930: Prevent outfile overwrite resource leak.
|
1.27 |
| 18-Jun-2014 |
christos | Fix usage. The man page is incorrect with respect to -I and -i and need fixing, but my troff foo is not there.
|
1.26 |
| 18-Jun-2014 |
wiz | Sync usage with manpage.
|
1.25 |
| 17-Jun-2014 |
christos | add -u (unbuffered output) after GNU sed.
|
1.24 |
| 06-Jun-2014 |
joerg | usage is __dead. Kill useless sccsid.
|
1.23 |
| 06-Jun-2014 |
christos | Prefer setvbuf for those who have it.
|
1.22 |
| 06-Jun-2014 |
christos | Merge our changes.
|
1.21 |
| 19-Feb-2010 |
tnn | branches: 1.21.12; 1.21.22; Merge the following revisions from OpenBSD to let sed(1) handle arbitrarily long lines (closes our PR bin/42261). openbsd/usr.bin/sed/extern.h 1.5 openbsd/usr.bin/sed/main.c 1.13-1.15 openbsd/usr.bin/sed/misc.c 1.8 openbsd/usr.bin/sed/compile.c 1.25-1.28 openbsd/usr.bin/sed/defs.h 1.4
|
1.20 |
| 13-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)
|
1.19 |
| 16-Sep-2008 |
perry | branches: 1.19.6; Add a -r flag that is an alias for -E, for compatibility with gnu sed.
|
1.18 |
| 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.17 |
| 18-Jun-2006 |
gdamore | branches: 1.17.20; Make TOOL_SED, to allow using our own sed in cases where the host's version is busted in some way.
The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include nbtool_config.h in a cross build environment.
Combined with some other changes (not yet committed), this allows cross compiling m68k code on Solaris 10/amd64.
|
1.16 |
| 13-Jul-2004 |
wiz | branches: 1.16.6; Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255.
|
1.15 |
| 16-Oct-2003 |
grant | call setprogname(), replace a 'sed' with getprogname().
|
1.14 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.13 |
| 14-Jun-2002 |
wiz | Remove #if __STDC__. De-__P() and ANSIfy.
|
1.12 |
| 17-May-2002 |
wiz | Fix format string in usage. bin/16869 by Julio Merino.
|
1.11 |
| 23-Jan-2002 |
atatat | Add a -E flag to ed(1) and sed(1) so that they can use extended regular expressions instead of just basic regular expressions.
|
1.10 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF
|
1.9 |
| 09-Jan-1997 |
tls | RCS ID police
|
1.8 |
| 08-May-1996 |
mark | Use an integer instead of a char with getc() and ungetc() in mf_fgets() so that it works with compilers that default to unsigned chars Note: getc() and ungetc() are prototyped to use ints rather than chars.
|
1.7 |
| 23-Feb-1995 |
jtc | Fixed typo in usage string.
|
1.6 |
| 03-Feb-1994 |
cgd | RCS id's
|
1.5 |
| 03-Feb-1994 |
cgd | update from Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr>
|
1.4 |
| 04-Jan-1994 |
cgd | rename fgetline() and sharpen axe for bostic...
|
1.3 |
| 22-Dec-1993 |
cgd | update for fgetline
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 13-Apr-1993 |
alm | branches: 1.1.1; added Berkeley sed with mods to use GNU regex
|
1.1.1.2 |
| 06-Jun-2014 |
christos | import today's FreeBSD sed.
|
1.1.1.1 |
| 03-Jan-1994 |
mrg | 4.4BSD-Lite2
|
1.16.6.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.17.20.2 |
| 24-Sep-2008 |
wrstuden | Merge in changes between wrstuden-revivesa-base-2 and wrstuden-revivesa-base-3.
|
1.17.20.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.19.6.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.21.22.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.21.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.34.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|