From nobody Mon Feb 16 18:15:25 2026 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 4fF9tP2cqcz6S7rm for ; Mon, 16 Feb 2026 18:15:25 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fF9tP24Szz3djh for ; Mon, 16 Feb 2026 18:15:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771265725; 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; bh=IrmPrXLI+P7FtpeW876BFTuhCPSZIgrIWKb7wnag/3o=; b=t8+EFfAMj3j5hjiAiMgoVoUb7iDKxmT9AAZ6L9PGXJ/37u8WOTWe9PuDoomZbXEY6Ofltb wVtPjxzgeVfq33VnFle2CKDSNJIOouZATl8KijOvZ+41afpCqSkUoCL9ihUzxfd0cCk4l6 bSgn+wQ8Q5Bt8m4ahRTZMVWuhE2LYjDR4+jwDe+xhDebB5w1/XF/IZmAX/0BHv3fTW7NI/ WL7WGI1ZSqxOcf51hSzlIQKluPxInuZRt99+f14kIrGZi5VadR+fN1aNa3oCuEpcZxY9g2 Lj/FqFYs/osY2+UD0jSH1CN30G21BD25nGUohvxA4Y2SWoVsHkaqNtbKJKM7IQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771265725; a=rsa-sha256; cv=none; b=ubl4xXWYNHQuqSII4XwXKMSbKgIWaMDsdkxD9En100hb3enuRW8a5RB+mbgURhegkXvojj rm3bCZu0B+8WSNRoUegA43FW9l5XNPfOfA5ynA3gN6en0D41IE7efKMbRKrQSXcHkhgtX8 GGsUYpk3AdlngsOI16qqKLJT9az0MD+VKhKvJ3MOSaQxE827nTWPHoL5yRXyitcdJpyTH/ eSuiYzGYGZH2sf5yq2TMhD36IOPAmR73BK3QxCg3D/Qf3pt64LlL4tymT7Qxjs+1u2ASC3 89XCJ8efdRkKZaQy8Jem6kFcxajHy01R8GDlaOVu/WCgvT0pqQZF9y0od+E89A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771265725; 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; bh=IrmPrXLI+P7FtpeW876BFTuhCPSZIgrIWKb7wnag/3o=; b=vTlpgi4jM1CfueyPhSuITe90U5bzL04snpQa8hq0kC3ALVpJnJn+zWwr6jANBZHhevz3qc fIYRG4FItk4FSIUdOQjA/N9tANNIKAmn7PjbidZ7akqPRI4FP0Lo8IPjEToT+MjC5Mxzsa 2jpL35KEqWR5L0O5u3f8tEJK57i02uU7aWN1KbD/HyxglRFCi79JgX+8Nwgg5u3M5SB48H XHqMQxA2xixA6kxLgWUl03+MSXP9XlmE0q97ArDePIyta1AgC4mgXTap8pPz8XSeaFHS0C jkzAUGoUxhOF3MuYWoZM5zgjUMbee4TlnA//h7csUTrSE7gNTahXdE/WUDrhwQ== 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 4fF9tP1YBjzbgP for ; Mon, 16 Feb 2026 18:15:25 +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 61GIFPJ0014424 for ; Mon, 16 Feb 2026 18:15:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61GIFPhh014423 for bugs@FreeBSD.org; Mon, 16 Feb 2026 18:15:25 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 293217] grep(1) reads EOF twice from interactive stdin before quitting Date: Mon, 16 Feb 2026 18:15:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D293217 Bug ID: 293217 Summary: grep(1) reads EOF twice from interactive stdin before quitting Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@tim.thechases.com Running `grep(1)` interactively and immediately pressing control+d to send = an EOF, it registers the ^D but then requires a *second* control+d to actually quit. On both OpenBSD & Ubuntu, grep(1) quits immediately at the first control+d as expected: $ grep x ^D ^D If a line of any other input is provided before the control+d it behaves properly. $ grep x hello ^D (this was encountered while testing the exit status code for `grep` and `gr= ep -v` on various inputs including empty) --=20 You are receiving this mail because: You are the assignee for the bug.=