Creating a symlink to current directory does not display with ls as expected
Wed Jun 22 01:37:00 GMT 2005
On Tue, Jun 21, 2005 at 11:35:26PM +0000, Eric Blake wrote:
>> I'm not sure if this is the right place for this, but I have a question
>> about how ls on cygwin displays a symlink pointing to the current
>Yep, this is the right place.
>> When I do the following:
>> # cd ~
>> # ln -s here .
>> # ls -l here
>> lrwxrwxrwx 1 gene.sally mkgroup 1 Jun 21 16:51 here ->
>> I'm expecting the dereference to the symlink to display here -> . as
>> this is the behavior on Linux.
>> On cygwin, it appears that the "." does not display in the directory
>> listing; however, the symlink works as expected, so this appears to me a
>> cosmetic error.
>I confirmed it, and it is weird (Ditto for "ln -s .. parent"). I'll
>investigate it further when I have more time, to see whether the fault
>lies in ls (part of coreutils) or is common to all cygwin programs
>using lstat. The link is properly showing up as size 1, so it seems
>like the `.' should be printing.
That is indeed strange but I don't think it's a coreutils bug. It looks like
a cygwin bug to me. If I call 'readlink' on the "here" symlink in perl, it
returns nothing. Sigh.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin