X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 6 Sep 2010 11:05:17 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: .exe magic reloaded Message-ID: <20100906090517.GA13174@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Sep 5 16:28, Al wrote: > I came accross the following. These two files existed. > > /home/prefix/gentoo/bin/tr.exe > /home/prefix/gentoo/usr/bin/tr -> /home/prefix/gentoo.bin/tr.exe ^^^ dot, not slash? > So we have a symblic link to an executable from a different directory. > > Perls configuration script detected /home/prefix/gentoo/usr/bin/tr and > called it as /home/prefix/gentoo/usr/bin/tr.exe. That didn't work. > Obviously the .exe magic does not work for symbolic links from a > different directory. It does: $ cd tmp $ mkdir dir1 dir2 $ cp /bin/echo.exe dir1 $ ln -s `pwd`/dir1/echo.exe dir2/echo $ ls -l dir* dir1: total 52 -rwxr-xr-x 1 corinna vinschen 49166 2010-09-06 10:59 echo.exe dir2: total 1 lrwxrwxrwx 1 corinna vinschen 31 2010-09-06 11:00 echo -> /home/corinna/tmp/dir1/echo.exe $ dir2/echo hello hello $ /home/corinna/tmp/dir2/echo hello hello > I solved that by adding a second symbolic link > /home/prefix/gentoo/usr/bin/tr.exe. > > What is the best way to go here? Find out what *really* has gone wrong. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple