delorie.com/archives/browse.cgi | search |
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.20030722184030.03c65038@pop.sonic.net> |
X-Sender: | rschulz AT pop DOT sonic DOT net |
Date: | Tue, 22 Jul 2003 18:42:12 -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: | <3F1DE381.7010605@cox.net> |
Mime-Version: | 1.0 |
David, Investigate the options to "test" (the binary or the BASH built-in) that detect symbolic links: -h or -L (they are synonymous) and the command "readlink" (as in "man readlink"). Again, this is stock Unix / Linux stuff. Randall Schulz At 18:23 2003-07-22, 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? >What would happen on *nix? > >-- >David A. Cobb -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |