Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Pierre Tomon Newsgroups: linux.debian.bugs.dist Subject: Bug#1095160: Disable messages when the apt command is used with pipe Date: Wed, 05 Feb 2025 13:30:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Feb 5 12:27:08 2025 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.751 Reply-To: Pierre Tomon , 1095160@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: APT Development Team X-Debian-Pr-Message: followup 1095160 X-Debian-Pr-Package: src:apt X-Debian-Pr-Source: apt MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Feedback-ID: :0bae8fc0ce27cdb:ham:d4c4a9452bf4d5d X-Infomaniak-Routing: alpha X-Debian-Message: from BTS X-Mailing-List: archive/latest/1885061 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 17 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 5 Feb 2025 12:23:21 -0000 X-Original-Message-ID: <4Ynzsk1yprzQhZ@smtp-4-0001.mail.infomaniak.ch> X-Original-References: <4YnShN46c2zbd4@smtp-4-0000.mail.infomaniak.ch> Xref: csiph.com linux.debian.bugs.dist:1231863 Hi, On Tue, 04 Feb 2025 20:09:40 +0100 Johannes Schauer Marin Rodrigues wrote: > the message is useful. It tells you that you are doing it wrong. There is nothing wrong here, the shell allows it, I use it. > Why don't you use a tool with an output format that is designed to be > consumed by scripts? > > apt-cache show "~o" | sed -ne 's/^Package: //p' | xargs Yes, I use that now instead of the `apt` command, it seemed faster and more practical with the latter.