Date: Thu, 16 Apr 2020 10:58:11 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Kyle Evans <kevans@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r328242 - head/lib/libregex Message-ID: <b9fa7561-5931-5e1c-5289-5ab702c1e597@selasky.org> In-Reply-To: <201801220312.w0M3CQsC096350@repo.freebsd.org> References: <201801220312.w0M3CQsC096350@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Kyle,
There is a sed regression between older 12.1 and 13-current likely
caused by libregex changes. I will try to bisect:
Can you have a look at this:
Expected result:
> printf "#define MEDIA_BUS_FMT_SRGGB16_1X16\t\t\t0x3020\n" | sed -e 's/.*FMT_//; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;'
> { "SRGGB16_1X16", MEDIA_BUS_FMT_SRGGB16_1X16 },
Bad result:
> printf "#define MEDIA_BUS_FMT_SRGGB16_1X16\t\t\t0x3020\n" | sed -e 's/.*FMT_//; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;'
> { "SRGGB16_1X16 0x3020", MEDIA_BUS_FMT_SRGGB16_1X16 0x3020 },
A little further inspection shows \t does not work like expected in:
s/\t.*//;
Trying to quickly bisect.
--HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9fa7561-5931-5e1c-5289-5ab702c1e597>
