From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11089 invoked by alias); 9 Nov 2011 15:51:11 -0000 Received: (qmail 11069 invoked by uid 22791); 9 Nov 2011 15:51:10 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,BOTNET X-Spam-Check-By: sourceware.org Received: from mail31.mailforbusiness.com (HELO mail31.mailforbusiness.com) (64.106.208.204) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Nov 2011 15:50:58 +0000 Received: from mail31.mailforbusiness.com (localhost.simplicato.com [127.0.0.1]) by mail31.mailforbusiness.com (Postfix) with ESMTP id 4CFA572BDCD for ; Wed, 9 Nov 2011 10:50:57 -0500 (EST) Received: from [10.10.50.50] (67-198-47-100.static.grandenetworks.net [67.198.47.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jeremy@bopp.net) by mail31.mailforbusiness.com (Postfix) with ESMTPSA id 240E872BD70 for ; Wed, 9 Nov 2011 10:50:57 -0500 (EST) Message-ID: <4EBAA160.4040705@bopp.net> Date: Wed, 09 Nov 2011 15:51:00 -0000 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Pass windows-style paths to the interpreter from the shebang line ? References: <20111109152944.GK15154@calimero.vinschen.de> In-Reply-To: <20111109152944.GK15154@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00145.txt.bz2 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