X-Spam-Check-By: sourceware.org
Message-ID: <4637551D.1020302@cwilson.fastmail.fm>
Date: Tue, 01 May 2007 10:56:29 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [Ping Python maintainer]: enhancement request
References: <f137va$5ar$1@sea.gmane.org> <20070501120623.GA3824@tishler.net> <20070501133951.GB17841@trixie.casa.cgf.cx> <463747BC.3050002@cwilson.fastmail.fm> <04ca01c78bfb$39c7b530$2e08a8c0@CAM.ARTIMI.COM> <20070501143305.GF17841@trixie.casa.cgf.cx>
In-Reply-To: <20070501143305.GF17841@trixie.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor wrote:
> On Tue, May 01, 2007 at 03:15:52PM +0100, Dave Korn wrote:
>> On 01 May 2007 14:59, Charles Wilson wrote:
>>> Because python is a command interpreter,
> 
>>> Similarly, sh.exe
>> I think these are two very strong arguments in favour.
> 
> python.exe isn't anything like the interactive shell that people use on
> a day to day basis and simply stating that it is doesn't mean that it is.

Just to clarify, when I say command interpreter I wasn't necessarily 
implying interactive -- just as nobody (I hope) attempts to use /bin/sh 
in its pure, restricted posix mode, as their native interactive shell. 
[side note: IPython, an interactive shell-like python environment -- is 
really cool].  I just meant that python /interprets/ /commands/ 
(possibly -- usually -- in a script).

For ActivePython, you'll see win32 shortcuts with target:

<path-to-active>/python.exe <some script>

If cygwin's 'python' is a copy of version x.y, then cygwin users can do 
the same: have win32 shortcuts with target:

<path-to-cygwin>/python.exe <some script>

(Now, ActivePython sometimes cheats: it associates .py with itself, and 
often win32 pythoners will just give their scripts a name with that 
extension.  And obviously, windows doesn't, itself, recognize shbang lines)

Granted, there are 57 other, different solutions that don't require 
cygwin's 'python' to be a copy, like invoke version x.y directly from 
the shortcut:

<path-to-cygwin>/python2.5 <some script>

or cgf's use-bash-first:

<path-to-cygwin>/bash.exe python <some script>

or use-bash-first and rely on shbang:
<path-to-cygwin>/bash.exe <some script with #!/bin/python>


But if cygwin does the copy thing, we'd be following the 'principle of 
least surprise' for ActivePython folks (AP is, after all, the other 
major python implementation on win32; IronPython is coming along nicely, 
tho).


'invoke from native win32' means 'from a shortcut OR cmd window' not 
just 'from a cmd window'

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

