[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