From nobody Thu Jan 30 16:01:42 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 4YkP0Q2cRFz5lcjs for ; Thu, 30 Jan 2025 16:01: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 4YkP0Q1wyfz3b1V for ; Thu, 30 Jan 2025 16:01: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=1738252902; 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=OTNYfylbOAJO/eP4dNvFdzItdoDrpBdpoqahTGeG+5M=; b=yGn884ItB8ZMZfEGxpIioy7Ea/tNYH+FJ3waJ571wyYRyXXwLYpQT6hMJscDKpzPj1GDFg mPQNgaOzg3seJm+I8GDnx2ypJKUBHZHAEiMsfkzLKCuiKlHnwMa7Mi5b1rumn2eDA63RGP ApfRIWoBTsZcoF72r3HNCiOwqOK964rqZmIvC2PeE3M2GufhSW59jCoAXYxx5QKtXroXSN kkkhuVPLpy5l9r+Lcuk5gyZwlY1jTFtlwha3n5dcn414CJLo35KIgLrvro2wm9/ag+VDpu Nv96GpqP3ECPSZLxJoqeu90O7ReIwDzLuFClssP2FOI1h12mkt8c6L6L22pwoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738252902; 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=OTNYfylbOAJO/eP4dNvFdzItdoDrpBdpoqahTGeG+5M=; b=uHYkgMCdAOnSKKqqLgsYMAYZond0RMFw098cc0LDqCP81WBfGGqeuQQ1w6y6HBr7MtGZkA ENSfYWK+6tT/nXQa57PmEIT8OD9WFRYC/Ks1XM2V85bnxiN0EQIkd5EYdIRmzGow7MCnFJ DjQBCDxI11yMPzY7IfFfS1Qaal9NrR+2VC8yz6l8u9wKs1f0e6ZZQBC+0EEhUSZwS6W7j6 ZybiPr1pdjUT2RXOB4Nb17vzhwGjs1VKwUHUZT+SnG8JCJLsyg2E5u3xXtSRYBq+psFbNA vSKmruBigCeqStRtPPUmodQPbCdlQLkd9mTsNNK+ktcrb29FDGlsyzuzxO1a6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738252902; a=rsa-sha256; cv=none; b=oxGBpUYOdNJ9p9CLtwhJ9v2oUSZz1iIom5GpxfRTf95ck8gi8vNLDOQO9QY6h3+EYOfDfq lsEEy4H1N9uQviK++fDgS5HLAmrJIlgwRyYOFW9Rbexk92PmD8bjQFaQagIDT/gRrDMhQq +peMiOLh04u1QnD1VGxuunDT9lEvNBderR/NkUKLobIKJvjZRvJX8GB+HxtDox9I40ulXP S16VMQIeNY/HPQCRNCt0QoYOGdgPJXyjYET/qD2LoelB+iYnESIIggyyPyLaCYikGNZ+Yc ifsDaKxAEQlqQPqm8lAZ1vBhQVN0jFZk4wAkqQE0WO5TtFMb3J9sRMoZnvTgDw== 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 4YkP0Q1LTRzvHG for ; Thu, 30 Jan 2025 16:01: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 50UG1guN056172 for ; Thu, 30 Jan 2025 16:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50UG1gIR056171 for bugs@FreeBSD.org; Thu, 30 Jan 2025 16:01: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: Thu, 30 Jan 2025 16:01:42 +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: freebsd@tim.thechases.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 --- Comment #2 from Tim Chase --- Created attachment 257130 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D257130&action= =3Dedit possible solution (2/2) Here's a more efficient (doesn't look up the next character twice) version = of a patch that fixes it by checking if the command ends with a delimiter **or**= a NUL Either patch should suffice, depending on which style feels better in-situ --=20 You are receiving this mail because: You are the assignee for the bug.=