[Bug 195929] usr.bin/sed -- constify, remove line-length limits

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 17 20:46:16 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195929

Mikhail Teterin <mi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #172442|0                           |1
        is obsolete|                            |

--- Comment #30 from Mikhail Teterin <mi at FreeBSD.org> ---
Created attachment 172615
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172615&action=edit
Updated patch

Ok, yes, there was a bug in the parsing lines like s/FOO/BAR/4. I fixed it and
the multi_test now passes fully here. The legacy_test chokes on the missing
regress.m4 -- maybe, I need to rebuild world again having set WITH_TESTS to yes
(this ought to be simpler).

But legacy_test was working for you before -- hopefully, it still does.

Interestingly, one of gsed's tests started to fail now. But it fails the same
way with our unmodified sed. The recently-introduced bug must be in the
process.c somewhere:

% echo z | gsed -n -e 's/^a*/b/2p'
# empty -- correct
% echo z |  sed -n -e 's/^a*/b/2p'
z # incorrect

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list