On Wed, Aug 10, 2005 at 05:30:03PM -0400, DJ Delorie wrote:
>> Well, it's stopping a real fix for the MinGW build failure being made.
>> Adding #! support to libiberty won't work because the problem scripts
>> have MSYS/Cygwin paths for the shell (eg. "/bin/sh") that aren't likely
>> to be valid to plain Windows.
>
>DJGPP solves this thusly:
>
>  /* If INTERP is a Unix-style pathname, like "/bin/sh", we will try
>     it with the usual extensions and, if that fails, will further
>     search for the basename of the shell along the PATH; this
>     allows to run Unix shell scripts without editing their first line.  */

That was the technique I am in the process of using, too.

Hmm.  You know, I probably should just steal the code from DJGPP...

cgf

Reply via email to