Quoting Pierre Tomon (2025-02-05 13:23:21)
> On Tue, 04 Feb 2025 20:09:40 +0100 Johannes Schauer Marin Rodrigues
> <jo...@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.

the moment you pipe stdout into another process, standard output of the process
on the left side of the pipe is no longer connected to an interactive terminal.
This is a difference. The "apt" tool does not have a stable CLI interface. You
used it in a script because you connected apt's standard output to another
process using a pipe. That is not an interactive tty. Yes, you are doing it
wrong. Please read up on the difference.

Attachment: signature.asc
Description: signature

Reply via email to