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]

Re: Why can't run.exe execute a shebang script directly?


Greetings, John Wiersba!

> I would have thought cygwin1.dll contains the code necessary to do this,
> like the linux kernel does.  Can it be added to the dll or does it have to
> be added to each executable individually, such as bash.exe, run.exe, etc.?

>   bash$ /bin/run ./try
>   run FATAL: Could not start D:\ftp\try

All right except the fact that run.exe is designed to start Windows
applications (or associations). It just doesn't try the cygwin magic on the
files it tries to start. I suggest /bin/env instead.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 24.10.2014, <17:35>

Sorry for my terrible english...


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