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

2011-11-10 Thread Linda Walsh
Andrey Repin wrote: Greetings, Timothy Madden! I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. Dearly use Windows native

Re: PHP (was: Re: Pass windows-style paths to the interpreter from the shebang line ?)

2011-11-10 Thread Corinna Vinschen
On Nov 9 19:14, Yaakov (Cygwin/X) wrote: On Wed, 2011-11-09 at 16:50 +0100, Corinna Vinschen wrote: On Nov 9 09:45, Jeremy Bopp wrote: On 11/9/2011 09:29, Corinna Vinschen wrote: I'm surprised that we don't have php in the Cygwin distro. Did nobody try to port php to Cygwin yet?

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

2011-11-10 Thread Timothy Madden
On 10.11.2011 03:27, Andrey Repin wrote: Greetings, Timothy Madden! I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. Dearly

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

2011-11-10 Thread Andrey Repin
Greetings, Timothy Madden! As Linda said, I would like to be able to execute my new script from a cygwin prompt and from a sh script, with a command like parseLog.php/logfile/ Fine. For this to work, I think I need the shebang line. For cygwin, seems so. So I tried #! php

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

2011-11-09 Thread Timothy Madden
Hello I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. The problem is that bash will than invoke the Win32 native php.exe binary

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

2011-11-09 Thread Jeremy Bopp
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

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

2011-11-09 Thread Corinna Vinschen
On Nov 9 09:45, Jeremy Bopp wrote: 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

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

2011-11-09 Thread Jeremy Bopp
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

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

2011-11-09 Thread Marco Atzeri
On 11/9/2011 2:39 PM, Timothy Madden wrote: Hello I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. The problem is that bash will than

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

2011-11-09 Thread Corinna Vinschen
On Nov 9 15:39, Timothy Madden wrote: Hello I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. The problem is that bash will

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

2011-11-09 Thread Andrew DeFaria
On 11/09/11 07:29, Corinna Vinschen wrote: I'm surprised that we don't have php in the Cygwin distro. Did nobody try to port php to Cygwin yet? Corinna Hear, hear! -- Andrew DeFaria http://defaria.com Making music should not be left to the professionals. - Michelle Shocked -- Problem

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

2011-11-09 Thread Timothy Madden
On 09.11.2011 17:45, Jeremy Bopp wrote: 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

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

2011-11-09 Thread Christopher Faylor
On Wed, Nov 09, 2011 at 11:15:47PM +0200, Timothy Madden wrote: On 09.11.2011 17:45, Jeremy Bopp wrote: 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

PHP (was: Re: Pass windows-style paths to the interpreter from the shebang line ?)

2011-11-09 Thread Yaakov (Cygwin/X)
On Wed, 2011-11-09 at 16:50 +0100, Corinna Vinschen wrote: On Nov 9 09:45, Jeremy Bopp wrote: On 11/9/2011 09:29, Corinna Vinschen wrote: I'm surprised that we don't have php in the Cygwin distro. Did nobody try to port php to Cygwin yet? It looks like php is available in Cygwin

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

2011-11-09 Thread Andrey Repin
Greetings, Jeremy Bopp! 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. It

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

2011-11-09 Thread Andrey Repin
Greetings, Timothy Madden! I would like to write a php script to run from my cygwin command line. I have the php CLI executable (php.exe) in PATH and I use #!/bin/env php as the first line of the .php script, and make it executable. Dearly use Windows native version of PHP And