This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Wrong links?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 25 Mar 2008 14:54:32 -0000
- Subject: RE: Wrong links?
- References: <47E90E44.2050402@alice.it>
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/