From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9398 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general,gmane.comp.embedded.openwrt.devel Subject: Re: regex issue / asterisk / musl / sed Date: Mon, 29 Feb 2016 14:53:48 +0100 Message-ID: <20160229135348.GF29662@port70.net> References: <20160229125736.GW9413@medion.lan> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1456754049 1170 80.91.229.3 (29 Feb 2016 13:54:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 13:54:09 +0000 (UTC) To: musl-mailinglist , mailinglist Original-X-From: musl-return-9411-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 29 14:54:03 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aaOGw-0008FC-SI for gllmg-musl@m.gmane.org; Mon, 29 Feb 2016 14:54:03 +0100 Original-Received: (qmail 7978 invoked by uid 550); 29 Feb 2016 13:54:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7957 invoked from network); 29 Feb 2016 13:54:00 -0000 Mail-Followup-To: musl-mailinglist , mailinglist Content-Disposition: inline In-Reply-To: <20160229125736.GW9413@medion.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9398 gmane.comp.embedded.openwrt.devel:38999 Archived-At: * Bastian Bittorf [2016-02-29 13:57:36 +0100]: > root@box:~ echo 'o*o' | sed -e 's/*/asterisk/g' > sed: bad regex '*': Invalid regexp > root@box:~ echo 'o*o' | sed -e 's/\*/asterisk/g' > oasterisko > > it's musl 1.1.14 on OpenWrt / r48814 > both commands are working fine with glibc and uclibc > but the first invokation fails with musl 1.1.14 but > works with musl 1.1.13. unsre if the prob is on my > side, maybe $you have an idea... yes, i introduced this regression in http://git.musl-libc.org/cgit/musl/commit/?id=7eaa76fc2e7993582989d3838b1ac32dd8abac09 because i missed the special * behaviour for BRE, but even before that ^* was broken so just reverting the patch is not enough, handling * after an anchor or assertion correctly needs more code changes.