History log of /netbsd-src/usr.bin/sed/main.c (Results 1 – 25 of 38)
Revision Date Author Comments
# 95cea0cc 11-Mar-2021 christos <christos@NetBSD.org>

Use the same options like m4 (-g turns on GNU, -G turns off GNU) Suggested
by uwe@


# d502916e 11-Mar-2021 christos <christos@NetBSD.org>

Add -G to support GNU extensions


# 3e95193d 15-May-2020 christos <christos@NetBSD.org>

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 aft

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@

show more ...


# 3379dd24 05-Oct-2019 christos <christos@NetBSD.org>

add an abort for a case that can't happen


# cefb10af 12-Mar-2015 christos <christos@NetBSD.org>

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.


# 23901832 01-Mar-2015 asau <asau@NetBSD.org>

Close files opened at processing time within processing phase.


# 82be1f5d 01-Mar-2015 asau <asau@NetBSD.org>

Move data I/O file pointers into processing part.


# 1f228785 28-Feb-2015 asau <asau@NetBSD.org>

Improve modularity of "sed" source:
- move program source input subroutines into compiler part;
- move data I/O subroutines into processor part.


# bf51dc6d 26-Jun-2014 christos <christos@NetBSD.org>

restore sccsid[]'s per core@'s decision


# ff4ba887 21-Jun-2014 christos <christos@NetBSD.org>

typo


# 239f3a75 21-Jun-2014 christos <christos@NetBSD.org>

CID 10006930: Prevent outfile overwrite resource leak.


# c095d1ec 18-Jun-2014 christos <christos@NetBSD.org>

Fix usage. The man page is incorrect with respect to -I and -i and need
fixing, but my troff foo is not there.


# 55d6e53c 18-Jun-2014 wiz <wiz@NetBSD.org>

Sync usage with manpage.


# a406f30e 17-Jun-2014 christos <christos@NetBSD.org>

add -u (unbuffered output) after GNU sed.


# 6457787c 06-Jun-2014 joerg <joerg@NetBSD.org>

usage is __dead. Kill useless sccsid.


# 81af4b34 06-Jun-2014 christos <christos@NetBSD.org>

Prefer setvbuf for those who have it.


# ef24ec4e 06-Jun-2014 christos <christos@NetBSD.org>

Merge our changes.


# 0846a762 19-Feb-2010 tnn <tnn@NetBSD.org>

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

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

show more ...


# d27a41bf 13-Apr-2009 lukem <lukem@NetBSD.org>

Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)


# 5a047c79 16-Sep-2008 perry <perry@NetBSD.org>

Add a -r flag that is an alias for -E, for compatibility with gnu sed.


# 98e5374c 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# d9ac053a 18-Jun-2006 gdamore <gdamore@NetBSD.org>

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 b

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.

show more ...


# b8c5588d 13-Jul-2004 wiz <wiz@NetBSD.org>

Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255.


# ba2a3df7 16-Oct-2003 grant <grant@NetBSD.org>

call setprogname(), replace a 'sed' with getprogname().


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


12