From owner-svn-src-head@freebsd.org Tue Dec 5 17:17:24 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0A83E7189E; Tue, 5 Dec 2017 17:17:24 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7283663B68; Tue, 5 Dec 2017 17:17:24 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id MGqQeP1DzRDG7MGqResqx1; Tue, 05 Dec 2017 10:17:23 -0700 X-Authority-Analysis: v=2.2 cv=b+PC2pOx c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=ocR9PWop10UA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=ndaoGXS1AAAA:8 a=RWzydPCFlKVictrZKQIA:9 a=Oi5DB1_Efbxysd3r:21 a=Ph7Tx-iF3zROu3-g:21 a=pILNOxqGKmIA:10 a=X58yrYSmipAA:10 a=BWvPGDcYAAAA:8 a=8l7mZa13pO45tTzP2b8A:9 a=gOwVrYTz3kFE_n5z:21 a=KV9SI-dKoOCm_D0E:21 a=85e5lze0_N498t16:21 a=_W_S_7VecoQA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=mFeOnlTyF09QQMGr2mMI:22 a=pxhY87DP9d2VeQe4joPk:22 Received: from [25.81.45.55] (S0106d4ca6d8943b0.gv.shawcable.net [24.68.134.59]) by spqr.komquats.com (Postfix) with ESMTPSA id 73E1C2D8; Tue, 5 Dec 2017 09:17:21 -0800 (PST) MIME-Version: 1.0 From: Cy Schubert Subject: RE: svn commit: r326554 - in head: . usr.bin/spongeusr.bin/sponge/tests usr.bin/tee Date: Tue, 5 Dec 2017 09:17:24 -0800 To: Pedro Giffuni , Devin Teske , Hans Petter Selasky CC: "rgrimes@freebsd.org" , "cem@freebsd.org" , Eitan Adler , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Message-Id: <20171205171721.73E1C2D8@spqr.komquats.com> X-CMAE-Envelope: MS4wfP1OuuqwRigZmyCv699pIc+i/lks06ZtXYakgBlE+/wUmPwJEk1oPO4gjVYDuqIKQChrNwGXtE6ZjuJSOQQ0KiCU2hhm+sLmuciDpz45qj1gdzrzCqWQ XZpg7KraflM5LCpt+WPHLXmPZeQ08RB+AwA/jPAYKM31oRJwgunDIWZw5Jvi7Ui55WdpGS3iB2b+hHzeI8ihxuoExlbBoYQatAoJXdMPp/0dt+qj556ibk8V BlnGdmSZK7tVezFsTnF1eU3OBPt4FLf5YnhF0Ex/ec87+EJeLMmLlsycUCI/ZIcYvvehklsYRLHppDGMlTbey4PKW9yhbiNhw8Y1h6ESd1bFGLV6wChfrq10 JXUHCGN2U5nQUS7M1+mTjn2KZoG321BSGHPsS9Za9r0rEaaAWiPYUnPt7xRng1TX4G3kCu7+ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 17:17:25 -0000 What side effects? Can you give one or two examples, please? --- Sent using a tiny phone keyboard. Apologies for any typos and autocorrect. This old phone only supports top post. Apologies. Cy Schubert or The need of the many outweighs the greed of the few. --- -----Original Message----- From: Pedro Giffuni Sent: 05/12/2017 08:40 To: Cy Schubert; Devin Teske; Hans Petter Selasky Cc: rgrimes@freebsd.org; cem@freebsd.org; Eitan Adler; src-committers; svn-= src-all@freebsd.org; svn-src-head@freebsd.org Subject: Re: svn commit: r326554 - in head: . usr.bin/spongeusr.bin/sponge/= tests usr.bin/tee On 05/12/2017 11:29, Cy Schubert wrote: Why not update sed to create the backup file only if the suffix is given to= -i, like gnu sed does. No, no .. there have been several failed attempts at that that cause nasty= side effects. It is also a rather non-standardish thing to do. Pedro. --- Sent using a tiny phone keyboard. Apologies for any typos and autocorrect. This old phone only supports top post. Apologies. Cy Schubert or The need of the many outweighs the greed of the few. --- From: Devin Teske Sent: 05/12/2017 07:35 To: Hans Petter Selasky Cc: rgrimes@freebsd.org; cem@freebsd.org; Eitan Adler; src-committers; svn-= src-all@freebsd.org; svn-src-head@freebsd.org Subject: Re: svn commit: r326554 - in head: . usr.bin/sponge usr.bin/sponge= /tests usr.bin/tee > On Dec 5, 2017, at 5:00 AM, Hans Petter Selasky wrote: >=20 >> On 12/05/17 13:58, Rodney W. Grimes wrote: >> Further more, why does freebsd need this in base? >=20 > Hi, >=20 > I think this is useful. It could replace the "-i " (intermediate) option = for "sed" for example. It avoids creating temporary files when filtering fi= les, right? >=20 > --HPS >=20 Wth is wrong with: data=3D$( sed -e '...' somefile ) && =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD echo "$dat= a" > somefile or set -e data=3D... echo "$data" > ... or exec 3< ... <&3 or (I digress) Infinite variations, but the gist is that sponge looks to be trying to hel= p sh(1)/similar when help is unneeded. Why buffer data into memory via fork-exec-pipe to sponge when you can buff= er to native namespace without pipe to sponge? Am I missing something? Why do we need sponge(1)? --=20 Devin =