Subject: Re: B20, Win95: cp destroys file
From: [email-masked] (Christopher G. Faylor)

15 Nov 1998 23:56:36 GMT
Message-ID: <[email-masked]>
References: <[email-masked]>
X-Newsreader: trn 4.0-test63 (15 March 1998)

In article <[email-masked]>,
Henry S. Warren, Jr. <[email-masked]> wrote:
>If you copy, using cp, a file to itself, and the target and source files
>differ in capitalization, then the content of the file is wiped out; it
>becomes a file of 0-length.  Example: "cp hilbert.c hilbert.C" trashes
>file hilbert.c.  
>   The Win95 "copy" command gives the error message "File cannot be
>copied onto itself" in this situation (much preferable)

This has always been the case with cygwin, unfortunately.

Patches to rectify this behavior are, as always, welcome.
-- 
[email-masked]
http://www.cygnus.com/