From nobody Tue Jul 02 16:53:21 2024 X-Original-To: ports-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 4WD89t1LsPz5NkgT for ; Tue, 02 Jul 2024 16:53:22 +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 4WD89s5txGz4GNV for ; Tue, 2 Jul 2024 16:53:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719939201; a=rsa-sha256; cv=none; b=CPQa5wfUjHl/p9d2WDRQCYSbl9txy+Doae+Q4qr/mjoPMOz8OarF7Ecab3f9QuOBRpPurf blNORLAPcuU91fnsPDPHcPcp4eRMD9GVGiHHwfUI2NKQdlyX92D/Ob82WUB0iKjaaDk+J1 wqZKiNgfxrKgetTUryk6nMy8TPbGr/ZAOeH1M6yIApyOapuxufX1z/aDRLqNG4Dphff4E1 RHFQ+ciogkaNPZE7MD1F3AcYw2L51gH7xYkzlVr9k54oxjdtAZ9ixeAEP770xEHzuFAH/p BfgD042cDZLD7KTF9lu0ViML7LuPVUZUwuMlLNmExsvCVwI4k9+w7c1FFQgQyA== 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=1719939201; 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=YF9RYGKqJmnRVbI8On9jsuBv7KCCacNIJKZqIfGGnRA=; b=QHt81m80U+VeLUMKcTKXLRC14WZpO5PlJdv5WXC7i2yfJLl+czUm4WC1BqfVFaj6nH301H lgL3w1L1Cbb/NdYFOQJsWyAdFOMS5eChvWgH7JZleMQXnZX2muZ/6LFLBCOSXdOXExgI0T Pszi4h+ACshXq031sapTXSqL9t5XQnUxN3rvlazCdysEcktzCcGDTrLgP7jFyDX1WR2zmY NfvsEVdv01cdZpHkVth0+vkT7aYkuz+bSSogFQgTI5PQrGa85IfxL9X9kBdNk4JqBa85RL oAPyqnTUr3fmrGsi8tDRfZfsCDZCx4J6+/RJIc3PujA8Acfoan5NM2EEiotQng== 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 4WD89s5TVczw0p for ; Tue, 2 Jul 2024 16:53:21 +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 462GrL8o009979 for ; Tue, 2 Jul 2024 16:53:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 462GrLUu009978 for ports-bugs@FreeBSD.org; Tue, 2 Jul 2024 16:53:21 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: ports-bugs@FreeBSD.org Subject: [Bug 280092] ports-mgmt/pkg: Y/n question is accepted on interrupt or EOF Date: Tue, 02 Jul 2024 16:53:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: leah@vuxu.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280092 Bug ID: 280092 Summary: ports-mgmt/pkg: Y/n question is accepted on interrupt or EOF Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: leah@vuxu.org Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org When DEFAULT_ALWAYS_YES is set, pressing Ctrl-C or Ctrl-D at a pkg(8) 1.21.= 3=20 prompt results in accepting the question (at least for fetch and install; f= or remove, only Ctrl-D accepts...). This is most definitely not what the user expects. # env DEFAULT_ALWAYS_YES=3Dtrue pkg install wget Updating FreeBSD repository catalogue... FreeBSD repository is up to date. ... The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: wget: 1.24.5 [FreeBSD] Number of packages to be installed: 1 The process will require 4 MiB more space. 774 KiB to be downloaded. Proceed with this action? [Y/n]: ^C [1/1] Fetching wget-1.24.5.pkg: 100% 774 KiB 793.1kB/s 00:01=20=20=20=20 Checking integrity... done (0 conflicting) [1/1] Installing wget-1.24.5... [1/1] Extracting wget-1.24.5: 100% Instead, being interrupted (or getting EOF) should always result in a negat= ive answer. One can probably check that the function read at least one charact= er (the newline). --=20 You are receiving this mail because: You are the assignee for the bug.=