On Thu, Sep 06, 2012 at 11:23:21AM -0700, Paul Eggert wrote:
On 09/06/2012 10:35 AM, Bernhard Voelker wrote:
> Why can't 'sed -i' be made atomic for the user?
> Today, it creates a temporary file for the output.
> At the end, it calls rename(). What if it instead
> rewinds
On Fri, Dec 01, 2006 at 03:59:40PM +0100, Alfred M. Szmidt wrote:
if --remove (-u) is specified. The default is not to remove the
files because it is common to operate on device files like
/dev/hda, and those files usually should not be removed. When
operating on r
if --remove (-u) is specified. The default is not to remove the files because
it is common to operate on device files like /dev/hda,
and those files usually should not be removed. When operating on
regular files, most people use the --remove option.
Why not use the stat system call to f