A co-worker (CC'ed on this email) pointed the following out which I
thought I should report as a potential bug/unexpected behavior of GNU
mv:
> mkdir jj
> cd jj
> mkdir dir
> ln -s dir link1
> ls -Al
total 4
drwxr-xr-x 2 vaniwaar users 4096 Jan 11 07:40 dir
lrwxrwxrwx 1 vaniwaar users 3 Jan 11 07:40 link1 -> dir
> mv link1/ link2/
> ls -Al
total 4
lrwxrwxrwx 1 vaniwaar users 3 Jan 11 07:40 link1 -> dir
drwxr-xr-x 2 vaniwaar users 4096 Jan 11 07:40 link2
> mv --version
mv (GNU fileutils) 4.0
> ls --version
ls (GNU fileutils) 4.0
After the command 'mv link1/ link2/', I expected to see dir and
link2->dir which is exactly what happens on an SGI. This unexpected
behaviour occured on a Redhat 6.1 GNU/Linux system.
--Ron
o The only thing worse \ Use the idle time of your computer
/\ than infinite \ and join the fastest computer on
_`\ `_<=== recursion is \ earth!
__(_)/_(_)___.-._ infinite recursion \ ** http://www.distributed.net **