This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: How to resolve a link?
- From: Randall R Schulz <rschulz at sonic dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 22 Jul 2003 18:42:12 -0700
- Subject: Re: How to resolve a link?
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/