From owner-svn-src-all@freebsd.org Wed Dec 6 04:20:00 2017 Return-Path: Delivered-To: svn-src-all@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 DB0B8E8F132; Wed, 6 Dec 2017 04:20:00 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (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 5CC7D2050; Wed, 6 Dec 2017 04:19:59 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id MRBVeZUA4GvLHMRBXemNpG; Tue, 05 Dec 2017 21:19:53 -0700 X-Authority-Analysis: v=2.2 cv=a9pAzQaF c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=ocR9PWop10UA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=BWvPGDcYAAAA:8 a=ndaoGXS1AAAA:8 a=hx6Ii2k5rYYujSR53hIA:9 a=vco7Zi0Eel3hwEHE:21 a=g2mOxOadRNXdeNGP:21 a=-AoTj2VQkFj2jE9d:21 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=pxhY87DP9d2VeQe4joPk:22 a=mFeOnlTyF09QQMGr2mMI:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id AB65B296; Tue, 5 Dec 2017 20:19:49 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id vB64Jnpp068353; Tue, 5 Dec 2017 20:19:49 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id vB64JldG068350; Tue, 5 Dec 2017 20:19:47 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201712060419.vB64JldG068350@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Pedro Giffuni cc: Cy Schubert , 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" Subject: Re: svn commit: r326554 - in head: . usr.bin/spongeusr.bin/sponge/tests usr.bin/tee In-Reply-To: Message from Pedro Giffuni of "Tue, 05 Dec 2017 20:01:46 -0500." <4FE900E7-10E6-4909-BB4A-C5E6F83FF515@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Dec 2017 20:19:47 -0800 X-CMAE-Envelope: MS4wfIFCV8AflxFKpNFzYBcHAmUWjo0Ld4cR0cJlwlggW93RqfLbC+5FQNbYgaW8ihK8/C0AryPUpuVCkgPegYHNg994Q/yds/FvuEHTL0nG0e5G6Sez1ebQ nX/0ALGcwWQrWz4umCtcwBKJ5phYbDgBEih5DRG2Q6T7+R68NlUQguDoC8XakreLUHAxMRS8b+v6cRymOuknvyjQjtYKF4kTt1JsR73KTv6ao4995HdgL5dn v4juCe5i69bWWo6nl8mjcvBhSaQCYeU2YsnWbPPGD0n9YB5l/lhzpAHZ5ONI9s6OeZbVAqFoB1PMReOmRBKeA9eJvXIy0kWffXPa22zVKn5n1USZvLjdFtZZ 2Jy23/lewu3aBQrOPVfWCV4QMxb09vJ4XHsnVEeuY36/qt6/HrRNulfXrZzvsQA+FgXDx06C X-Mailman-Approved-At: Wed, 06 Dec 2017 04:21:51 +0000 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2017 04:20:01 -0000 Thanks. It doesn't matter anyway FreeBSD sed -i '' == gsed -i . -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. In message <4FE900E7-10E6-4909-BB4A-C5E6F83FF515@FreeBSD.org>, Pedro Giffuni wr ites: > > > --Apple-Mail=_50E4FA92-D46B-44D0-AA71-CE18C2B93B8C > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=utf-8 > > 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 > > > --Apple-Mail=_50E4FA92-D46B-44D0-AA71-CE18C2B93B8C > Content-Transfer-Encoding: quoted-printable > Content-Type: text/html; > charset=utf-8 > > charset=3Dutf-8"> -webkit-nbsp-mode: space; line-break: after-white-space;" = > class=3D"">Hello;

type=3D"cite" class=3D"">
On Dec 5, 2017, at 12:17, Cy = > Schubert < class=3D"">Cy.Schubert@komquats.com> wrote:

class=3D"Apple-interchange-newline">
> charset=3Dwindows-1252" http-equiv=3D"Content-Type" class=3D""> > =20 >
class=3D"">
11pt;" class=3D"">What side effects? Can you give one or two examples, = > please?

class=3D"">

class=3D"">
Sorry, I forgot the details .. but I am pretty sure = > there was exp-run and breakage in the ports tree.

class=3D"">
Pedro.

type=3D"cite" class=3D"">
text=3D"#000000" class=3D"">
Calibri,sans-serif; font-size: 11pt;" class=3D"">---
Sent = > using a tiny phone keyboard.
Apologies for any typos and = > autocorrect.
This old phone only supports top post. = > Apologies.

Cy Schubert
< href=3D"mailto:Cy.Schubert@cschubert.com" = > class=3D"">Cy.Schubert@cschubert.com> or < href=3D"mailto:cy@freebsd.org" class=3D"">cy@freebsd.org>
class=3D"">The need of the many outweighs the greed of the few.
class=3D"">---

style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: = > bold;" class=3D"">From: Tahoma,sans-serif; font-size: 10pt;" class=3D"">Pedro Giffuni
class=3D""> 10pt; font-weight: bold;" class=3D"">Sent: style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;" = > class=3D"">05/12/2017 08:40
style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: = > bold;" class=3D"">To: Tahoma,sans-serif; font-size: 10pt;" class=3D"">Cy Schubert; Devin = > Teske; Hans Petter Selasky
style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: = > bold;" class=3D"">Cc: Tahoma,sans-serif; font-size: 10pt;" class=3D""> href=3D"mailto:rgrimes@freebsd.org" class=3D"">rgrimes@freebsd.org; = > cem@freebsd.org; Eitan = > Adler; src-committers; class=3D"">svn-src-all@freebsd.org; href=3D"mailto:svn-src-head@freebsd.org" = > class=3D"">svn-src-head@freebsd.org
style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: = > bold;" class=3D"">Subject: Tahoma,sans-serif; font-size: 10pt;" class=3D"">Re: svn commit: r326554 = > - in head: . usr.bin/spongeusr.bin/sponge/tests usr.bin/tee
class=3D"">


>

>
On 05/12/2017 11:29, Cy Schubert = > wrote:
>
>
type=3D"cite" class=3D""> > =20 >
>
class=3D"">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.
>
>
type=3D"cite" class=3D""> >
>
class=3D"">---
> Sent using a tiny phone keyboard.
> Apologies for any typos and autocorrect.
> This old phone only supports top post. Apologies.
= > >
> Cy Schubert
> href=3D"mailto:Cy.Schubert@cschubert.com"><Cy.Schubert@cschubert.com>= > ; or href=3D"mailto:cy@freebsd.org"><cy@freebsd.org>
> The need of the many outweighs the greed of the few.
class=3D""> > ---
>
>
>
font-size: 10pt; font-weight: bold;" class=3D"">From: style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;" = > class=3D"">Devin Teske
> font-weight: bold;" class=3D"">Sent: Tahoma,sans-serif; font-size: 10pt;" class=3D"">05/12/2017 = > 07:35
> font-weight: bold;" class=3D"">To: Tahoma,sans-serif; font-size: 10pt;" class=3D"">Hans Petter = > Selasky
> font-weight: bold;" class=3D"">Cc: Tahoma,sans-serif; font-size: 10pt;" class=3D""> class=3D"moz-txt-link-abbreviated" = > href=3D"mailto:rgrimes@freebsd.org">rgrimes@freebsd.org; > href=3D"mailto:cem@freebsd.org">cem@freebsd.org; Eitan Adler; = > src-committers; > href=3D"mailto:svn-src-all@freebsd.org">svn-src-all@freebsd.org; class=3D"moz-txt-link-abbreviated" = > href=3D"mailto:svn-src-head@freebsd.org">svn-src-head@freebsd.org n>
> font-weight: bold;" class=3D"">Subject: Tahoma,sans-serif; font-size: 10pt;" class=3D"">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 > href=3D"mailto:hps@selasky.org"><hps@selasky.org> wrote:
class=3D""> > >
> >> On 12/05/17 13:58, Rodney W. Grimes wrote:
> >> Further more, why does freebsd need this in base?
class=3D""> > >
> > Hi,
> >
> > 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?
> >
> > --HPS
> >
>
> Wth is wrong with:
>
> 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
>
> or
>
> set -e
> data=3D...
> echo "$data" > ...
>
> or
>
> exec 3<<EOF
> $( ... )
> EOF
> cat > ... <&3
>
> or
>
> (I digress)
>
> Infinite variations, but the gist is that sponge looks to be > trying to help sh(1)/similar when help is unneeded.
>
> Why buffer data into memory via fork-exec-pipe to sponge when you > can buffer to native namespace without pipe to sponge?
class=3D""> >
> Am I missing something? Why do we need sponge(1)?
> --
> Devin
>
>
>
> =20 > >

= > > --Apple-Mail=_50E4FA92-D46B-44D0-AA71-CE18C2B93B8C--