| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <20000914224009.11541.qmail@web112.yahoomail.com> |
| Date: | Thu, 14 Sep 2000 15:40:09 -0700 (PDT) |
| From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
| Subject: | Warning: Dangerous mv command |
| To: | cygwin users <cygwin AT sourceware DOT cygnus DOT com> |
| MIME-Version: | 1.0 |
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 AT yahoo DOT 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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |