cp -u always copies all files

Brian Ford ford@vss.fsi.com
Wed Jun 16 22:31:00 GMT 2004


On Wed, 16 Jun 2004, Keith Christian wrote:

> I'm running this Cygwin distribution on Windows XP Pro:
>
> CYGWIN_NT-5.1 den-aet-xpw002 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
> unknown Cygwin
>
> My most pressing question is why "cp -u" always copies all files instead of
> only updated ones.  I have tried this with several test files, and it never
> once offers to copy only new/updated files.  Is this a bug, or is there some
> other way I can test this and report back my findings?

WFM :-).

$ uname -a
CYGWIN_NT-5.1 fordpc 1.5.10(0.116/4/2) 2004-05-26 11:10 i686 unknown
unknown Cygwin

$ touch x
$ cp -u x y
$ ls -l
total 0
-rw-r--r--    1 ford     None            0 Jun 16 17:15 x
-rw-r--r--    1 ford     None            0 Jun 16 17:15 y

$ date
Wed Jun 16 17:16:01 CST 2004

$ cp -u x y
$ ls -l
total 0
-rw-r--r--    1 ford     None            0 Jun 16 17:15 x
-rw-r--r--    1 ford     None            0 Jun 16 17:15 y

$ touch x
$ cp -u x y
$ ls -l
total 0
-rw-r--r--    1 ford     None            0 Jun 16 17:16 x
-rw-r--r--    1 ford     None            0 Jun 16 17:16 y

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list