X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <47E90E44 DOT 2050402 AT alice DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/