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

Paul Jakma Paul.Jakma at Digital.com
Fri Jun 11 15:23:07 IST 1999


> ----------
> From: 	Donncha O Caoimh[SMTP:donncha.ocaoimh at tradesignals.com]
> Sent: 	11 June 1999 14:44
> To: 	ilug at linux.ie
> Subject: 	[ILUG] bug in mv and/or ln
> 
> 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?
> 
[root at nldbd test]# mkdir directory
[root at nldbd test]# ls
directory
[root at nldbd test]# cd directory/
[root at nldbd directory]# ls
[root at nldbd directory]# cd ..
[root at nldbd test]# ls
directory
[root at nldbd test]# mv directory/ directory/
mv: cannot move `directory' to `directory/directory': Invalid argument
[root at nldbd test]# rpm -qf /bin/mv
fileutils-3.16-10
[root at nldbd test]#

so you've got an old mv. but the symlink still shouldn't disapear, should
it? What kernel version is it? let me guess, an older 2.0?

> Donncha.
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
> information.
> List maintainer: listmaster at linux.ie
> 




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