Date: Tue, 02 Jul 2024 16:53:21 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 280092] ports-mgmt/pkg: Y/n question is accepted on interrupt or EOF Message-ID: <bug-280092-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280092-32340>