buildworld error

Xin LI delphij at delphij.net
Fri Jul 6 14:34:39 UTC 2007


YAMAMOTO Shigeru wrote:
> Hi, all,
> 
> I check a code to generate 'md2hl.c'.
> I find 'sed' does not work right.
> 
> I test following patterns.
> % echo "abcdefg" | sed -e 's/abc/hij/g'
> hijdefg
> % echo "ABCDEFG" | sed -e 's/abc/hij/g'
> hijDEFG
> % echo "abcdefg" | sed -e 's/ABC/HIJ/g'
> HIJdefg
> % echo "ABCDEFG" | sed -e 's/ABC/HIJ/g'
> HIJDEFG
> 
> It seems me 'sed' always work with '/I'.
> #'I' option is added at '2007/07/04 16:42:41'.
> 
> Is it bug?

I think so.  Try attached patch.

Cheers,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sed.diff
Type: text/x-patch
Size: 1042 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070706/6f58b842/sed.bin


More information about the freebsd-current mailing list