History log of /src/usr.bin/sed/main.c (Results 176 – 200 of 294)
Revision Date Author Comments
# d74b9e13 09-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

Simplify redundant malloc'ing in sed -e.

When encountering an -e argument, sed currently mallocs a string to COPY
the optarg -- with '\n' appended. The appendage does not seem necessary --
indeed, t

Simplify redundant malloc'ing in sed -e.

When encountering an -e argument, sed currently mallocs a string to COPY
the optarg -- with '\n' appended. The appendage does not seem necessary --
indeed, the same call to add_compunit processing the sole command (given
without -e) passes the *argv verbatim: without making a copy, and without
appending newline.

This matches what is done in other BSDs.

Submitted by: Mikhail T.
PR: 195929
MFC after: 2 weeks

show more ...


# 98e0ffae 27-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Merge sync of head


# 9f3d45b6 08-Feb-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Merge from HEAD


# 64028902 28-Jan-2015 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r277804 through r277843.


# 76c76d54 27-Jan-2015 Pedro F. Giffuni <pfg@FreeBSD.org>

sed: fix pasto from previous r277802.

MFC after: 3 days


# 76f411ce 27-Jan-2015 Dimitry Andric <dim@FreeBSD.org>

Merging ^/head r277777 through r277803.


# fc04dce0 27-Jan-2015 Pedro F. Giffuni <pfg@FreeBSD.org>

Fix resource leak and dereference after NULL.

process.c:
Protect access against NULL.

main.c:
Prevent outfile overwrite resource leak.

CID: 271181
CID: 1006930

Obtained from: NetBSD
MFC after: 3

Fix resource leak and dereference after NULL.

process.c:
Protect access against NULL.

main.c:
Prevent outfile overwrite resource leak.

CID: 271181
CID: 1006930

Obtained from: NetBSD
MFC after: 3 days

show more ...


# 51dd214c 19-Jan-2015 Enji Cooper <ngie@FreeBSD.org>

MFhead @ r277403


# d899be7d 19-Jan-2015 Glen Barber <gjb@FreeBSD.org>

Reintegrate head: r274132-r277384

Sponsored by: The FreeBSD Foundation


# 8f0ea33f 13-Jan-2015 Glen Barber <gjb@FreeBSD.org>

Reintegrate head revisions r273096-r277147

Sponsored by: The FreeBSD Foundation


# 707c9cc5 08-Jan-2015 Pedro F. Giffuni <pfg@FreeBSD.org>

sed: Address warnings with clang and gcc48.

MFC after: 2 weeks


# 9268022b 19-Nov-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge from head@274682


# 246e7a2b 02-Sep-2014 Neel Natu <neel@FreeBSD.org>

IFC @r269962

Submitted by: Anish Gupta (akgupt3@gmail.com)


# ee7b0571 19-Aug-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge head from 7/28


# 1b833d53 13-Aug-2014 Alexander V. Chernikov <melifaro@FreeBSD.org>

Sync to HEAD@r269943.


# 96d68291 08-Aug-2014 Jean-Sébastien Pédron <dumbbell@FreeBSD.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.

PR: 160745
Phabric: https://phabric.freebsd.org/D431
Reviewed by: jilles
Approved by: jilles
Exp-run by: antoine

show more ...


# f2431000 03-Jul-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

More sed(1) usage fixing: the extension -i is not optional.

Pointed out by: jmallet
MFC after: 3 days


# 9b788a2e 02-Jul-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

Fix sed(1) usage: the extension -i is not an optional.

MFC after: 3 days


# 90d81f30 21-Jun-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

Drop ifdef nonsense: just use setvbuf(3).

Pointed out by: kib, bde


# fc39ce9e 20-Jun-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

Add -u (unbuffered output) after GNU sed.

Obtained from: NetBSD
MFC after: 1 week


# 0bfd163f 18-Oct-2013 Gleb Smirnoff <glebius@FreeBSD.org>

Merge head r233826 through r256722.


# d1d01586 05-Sep-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Merge from head


# 40f65a4d 07-Aug-2013 Peter Grehan <grehan@FreeBSD.org>

IFC @ r254014


# 552311f4 17-Jul-2013 Xin LI <delphij@FreeBSD.org>

IFC @253398


# 2642f6b2 27-Jun-2013 Peter Grehan <grehan@FreeBSD.org>

IFC @ r252288


12345678910>>...12