X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <47E90E44.2050402@alice.it>
Subject: RE: Wrong links?
Date: Tue, 25 Mar 2008 14:54:32 -0000
Message-ID: <02a001c88e88$22dcc7d0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <47E90E44.2050402@alice.it>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Angelo Graziosi wrote on 25 March 2008 14:38:

> I have noticed that if I do 'ls -l /bin'
> 
> I get the following wrong links:
> 
> X11 -> ../X11R6/bin

  In what sense is that "wrong"?

> pnmnoraw -> pnmtoplainpnm.exe               [1]
> 
> rcs2log -> ../share/cvs/contrib/rcs2log
> webcheck -> ../share/webcheck/webcheck.py
> 
> 
> If I do 'ls -l /usr/bin', only [1] is still wrong, the
> remaining links are OK.

  What do you mean by "wrong"?  Soft-links are text strings, they cannot be
inherently "wrong" or "right" unless you have some extra criterion to apply.

> Regarding [1], 'pnmtoplainpnm.exe' does not exist, only 'pnmtoplainpnm'
> is there, without '.exe'!
> 
> Is this different behaviour ('ls -l /bin' / 'ls -l /usr/bin') to be
> expected? 

  It's an interaction between two things:

1.  /bin and /usr/bin are the same physical directory, /usr/bin being a
mount point for /bin.

2.  exe magic only works on links when they can be resolved.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

