History log of /freebsd/usr.bin/sed/compile.c (Results 76 – 100 of 126)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 13ede3c0 22-Sep-1998 Brian Somers <brian@FreeBSD.org>

Terminate our output string correctly if we've got
an ``a'' command that has an escaped newline on the
last line of the last script that we're processing.

This fixes exmh2/scripts/build when /etc/ma

Terminate our output string correctly if we've got
an ``a'' command that has an escaped newline on the
last line of the last script that we're processing.

This fixes exmh2/scripts/build when /etc/malloc.conf -> AJ

show more ...


Revision tags: release/2.2.7, release/2.2.6, release/2.2.5_cvs
# 73a08bb2 11-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Remove local redefinition for err(). Add usage().


# c44252b6 06-Jul-1997 Bruce Evans <bde@FreeBSD.org>

Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,
pascal and vmstat.sparc. All changed files on the vendor branch should
already have been imported.


Revision tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1, release/2.1.5_cvs
# 726aebe5 11-Aug-1996 Andrey A. Chernov <ache@FreeBSD.org>

Localize it
8bit cleanup


# 49e65599 17-Jul-1996 Bruce Evans <bde@FreeBSD.org>

Yet^2 another fix for the line continuation bug.

The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines. rev.

Yet^2 another fix for the line continuation bug.

The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines. rev.1.6 just moved the problem from failures when
p[-2] happens to be '\\' to failures when it happens to be '\0'.
rev.1.5 was confused about the trailing newline and other things.

I went back to rev.1.5 and fixed it. The result is the same as
Keith Bostic's final version in PR 1356 except it loses more
gracefully for excessively long input lines.

show more ...


# 4f587766 26-Jun-1996 David Greenman <dg@FreeBSD.org>

Yet another fix for the line continuation bug in sed. Keith's patch
introduced a new bug. This fix appears to work correctly. Fixes PR#1350.

Submitted by: mark@linus.demon.co.uk (Mark Valentine)


# 796d4318 19-Jun-1996 David Greenman <dg@FreeBSD.org>

Fix from Keith Bostic <bostic@bsdi.com> for bug in sed dealing with
continuation lines.

Submitted by: Keith Bostic via Kirk McKusick


Revision tags: release/2.1.0_cvs
# ce19262d 16-Aug-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Merge various fixes from NetBSD. This will allow the WordPerfect for
SCO installation to run all the way through (some POSIX fixes).


Revision tags: release/2.0.5_cvs
# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# fe89da38 06-Apr-1995 Joerg Wunsch <joerg@FreeBSD.org>

Sed dumps core when linked with some coalescing malloc because it
doesn't initialize malloced structure.

Submitted by: vode@hut.fi


Revision tags: release/2.0, release/1.1.5.1_cvs
# 9b50d902 27-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources


Revision tags: release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0
# 1ee774f6 02-Oct-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- MFC


# ac8f32ce 20-Sep-2009 Diomidis Spinellis <dds@FreeBSD.org>

IEEE Std 1003.1, 2004 Edition states:

"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."

It is unclear whether this also applies to a \n embedded in a
character class

IEEE Std 1003.1, 2004 Edition states:

"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."

It is unclear whether this also applies to a \n embedded in a
character class. Disable the existing handling of \n in a character
class following Mac OS X, GNU sed version 4.1.5 with --posix, and
SunOS 5.10 /usr/bin/sed.

Pointed by: Marius Strobl
Obtained from: Mac OS X

show more ...


# 76570d0a 20-Sep-2009 Diomidis Spinellis <dds@FreeBSD.org>

Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command.

"If a backslash character is immediately followed by a backslash
character in string1 or string2, the

Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command.

"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"

Pointed by: Marius Strobl
Obtained from: Mac OS X

show more ...


# 128e6a12 20-Sep-2009 Diomidis Spinellis <dds@FreeBSD.org>

Allow [ to be used as a delimiter.

Pointed by: Marius Strobl
Obtained from: Apple


# 2e370a5c 26-May-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

Merge from HEAD


# f879e8d9 25-May-2009 Brian Somers <brian@FreeBSD.org>

Implement "addr1,+N" ranges - not dissimilar to grep's -A switch.

PR: 134856
Submitted by: Jeremie Le Hen - jeremie at le-hen dot org


Revision tags: release/6.4.0_cvs, release/6.4.0
# 46da6c48 11-Nov-2008 Diomidis Spinellis <dds@FreeBSD.org>

Fix the code to conform to the "or more" part of the following POSIX
specification and regression test regress:25.

"A function can be preceded by one or more '!' characters, in which
case the fu

Fix the code to conform to the "or more" part of the following POSIX
specification and regression test regress:25.

"A function can be preceded by one or more '!' characters, in which
case the function shall be applied if the addresses do not select
the pattern space."

MFC after: 2 weeks

show more ...


# d3d0d3a3 09-Nov-2008 Hiroki Sato <hrs@FreeBSD.org>

Add workaround for a back reference when no corresponding
parenthesized subexpression is defined. For example, the
following command line caused unexpected behavior like
segmentation fault:

% echo

Add workaround for a back reference when no corresponding
parenthesized subexpression is defined. For example, the
following command line caused unexpected behavior like
segmentation fault:

% echo test | sed -e 's/test/\1/'

PR: bin/126682
MFC after: 1 week

show more ...


Revision tags: release/7.0.0_cvs, release/7.0.0
# d3e5e11c 09-Feb-2008 David Malone <dwmalone@FreeBSD.org>

WARNS fixes:
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 wa

WARNS fixes:
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

show more ...


Revision tags: release/6.3.0_cvs, release/6.3.0
# 870945d8 06-Jul-2007 Xin LI <delphij@FreeBSD.org>

Before doing compile_re() which needs a parameter to identify
whether we should ignore case, determine the flag by calling
compile_flags() first. Also, make sure that we obtain an
initialized cmd->u

Before doing compile_re() which needs a parameter to identify
whether we should ignore case, determine the flag by calling
compile_flags() first. Also, make sure that we obtain an
initialized cmd->u.s buffer before processing further. We
may want to refine this solution later, but for now, make
the changes in order to unbreak world build after a sed(1)
with rev. 1.29 of compile.c is installed.

Approved by: re (hrs)

show more ...


# bdd72b70 04-Jul-2007 Suleiman Souhlal <ssouhlal@FreeBSD.org>

Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.
For example,
sed /foo/Id
sed s/foo/bar/Ig

Reviewed by: dds
Approved by: re (hrs)


Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0
# d432588e 04-Aug-2005 Diomidis Spinellis <dds@FreeBSD.org>

Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by: Jingsong Liu
MFC af

Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by: Jingsong Liu
MFC after: 1 week

show more ...


Revision tags: release/5.4.0_cvs, release/5.4.0
# 3dc2fe25 09-Mar-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Fix dubious C code construct.


Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# 30fd73fb 09-Aug-2004 Diomidis Spinellis <dds@FreeBSD.org>

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived
software (original contributor).

Reviewed by: imp


123456