[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r20632 - trunk/build/ac-macros

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-07-13 21:14:06 CEST

Malcolm Rowe <malcolm-svn-dev@farside.org.uk> writes:

> On Thu, Jul 13, 2006 at 07:50:31PM +0100, Philip Martin wrote:
>> maxb@tigris.org writes:
>>
>> > + # This little dance satisfies Cygwin, which cannot overwrite in-use files.
>> > + if test -f "$1"; then
>> > + mv "$1" "$1.old"
>> > + rm -f "$1.old"
>> > + fi
>>
>> I don't understand that, should the comment say "delete" instead of
>> "overwrite"? I'm surprised that mv/rm works if plain rm fails!
>>
>
> No, I asked this too. Apparently Cygwin can delete in-use files (it deletes
> on last close), but it can't write over in-use files.

I'm wondering whether I really want to understand this :)

So when running the script config.nice on Cygwin it's not possible
simply to overwrite the file config.nice, because it's open, and
although it's possible to delete config.nice that still doesn't allow
the file config.nice to be written.

Is the rm optional, i.e., is renaming config.nice enough to allow a new
config.nice to be written? If so then it would make more sense to
delay the rm until after the new config.nice has been written.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 13 21:14:39 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.