This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cp -p fails with .exe files


On Thu, Jun 21, 2001 at 10:43:53AM -0400, Francis Litterio wrote:
>Cliff Hones wrote:
>
>> Cygwin cp is ".exe" aware - meaning that "cp xxx yyy" will copy
>xxx.exe to
>> yyy.exe if xxx.exe exists (and xxx does not).  But "cp -p xxx yyy"
>fails -
>> it does the copy then reports that it is unable to preserve  the time
>for "yyy".
>
>This may be related (I see it in 1.3.1):
>
>	bash$ rm -f foo bar foo.exe bar.exe  # Just to start clean.
>	bash$ touch foo.exe
>	bash$ cp foo bar
>	cp: `foo' and `bar' are the same file
>
>Apologies if this has been brought up before.

It is not related.  fileutils was specifically updated to work around this
problem.  Apparently I missed the -p option, though.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]