delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/21/20:40:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 21 Jun 2005 20:40:15 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Creating a symlink to current directory does not display with ls as expected
Message-ID: <20050622004015.GA28152@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <062120052335 DOT 15545 DOT 42B8A43E0006594700003CB922073000330A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <062120052335.15545.42B8A43E0006594700003CB922073000330A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.8i

On Tue, Jun 21, 2005 at 11:35:26PM +0000, Eric Blake wrote:
>> Hi,
>> 
>> 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
>> directory. 
>
>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.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019