LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] bug in mv and/or ln

[ILUG] bug in mv and/or ln

Mike Knell mike.knell at cs.tcd.ie
Fri Jun 11 15:00:12 IST 1999


> Try this in Linux:
> 
> create a soft link to a directory,
> ln -s directory link
> 
> now, do the following:
> mv directory directory
> 
> Watch what happens. The "directory" link disappears. A bug?

What exactly do you mean here?

If you rename a directory, any symbolic links (as opposed to hard links)
to it will, I believe, be broken, but the links will remain there 
pointing to the old name.

I've tried replicating the above, but haven't noticed any vanishing
links - just symlinks with nothing left to point at, poor things.

For clarity, I tried

mkdir foo
ln -s foo bar
mv foo baz

and ended up with 

lrwxrwxrwx   1 mknell   mknell          3 Jun 11 14:59 bar -> foo
drwxr-xr-x   2 mknell   mknell       1024 Jun 11 14:59 baz

which is correct behaviour.

Mike

-- 
Computer Science System Administrator, Trinity College, Dublin, Ireland
       mike.knell at cs.tcd.ie -=- http://www.cs.tcd.ie/Mike.Knell/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell