From owner-svn-src-all@freebsd.org Tue Dec 5 17:01:11 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 45B99E70DFD for ; Tue, 5 Dec 2017 17:01:11 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic315-22.consmr.mail.gq1.yahoo.com (sonic315-22.consmr.mail.gq1.yahoo.com [98.137.65.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BBD4397C for ; Tue, 5 Dec 2017 17:01:10 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512493269; bh=CsfJbu+BDxa61aRfqcDSXkML/9z4xPZB8WBnjc0RCZk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=MiAsPL7t95F4smx3x8tcRn6v6we/G/QYXXRbGzAkiw2ucw6djgmAhZ+EOkXW4H67rxJs8cZIy7YCwXOETrBPwBrC/Rd8dp6YrTfjUPeqovvFeF6e50uXboqikS+bJ0OHxrn84/UqghJuqpv/goeTd6MUxTHfXKeE6IyfPJ56MikXFAWFdHbgA491HlDpSQ4e8jRdY/hD9nsIpHuA6TvONlIsYQ9VLKOGtWV2zqshtZzwci2ltj/ITWabab9dDQil+OQHis/Tiy9pInJOR0X8wv1xlBcQqf5dG0jQD+0o+wy/tj/cKg0WMPMTOMZYJjeGBnBJ8F08sWOMNFg+BXbl8Q== X-YMail-OSG: KkYx1Q0VM1mxsfr7S6vw2yXNe0u0fPp9L04plgo5ZYojtiXjJRJhkgAzOChPCB3 MyTdaewOfWMo9lVs5oVV60xSUMi0iC1VcYXotHXJ7LAhjtI_qvYl470t0s0Grlq8pybWTjj17gHc YI_ETGblM9X3VPixnyQC4KDkGl5UVmSrudWX5_gmXVZ0m_BN5p6qUvvVaDUaih4f2Sv.GKw.K9XI 4FkUwt2QihMbsYpP_CL3AkLMv0tmN_soqFcKvqf8AoKUcuQ0eZRMw1uC861iwoQwg8vBy_AkDnnz pQfkmIglhK3MJD970KcUTZjppewnhEmjuQu5C8TJC9H0n7EtgJeaZKhVSyMmK9TRUeE4wq7YSAYa ve6sMlVD6m2t6s4IlaiH0dEJBjmv3conqkyMNgQ8cr8llb5xzfcpSmbmlaeJX6RcJU7XDUttTcjK 6PR1R8zfFhCXVN4.XC2gp7ckriyaTwqx.AdVFQmmpxWdksfNPCWCS4PthNzOqfWrrH3dd7K83 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Tue, 5 Dec 2017 17:01:09 +0000 Received: from smtp104.rhel.mail.gq1.yahoo.com (EHLO [192.168.0.3]) ([216.39.57.214]) by smtp415.mail.gq1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 878947950; Tue, 05 Dec 2017 16:40:52 +0000 (UTC) Subject: Re: svn commit: r326554 - in head: . usr.bin/sponge usr.bin/sponge/tests usr.bin/tee 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" References: <20171205162926.9F16C1DD@spqr.komquats.com> From: Pedro Giffuni Organization: FreeBSD Project Message-ID: Date: Tue, 5 Dec 2017 11:40:53 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171205162926.9F16C1DD@spqr.komquats.com> Content-Language: en-US Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Tue, 05 Dec 2017 17:01:11 -0000 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: > > > >> On 12/05/17 13:58, Rodney W. Grimes wrote: > >> Further more, why does freebsd need this in base? > > > > 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=$( sed -e '...' somefile ) && > ������� echo "$data" > somefile > > or > > set -e > data=... > echo "$data" > ... > > or > > exec 3< $( ... ) > 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? > > Am I missing something? Why do we need sponge(1)? > -- > Devin >