From owner-svn-src-head@freebsd.org Wed Dec 6 01:01:56 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 C0CEBE89E92 for ; Wed, 6 Dec 2017 01:01:56 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1.freebsd.org (Postfix) with SMTP id 8E5ED7BDE6 for ; Wed, 6 Dec 2017 01:01:56 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: (qmail 37411 invoked by uid 99); 6 Dec 2017 01:01:55 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 01:01:55 +0000 Received: from [192.168.0.8] (unknown [186.80.205.98]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 060071A0158; Wed, 6 Dec 2017 01:01:51 +0000 (UTC) From: Pedro Giffuni Message-Id: <4FE900E7-10E6-4909-BB4A-C5E6F83FF515@FreeBSD.org> Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: svn commit: r326554 - in head: . usr.bin/spongeusr.bin/sponge/tests usr.bin/tee Date: Tue, 5 Dec 2017 20:01:46 -0500 In-Reply-To: <20171205171721.73E1C2D8@spqr.komquats.com> Cc: Devin Teske , Hans Petter Selasky , "rgrimes@freebsd.org" , "cem@freebsd.org" , Eitan Adler , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" To: Cy Schubert References: <20171205171721.73E1C2D8@spqr.komquats.com> X-Mailer: Apple Mail (2.3445.4.7) Content-Type: text/plain; charset=utf-8 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: Wed, 06 Dec 2017 01:01:56 -0000 Hello; > On Dec 5, 2017, at 12:17, Cy Schubert = wrote: >=20 > What side effects? Can you give one or two examples, please? >=20 Sorry, I forgot the details .. but I am pretty sure there was exp-run = and breakage in the ports tree. Pedro. > --- > Sent using a tiny phone keyboard. > Apologies for any typos and autocorrect. > This old phone only supports top post. Apologies. >=20 > Cy Schubert > or > The need of the many outweighs the greed of the few. > --- > 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 >=20 >=20 > 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. >>=20 >=20 > 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. >=20 > Pedro. >=20 >> --- >> Sent using a tiny phone keyboard. >> Apologies for any typos and autocorrect. >> This old phone only supports top post. Apologies. >>=20 >> 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 >>=20 >>=20 >> > 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 files, right? >> >=20 >> > --HPS >> >=20 >>=20 >> Wth is wrong with: >>=20 >> data=3D$( sed -e '...' somefile ) && >> =C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD= =C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD echo "$data" > = somefile >>=20 >> or >>=20 >> set -e >> data=3D... >> echo "$data" > ... >>=20 >> or >>=20 >> exec 3<> $( ... ) >> EOF >> cat > ... <&3 >>=20 >> or >>=20 >> (I digress) >>=20 >> Infinite variations, but the gist is that sponge looks to be trying = to help sh(1)/similar when help is unneeded. >>=20 >> Why buffer data into memory via fork-exec-pipe to sponge when you can = buffer to native namespace without pipe to sponge? >>=20 >> Am I missing something? Why do we need sponge(1)? >> --=20 >> Devin >>=20 >=20