bug-cppi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cppi] Re: [PATCH] Add new option --in-place


From: Pádraig Brady
Subject: [bug-cppi] Re: [PATCH] Add new option --in-place
Date: Wed, 24 Mar 2010 12:15:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 23/03/10 12:22, Pádraig Brady wrote:
> On 23/03/10 06:15, Jim Meyering wrote:
>> Pádraig Brady wrote:
>>>
>>> However `replace` is used by mysql-server as previously mentioned.
>>> And `repl` is used by nmh. How about keeping with the terse unix
>>> tradition while alluding to the relationship with cp/mv/rm by using...
>>>
>>> rp
>>
>> I wouldn't object.
>>
>> A possible bastardized compromise: re-place
>> It's sort of analogous to in-place.
> 
> None of rp, inplace, re-place are great TBH.
> Anyway attached is the latest version.
> It's getting a bit complicated, but I don't
> think much more needs to go in (maybe translations?)

Thinking more about it, atomicity would be required in many cases
so therefore we would need a --atomic option to stop the fall back
to the non atomic update.

Also I noticed that `mv -b ./file.tmp ./file` is not atomic
because the renames are done like: rename(file,bak); rename(tmp,file);

I've updated the attached script accordingly.
It's starting to get a bit complex and hacky though.

cheers,
Pádraig.

Attachment: rp
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]