Thread (19 messages) flat view 19 messages, 7 authors, 2021-03-15

Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout

From: Theo de Raadt <hidden>
Date: 2021-01-24 18:06:06

Otto Moerbeek [off-list ref] wrote:
On Sun, Jan 24, 2021 at 01:18:46PM +0100, Alejandro Colomar wrote:
quoted
This is useful for using tee to just write to a file,
at the end of a pipeline,
without having to redirect to /dev/null

Example:

echo 'foo' | sudo tee -q /etc/foo;

is equivalent to the old (and ugly)
You keep repeating "ugly" as the reason you are wanting this.

I consider adding special options to command to solve an imagined
issue that can be solved with a general concept like redirection ugly.
Please stop pushing your diff to this list. So far nobody showed any
interest.
I also see ZERO reason for this change.

This change will encourage the creation of non-portable scripts, which
harms backwards compatibility and portability, while increasing the
cognitive cost of building software in a simple and useable command
ecosystem.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help