From: kevinf AT amc DOT ab DOT ca (Kevin Fulgham) Subject: Re: Problem with symbolic links in b18 5 Feb 1998 14:30:25 -0800 Message-ID: <34D9F3B5.52A7B804.cygnus.gnu-win32@amc.ab.ca> References: <052201bd316e$33481ed0$2a0110ac AT sam DOT ethernet> Reply-To: kevinf AT amc DOT ab DOT ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com I though I posted this to the newsgroup earlier, but I guess not. Without getting into the symbolic link/win shortcut debate, there seems to be something funny about bash in that the symbolic links to a .exe file can not have a .exe extension. i.e. ln -s /somepath/bin/runemacs.exe emacs.exe DOESN'T WORK ln -s /somepath/bin/runemacs.exe emacs WORKS Of course, this only works under bash and not from a Win966/NT Command Prompt or window. > > Hi, > > > > Here's a problem I encountered with symbolic links: > > > > 1. Assume you have a DOS executable in directory c:\xxx called yyy.exe. > > 2. Assume bash is run from directory c:\zzz. > > 3. Enter bash > > 4. Do "ln -s c:\xxx\yyy.exe yyy.exe". > > 5. Verify that there's a file "yyy.exe" in c:\zzz. > > 6. Run yyy.exe from bash - everything works fine. > > 7. Now exit bash. > > 8. Run yyy.exe. You get a window telling you that the program has > >performed an illegal operation. > > Opening the details button says that the program tried to execute an > >illegal instruction > > at 1F00:8AC3. > > > > > > This is because your are now running yyy.exe from c:\zzz, and this > >yyy.exe is not a real exe file, but one of your cygwin shortcuts that > >windows doesn't like. -- ------------------------------------------------------- | Kevin Fulgham ------- SIMBAD ------- kevinf AT amc DOT ab DOT ca | | SIMBAD Inquiries ------------------- simbad AT amc DOT ab DOT ca | | ----------------------------------------------------- | | Alberta Microelectronic Centre - http://www.amc.ab.ca | ------------------------------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".