I've just noticed odd behaviour when deleting a symlink which points to
a directory. If you include a trailing forward slash on the symlink,
(ala tab completion) the symlink cannot be removed.

Look:

[pimpbox] ~/info/rhn: mkdir something
[pimpbox] ~/info/rhn: ln -s something nothing
[pimpbox] ~/info/rhn: ls -lh nothing
lrwxrwxrwx 1 william  william  nothing -> something/
[pimpbox] ~/info/rhn: rm nothing/
rm: remove directory `nothing/'? y
rm: remove directory `nothing/'? y
rm: cannot remove directory `nothing/': Not a directory

Without the trailing slash, rm works as expected.

[pimpbox] ~/info/rhn: rm nothing
rm: remove symbolic link `nothing'? y
[pimpbox] ~/info/rhn: ll -lh nothing
ls: nothing: No such file or directory

Not the end of the world, but I really hate adjusting my routine (or
typing style) for such basic functionality.  =(

I have verified this issue on 3 different rh8.0 installations on 3
separate machines.  If anyone has insight or specifically cannot
reproduce this behaviour, I would love to hear about it.

Cheers,
William

--
William Lanning ** RHCE
** Confuse and Conquer **




Reply via email to