This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

.exe magic reloaded


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

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.

I solved that by adding a second symbolic link
/home/prefix/gentoo/usr/bin/tr.exe.

What is the best way to go here?

* Adapting all scripts that behave like Perls configuration.
* Always adding both forms of symbolic links (program and program.exe)
* Making .../bin and .../usr/bin the same directory by means of a hardlink.
* Extending Cygwins .exe magic to work for that kind of symblic links.

Al

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]