Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 22 Jul 2003 23:08:13 -0400
From: Christopher Faylor <cgf-idd@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: How to resolve a link?
Message-ID: <20030723030813.GC4170@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <3F1DE381.7010605@cox.net> <3F1DE381.7010605@cox.net> <5.2.1.1.2.20030722194744.03ac0e38@pop.sonic.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5.2.1.1.2.20030722194744.03ac0e38@pop.sonic.net>
User-Agent: Mutt/1.4.1i

On Tue, Jul 22, 2003 at 07:56:02PM -0700, Randall R Schulz wrote:
>Chris,
>
>At 18:29 2003-07-22, Christopher Faylor wrote:
>>On Tue, Jul 22, 2003 at 09:23:13PM -0400, David A. Cobb wrote:
>>>Recently, I was trying to do "strace Xemacs . . ."
>>>First I got a "No such file" error, so I changed to do "strace `which
>>>xemacs` " -- still a failure.
>>>
>>>which xemacs returns "/usr/local/bin/xemacs.exe.lnk"; that is, my normal
>>>handle to launch xemacs is a symlink to the executable whose name or
>>>location varies with the version-number.
>>>
>>>Given that its purpose is to locate what executable file one will use in
>>>a particular environment, should not 'which' resolve the symlink and
>>>return its target?
>>
>>No.
>>
>>>What would happen on *nix?
>>
>>The same thing as on cygwin.
>
>Really?
>
>Since Cygwin "strace" is not a Cygwin program, it does not get Cygwin 
>symbolic links resolved. Whereas on Unix or Linux, a symlink would be 
>resolved by the kernel if it was used by strace and it (strace) would 
>successfully get its target executed.

AFAIK, we were talking about "which" not strace.  I thought it was obvious
why strace wasn't working.  strace will translate cygwin paths these days
but it won't (yet) follow cygwin symlinks.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

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

