From nobody Tue Jul 02 16:53:21 2024 X-Original-To: pkg@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 4WD89s5zHRz5NkgS for ; Tue, 02 Jul 2024 16:53:21 +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 4WD89s3p4Qz4G6v 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=nQAZJFLevEsmn3yG26DOkdFtmyyWeOTn+G0SNMuQ81i7GK+MeqU9was3XfyH0I62btIOR0 ATpXLohvBYpzzqHek4ixVWkcWGop9qKg5cdqe+bx8GZbSIKO//cQeP/6tHeBai1d+glOll u7u+CF7L1l4Jr/ng4twM/iRckI6eod0pH3pLJlWlmX1gcT5EWTHOxx/+Y8W6DpEgHs5ayf g9tiYM4mpwHsvLdOg8htMGenJlvni62diHaeqU23lWN/ionOx93+D0+HtwX49f/q8MTEut jW7uw7qsw/DzHtTy4Y5a+8903LoBW2NLMs+mjjEeVHc+s3eOBZ6h4btrgdDU+Q== 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: in-reply-to:in-reply-to:references:references; bh=kyedU7KA0YMrZoF4EnNHCAm+xxpXRFJ94uqm9jGjjA0=; b=Jv4NmNX3wAfunJR3Ah3tR0FfomNyVUI1qODzfNcmXsAmMmn49iYQrQK+TmoKS6zEjgIlFM LsRtVm+pcMP8b08IjBWkYLbbbLPDj+XNN0lfy5uq+Et9pNY0RVQAToSNT9wCVjPGLXwc5L 3RdZFpFEaKrLuqWYoDC7booEZbhR5cbHBA1d8fyBtQMmz1FVY+C+C0xF8ovuOYSm86RMUH f7WS3uNLVUqeYGYJ3Np2yCEHOM1hQDe+mesAG7rnQcrZzuHq3hr236qBhU9S4Z4c7rNXvc zbgug0iNbhZ6sfCjL4M9hHdy8lCHg5RtLiEvBCApeAF9ohBR1pghPWH3lNf1dg== 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 4WD89s3NcNzw3x 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 462GrLv9009953 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 462GrLHL009947 for pkg@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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [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-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 280092: ports-mgmt/pkg: Y/n question is accepted on interrupt or EOF https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280092 --- Description --- 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).