From owner-freebsd-hackers@freebsd.org Sun Jan 24 17:58:31 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 105954D448B for ; Sun, 24 Jan 2021 17:58:31 +0000 (UTC) (envelope-from deraadt@openbsd.org) Received: from cvs.openbsd.org (cvs.openbsd.org [199.185.137.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 SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "cvs.openbsd.org", Issuer "cvs.openbsd.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DP12G5PBXz3sQS; Sun, 24 Jan 2021 17:58:30 +0000 (UTC) (envelope-from deraadt@openbsd.org) Received: from cvs.openbsd.org (localhost [127.0.0.1]) by cvs.openbsd.org (OpenSMTPD) with ESMTP id e1ff6703; Sun, 24 Jan 2021 10:58:28 -0700 (MST) From: "Theo de Raadt" To: Otto Moerbeek cc: Alejandro Colomar , Bernhard Voelker , Alex Henrie , Christian Groessler , =?iso-8859-1?Q?P=E1draig?= Brady , Coreutils , William Ahern , Erik Auerswald , Eric Pruitt , Jeffrey Walton , Michael Kerrisk , Fabrice BAUZAC , tech@openbsd.org, freebsd-hackers@freebsd.org, linux-api@vger.kernel.org, juli@clockworksquid.com, ed@nuxi.nl, oshogbo@freebsd.org Subject: Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout In-reply-to: References: <1f8ce444-35e2-56a7-dbd1-34e885372b11@gmail.com> <20210124121845.38293-1-alx.manpages@gmail.com> Comments: In-reply-to Otto Moerbeek message dated "Sun, 24 Jan 2021 18:51:48 +0100." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <61963.1611511108.1@cvs.openbsd.org> Date: Sun, 24 Jan 2021 10:58:28 -0700 Message-ID: <80701.1611511108@cvs.openbsd.org> X-Rspamd-Queue-Id: 4DP12G5PBXz3sQS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-Mailman-Approved-At: Mon, 25 Jan 2021 09:40:23 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 17:58:31 -0000 Otto Moerbeek wrote: > On Sun, Jan 24, 2021 at 01:18:46PM +0100, Alejandro Colomar wrote: > > > 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.