From nobody Wed Jun 15 13:38:55 2022 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 224B7838CEE for ; Wed, 15 Jun 2022 13:38:56 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LNRGl6QYRz4Tc1 for ; Wed, 15 Jun 2022 13:38:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 BA43C1FA1C for ; Wed, 15 Jun 2022 13:38:55 +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 25FDcttR065150 for ; Wed, 15 Jun 2022 13:38:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25FDctbb065149 for bugs@FreeBSD.org; Wed, 15 Jun 2022 13:38:55 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 264690] pkg info -e only returns (in exit code) status for last package listed Date: Wed, 15 Jun 2022 13:38:55 +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: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pen@lysator.liu.se 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-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: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655300335; 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=iyUjLdYOVHUb7nVdDOtTZnMduRtI07UXHMtTLm1cYN8=; b=Yr6ITT77f3ZwGUQj1EySf0htRhFXMD1OWIMVRcyOA9VDm3xNBgR9Ru1Wano/lnDv+EyO7k MZFwy3KT2STEr14HKoBCnWRxR1DApGuYKQaRuCFFuyUivuD9NHA5zoAuSX3IcgSrm2tLDv 9OJd1sRM621eGLYGyqAh4UjgOqRxQtKDdDl/MBFYj90tiDfFzEaqOYuuGd7BkxYSvv4rBA MqAkITz+lPB+Ske2MGj0/PXS7Icjggx4iENVtcPqd/8w9rHBD1r4ysJfxW2IUmVVgE9bY5 hYubUJaFiMjH8S792g5+9mdRU2+wSgjNH/mJgDe3FrfzOM+jU+JtHNkbeoh0tw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655300335; a=rsa-sha256; cv=none; b=QKlznVJQOd28n10t3sCkzycvhXEjNV98sUgdUMJMiz+J3yynczhH3/DZWvM/qxJTUyP7z0 Ndhb1HEEVkBTdbSOQ1wv249INicc4MprGKKRdd5PQwc375lf0ppMaFDcrEyEr2E4gpd/L8 hgj3FkAO9zCZ6yAnX3s1xoXEpk6vE++uwefjPEG5sR/0YHLz9ndZZYNzrP7KatmNMUTPmG ERTpeeUTdGvB4eGxsKs8Jr59hkv4mZ6eo03eHzn/uHFEtFYkr8pBz0PcFZ/f2h0k2EftZB q+7jLi+HQ3qMgh9877QBlCiXbHF+YCoDgxW07aqxq033Y8vr8xskF9G7a5LmvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264690 Bug ID: 264690 Summary: pkg info -e only returns (in exit code) status for last package listed Product: Base System Version: 12.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pen@lysator.liu.se I little bit annoying, it seems "pkg info -e" only returns as the exit stat= us for the last package listed even though it checks all. A workaround is to j= ust use "pkg info" and redirect stdout to /dev/null... # pkg info tmux zstd && echo OK tmux-3.2a zstd-1.5.2 OK # pkg info tmux zstd not-found && echo OK tmux-3.2a zstd-1.5.2 pkg: No package(s) matching not-found # pkg info tmux not-found zstd && echo OK tmux-3.2a pkg: No package(s) matching not-found zstd-1.5.2 # pkg info -e tmux not-found zstd && echo OK pkg: No package(s) matching not-found OK # pkg info -e tmux zstd not-found && echo OK pkg: No package(s) matching not-found --=20 You are receiving this mail because: You are the assignee for the bug.=