This is the mail archive of the cygwin@sourceware.cygnus.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]

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@sourceware.cygnus.com


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