delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/11/22:17:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3789504D.D87C9B6F@werple.net.au>
Date: Mon, 12 Jul 1999 12:17:49 +1000
From: Tim Davidson <timd AT werple DOT net DOT au>
X-Mailer: Mozilla 4.6 [en-gb] (Win95; I)
X-Accept-Language: en-GB,en,en-*
MIME-Version: 1.0
To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: mv does not overwrite destination file

Normally, when I try to move a file 'src' to existing file 'dest', the
move works as it should:

    $ ls
    tmp.tmp    tmp1.tmp
    $ /bin/mv tmp.tmp tmp1.tmp
    $ ls
    tmp1.tmp

However, when I try to move a file 'src' to existing file 'dest' and the
two files are on different drives, the move fails:

    $ /bin/mv //c/tmp.tmp //d/tmp1.tmp
    /bin/mv: cannot move `//c/tmp.tmp' to `//d/tmp1.tmp': File exists

Same occurs when -f flag is used.

Any ideas why this happens?

--
Tim Davidson



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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