Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1231863

Bug#1095160: Disable messages when the apt command is used with pipe

From Pierre Tomon <pierretom+23@ik.me>
Newsgroups linux.debian.bugs.dist
Subject Bug#1095160: Disable messages when the apt command is used with pipe
Date 2025-02-05 13:30 +0100
Message-ID <KcMHv-eAI2-3@gated-at.bofh.it> (permalink)
References <KctER-emWA-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Tue, 04 Feb 2025 20:09:40 +0100 Johannes Schauer Marin Rodrigues
<josch@debian.org> 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.

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-04 17:10 +0100
  Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-04 18:10 +0100
    Bug#1095160: Disable messages when the apt command is used with pipe Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-02-04 20:20 +0100
  Bug#1095160: Disable messages when the apt command is used with pipe Pierre Tomon <pierretom+23@ik.me> - 2025-02-05 13:30 +0100
    Bug#1095160: Disable messages when the apt command is used with pipe Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-02-05 14:30 +0100

csiph-web