This is the mail archive of the cygwin 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]
Other format: [Raw text]

mv performing a cp?


If I attempt to rename a directory via mv and a file within that directory
is in use, instead of saying the mv can't be done, mv tries to cp.  Is
this expected behaviour?

Prior to mv:

/c/logs$ ls -ld kimberly
drwxrwxrwx+ 181 Administ Domain U   327680 Oct 20 10:58 kimberly
/c/logs$

I happen to have a spreadsheet via Excel from the directory
kimberly/040922 open.

I attempt to rename the kimberly directory and see the following:

/c/logs$ mv -v kimberly kimberly_local
`kimberly' -> `kimberly_local/kimberly'
`kimberly/030401' -> `kimberly_local/kimberly/030401'
`kimberly/030401/10.3.19.218.txt' ->
`kimberly_local/kimberly/030401/10.3.19.218.txt'
`kimberly/030401/cmd2000_log_030401.txt' ->
`kimberly_local/kimberly/030401/cmd2000_log_030401.txt'
...

where it would appear to me that cp's or mv's of each file under that
directory is taking place.

--
Ken Shaffer


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

Attachment: cygcheck.txt
Description: Text document

--
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/

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