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.