This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Warning: Dangerous mv command
- To: cygwin users <cygwin at sourceware dot cygnus dot com>
- Subject: Warning: Dangerous mv command
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Thu, 14 Sep 2000 15:40:09 -0700 (PDT)
Be cautious of the following scenario:
Cygwin is in D:\Cygwin-1.1
I want to mount directory D:\Archive_Backup as /foo
(note this is the same device)
So I:
mkdir /foo
mount -b D:/Archive_Backup /foo
I change my mind and want /foo to be /bar so:
mv /foo /bar
The result is that of:
move D:\Archive_Backup D:\Cygwin-1.1\bar
/foo is still mounted and still points to D:\Archive_Backup
The empty mount point /foo still exists.
ls /foo gives `ls: /foo: No such file or directory'
ls /bar gives listing of files that exited in D:\Archive_Backup.
Cheers,
=====
--- <http://earniesystems.safeshopper.com> ---
Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
__Minimalist GNU for Windows__
Mingw32 List: <http://www.egroups.com/group/mingw32/>
Mingw Home: <http://www.mingw.org/>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com