Date: Tue, 5 Dec 2017 15:44:09 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Hans Petter Selasky <hps@selasky.org> Cc: rgrimes@freebsd.org, cem@freebsd.org, Eitan Adler <eadler@freebsd.org>, src-committers <src-committers@freebsd.org>, 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 Message-ID: <20171205134409.GV2272@kib.kiev.ua> In-Reply-To: <22918eec-4c98-01e4-4c63-e145fbc6eab9@selasky.org> References: <201712051258.vB5CwjQN051356@pdx.rh.CN85.dnsmgr.net> <22918eec-4c98-01e4-4c63-e145fbc6eab9@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 05, 2017 at 02:00:00PM +0100, 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? No, if process fails during the operation, user data is destroyed irretrievable.The usual trick of creating temporary file and renaming ensure that old file is around until all data for new file is written into buffer cache. With some existing filesystem support, it also guarantees that the old file is around in case of the system crash. All this assuming the tool' code matches its description, which is not.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171205134409.GV2272>