Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <3F1DE381.7010605@cox.net> Date: Tue, 22 Jul 2003 21:23:13 -0400 From: "David A. Cobb" Reply-To: Cygwin Discussion , Superbiskit AT cox DOT net Organization: CoxNet User User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030716 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cygwin Discussion Subject: How to resolve a link? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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, Software Engineer, Public Access Advocate "By God's Grace I am a Christian man, by my actions a great sinner." -- The Way of a Pilgrim; R. M. French, tr. Life is too short to tolerate crappy software. . -- 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/