Pass windows-style paths to the interpreter from the shebang line ?

Jeremy Bopp jeremy@bopp.net
Wed Nov 9 15:51:00 GMT 2011


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



More information about the Cygwin mailing list