Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jun 2003 20:23:19 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Tony Finch <fanf@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/sed process.c 
Message-ID:  <20030605032319.49F932A8C1@canning.wemm.org>
In-Reply-To: <200306041531.h54FVtOD006167@repoman.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Tony Finch wrote:
> fanf        2003/06/04 08:31:55 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.bin/sed          process.c 
>   Log:
>   Fix substitution when the regex matches the zero-length string.
>   There are two bugs: in the s///g case, the substitution didn't occur
>   at the end of the line; in the s///N case, the code didn't count
>   forwards along the line properly. See the sg, s3, s4, and s5 tests
>   in src/tools/regression/usr.bin/sed/.
>   
>   Reviewed by:    tjr

OH MY GOD, YOU KILLED KENNY^H^H^H^H^HSED!!!!

sed -f /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/targmatch.sed /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/config.bfd | vis 

....

#if !defined (SELECT_VECS) || defined (HAVE_a_out_adobe_vec)
\^@
{ "*-adobe-*",
&a_out_adobe_vec },
#endif
\^@

    

#if !defined (SELECT_VECS) || defined (HAVE_newsos3_vec)
\^@
{ "*-sony-*",
&newsos3_vec },
#endif
\^@

....


Backing out this change to process.c "fixed" it.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030605032319.49F932A8C1>