Warning: Dangerous mv command

Earnie Boyd earnie_boyd@yahoo.com
Thu Sep 14 15:40:00 GMT 2000


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



More information about the Cygwin mailing list