From nobody Sat Feb 01 18:33:41 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YlhGt5lTwz5mNTc for ; Sat, 01 Feb 2025 18:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YlhGt51dqz40Ch for ; Sat, 01 Feb 2025 18:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738434822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8P2KWJxVJQgEY1u8FPHMvTFhtszS8Xy3hvw72g+YVs=; b=A17dLGlzvyXJMGcshn/1mvzgVUTmaD4n9u7yAH1oGQu3y5rRl8HV6H9w+dbn7VSDb76fF8 Yc+b/uqfc+D0ou06Gsf5OYdGcdnmERsw92XncxAL8C/V5M8miyu0a9fFkrtUlWunxWPJ8+ K8ockx5dCbCFFFxc8/9JYAxggSF4yygyqszzsFxoml1Ww57Heo49CzCV2N1y0CIqr4LHsi MfS7mFgy9cuNybian4sXpsoayo7pJkAUGHeu6TKJrq2VqEXBu0cPbSsDPAVEo/lqu1d98N kcLO/tgln3PWT+i8TyKcjgegFsMYJ/nzRqRYhoTKvbydikzndZRy4PLsk4jepw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738434822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8P2KWJxVJQgEY1u8FPHMvTFhtszS8Xy3hvw72g+YVs=; b=LXAIv6a22le0+daxqtv14CJl34HzAkCjbyCnTGTJ+6fLGHEUdc9ojihkGGGpTngreDF4sZ rByuJYXhcEpZT8OAfs5iTwcn8+y3ofR/5IGyQPs6DQjWrG1061VWP/FRS/G32ahW07UtLS NlPSI7IkN4OlFUjwcKpjIQkjva816oxHPz3NPxBPSWqyEzshDXBEJO855so/iTNxmcNJma IpZQEmoBSGs6/XpcX1egshBK/bPw+EzhEvhiOhaTCVykQoSl84Xz5gTkBUuOnUPaQL0oJH zHcwO56IPPTtaZwlg0ZEK6kE2ol4o8yvEUw1KNolb4RziB5skteUFc2u2C/5SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738434822; a=rsa-sha256; cv=none; b=M62gLXmeP/WRxUcPxHy927COD616/GIM1piWKgwGj/Sy/B5T8N+a+XXPP7Iw6pWZzIGE6v bbytpN+8O4q6i4mUJYW0Ujn8JmGVsd9MkutcBcCwbGSMMF3+QmFrIf6Bamd7VrE/fsIVX6 Mjrz2xNceH+JkhlsxQGUbFvdLVTVwISzgKSgd+jmMGCWMy8C8XDJonPDuhk1oFQDmklM1e IBXnn27Y7OJOgwDsTE90BWDBGGuC70l0gGB5YcmZxDak4OfVnThxbIygAho5WybFf2mze5 ypOj1YiYSypdIi0ZsPtbitilKZg2jpjR5l2ljAy3h41+spYNfBShTvFolFdgFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YlhGt4X3pz1c0 for ; Sat, 01 Feb 2025 18:33:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 511IXgL7010658 for ; Sat, 1 Feb 2025 18:33:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 511IXgO5010657 for bugs@FreeBSD.org; Sat, 1 Feb 2025 18:33:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284434] ed(1) special replacement with "%" doesn't quite match with man-page Date: Sat, 01 Feb 2025 18:33:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: neitzel@marshlabs.gaertner.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284434 Martin Neitzel changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |neitzel@marshlabs.gaertner. | |de --- Comment #3 from Martin Neitzel --- Created attachment 257169 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D257169&action= =3Dedit Corrected, tested, working patch for ed "%" recognition. This is a tested, working patch based on Tim's prior suggestions. It uses the proper line end and keeps the lines <80 cols. I couldn't really decide regarding the "c=3D" optimization -- it makes the = code more difficult to read and I'd expect a compiler's CSE to optimize this any= way. A side-note on the side-note: the behaviour that a "s/old/new/" including t= he trailing delimiter is silent but an omitted trailing delimiter ("s/old/new") effects the resulting line to be printed (as with "/p") is intended, documented, and even POSIXly mandated. FWIW: as of now, the current OpenBSD, NetBSD and DragonflyBSD brethren suf= fer from the same bug. --=20 You are receiving this mail because: You are the assignee for the bug.=