I'm aware that this is not the latest version; if this bug has
been fixed in the latest version of fileutils, please ignore
this bug report.
BUG: When "s" is a symlink to a directory "d",
ls -ld s shows the symlink
ls -ld s/ shows the symlink - WRONG
ls -ld s/. shows the directory
it should be:
ls -ld s shows the symlink
ls -ld s/ shows the directory, then obviously:
ls -ld s/. shows the directory too
I can't quote any part of a standard that says the current
behaviour is wrong, but it doesn't behave neither like every
other ls i've tried, nor the way you expect it to behave.
/bin/ls on *BSD, Solaris, SunOS, OSF1 and HP-UX (probably many
others as well) produces this result:
$ mkdir d
$ ln -s d s
$ $GNU/bin/ls -ld s s/ s/.
lrwx------ 1 perhov wheel 1 Jun 16 11:36 s -> d
lrwx------ 1 perhov wheel 1 Jun 16 11:36 s -> d
drwx------ 2 perhov wheel 512 Jun 16 11:36 s/.
$ /bin/ls -ld s s/ s/.
lrwx------ 1 perhov wheel 1 Jun 16 11:36 s -> d
drwx------ 2 perhov wheel 512 Jun 16 11:36 s/
drwx------ 2 perhov wheel 512 Jun 16 11:36 s/.
--
Per Kristian Hove <[EMAIL PROTECTED]>
Principal engineer
Dept. of Mathematical Sciences
Norwegian University of Science and Technology