From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13214 Path: news.gmane.org!.POSTED!not-for-mail From: Steffen Nurpmeso Newsgroups: gmane.linux.lib.musl.general Subject: Re: Regex: behaviour of ? after () atom Date: Fri, 07 Sep 2018 18:22:15 +0200 Message-ID: <20180907162215.wcMZu%steffen@sdaoden.eu> References: <20180907133805.FZif_%steffen@sdaoden.eu> <20180907151821.GL1878@brightrain.aerifal.cx> <20180907152517.QGi3S%steffen@sdaoden.eu> <20180907153302.GM1878@brightrain.aerifal.cx> <20180907160046.zZvDF%steffen@sdaoden.eu> <20180907160847.GN1878@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536337151 27937 195.159.176.226 (7 Sep 2018 16:19:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 16:19:11 +0000 (UTC) User-Agent: s-nail v14.9.11-35-ge359e701 Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-13230-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 07 18:19:07 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fyJTN-00077k-5W for gllmg-musl@m.gmane.org; Fri, 07 Sep 2018 18:19:05 +0200 Original-Received: (qmail 28331 invoked by uid 550); 7 Sep 2018 16:21:12 -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 28310 invoked from network); 7 Sep 2018 16:21:12 -0000 In-Reply-To: <20180907160847.GN1878@brightrain.aerifal.cx> Mail-Followup-To: Rich Felker , musl@lists.openwall.com, Steffen Nurpmeso OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Xref: news.gmane.org gmane.linux.lib.musl.general:13214 Archived-At: Rich Felker wrote in <20180907160847.GN1878@brightrain.aerifal.cx>: |On Fri, Sep 07, 2018 at 06:00:46PM +0200, Steffen Nurpmeso wrote: |> Rich Felker wrote in <20180907153302.GM1878@brightrain.aerifal.cx>: |>|On Fri, Sep 07, 2018 at 05:25:17PM +0200, Steffen Nurpmeso wrote: |>|> Rich Felker wrote in <20180907151821.GL1878@brightrain.aerifal.cx>: |>|>|On Fri, Sep 07, 2018 at 03:38:05PM +0200, Steffen Nurpmeso wrote: ... |Your stopping condition is just wrong -- you're stopping after seeing |that the first subexpression does not match anything, and failing to |inspect the others. If you get rid of that stopping condition and |add code to print the rest, you'll see (each line is i, rm_so, rm_eo): | |1 -1 -1 |2 0 5 |3 5 9 |4 -1 -1 |5 -1 -1 |6 -1 -1 |... I see. Indeed. And no other bug to report somewhere else just as last time, sorry for the noise. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)