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: Pass windows-style paths to the interpreter from the shebang line ?


Sorry to reply again, but I hit send too early...

On 11/9/2011 09:29, Corinna Vinschen wrote:
> That's not as easy as it may sound.  What about creating wrapper scripts
> with the same name in another dir and put that dir in front of the other
> bin dir in $PATH?  The wrapper scripts could be shell scripts which use
> `cygpath -wa' to convert the path to DOS notation and then call php.

Does php not have an equivalent of the -S option (search the PATH for
the named script) that perl and ruby have?  I've used that many times to
deal with cases where people have Windows-native builds of those tools
instead of the Cygwin ones for whatever reason.

-Jeremy

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