delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/15/23:56:36

From: cgf AT cygnus DOT com (Christopher G. Faylor)
Subject: Re: B20, Win95: cp destroys file
15 Nov 1998 23:56:36 GMT :
Message-ID: <72npnk$11t$1@cronkite.cygnus.com>
References: <364E3A39 DOT 6A5 DOT cygnus DOT gnu-win32 AT watson DOT ibm DOT com>
X-Newsreader: trn 4.0-test63 (15 March 1998)

In article <364E3A39 DOT 6A5 DOT cygnus DOT gnu-win32 AT watson DOT ibm DOT com>,
Henry S. Warren, Jr. <hank AT watson DOT ibm DOT com> 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.
-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019