From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2B5B3851A87; Tue, 6 Sep 2022 02:47:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2B5B3851A87 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662432458; bh=bvCWmhmuqOnlSIM00E6SiKm8P6wK7PhCD5zCsoEclmc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Erbj/yAN++RrWW3fQiH1dctt84spD2Tf2AYNmFFKTnU1rgbDjR8RhtgpSwTxV7D/C cD2otFXj1cbnMuVqdc9ACvGIMqLKJKgPycQKw1JyOYc/sCCmO0DbIaZBbjPHZKViDZ NR2b1rYQ/4/dSg48r9CkbiofOP4SGcSr55LsDm8g= From: "vincent-srcware at vinc17 dot net" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/11053] Wrong results with backreferences Date: Tue, 06 Sep 2022 02:47:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: 2.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-srcware at vinc17 dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: eggert at cs dot ucla.edu X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D11053 --- Comment #16 from Vincent Lef=C3=A8vre --- (In reply to eggert from comment #15) > glibc bug 11053 is fixed, Shouldn't this bug be resolved as fixed, then? > but Debian bug 884075 is not fixed. Perhaps a better match for=20 > Debian bug 884075 is glibc bug 10844. It seems different. With Debian bug 884075, the "|^1?$" part is important (= it yields the incorrect output, even though this part isn't matched), and ther= e is nothing like that in glibc bug 10844: vinc17@gcc92:~$ echo 11111111111 | grep --color=3Dauto -E '^(11+)\1+$|^1?$' 11111111111 vinc17@gcc92:~$ echo 11111111111 | grep --color=3Dauto -E '^(11+)\1+$' vinc17@gcc92:~$=20 Note that for the first command, nothing is colored in "11111111111", i.e. = the line is output as appeared to be matched, but no matches are shown by color= s. As a comparison, with ten 1s instead of eleven, the line is output and the = ten 1s are colored. --=20 You are receiving this mail because: You are on the CC list for the bug.=