delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/22/22:55:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <5.2.1.1.2.20030722194744.03ac0e38@pop.sonic.net>
X-Sender: rschulz AT pop DOT sonic DOT net
Date: Tue, 22 Jul 2003 19:56:02 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rschulz AT sonic DOT net>
Subject: Re: How to resolve a link?
In-Reply-To: <20030723012957.GC3329@redhat.com>
References: <3F1DE381 DOT 7010605 AT cox DOT net>
<3F1DE381 DOT 7010605 AT cox DOT net>
Mime-Version: 1.0

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.

So wouldn't the behavior on Cygwin differ from a comparable invocation 
on Linux or Unix?

Randall Schulz 


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