X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: David Abrahams <dave@boost-consulting.com>
Subject:  Re: very odd behavior of Cygwin python from CMD
Date:  Mon, 05 Mar 2007 08:44:37 -0500
Lines: 21
Message-ID:  <87fy8jg5yy.fsf@valverde.peloton>
References:  <87d53qhxk4.fsf@valverde.peloton> <877itxiu6k.fsf@valverde.peloton> <45EA3ABD.4E45BDC5@dessent.net> <87wt1xhb6j.fsf@valverde.peloton> <45EB2605.9040101@cygwin.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)
X-IsSubscribed: yes
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

"Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com> writes:

> On 03/03/2007, David Abrahams wrote:
>> Brian Dessent <brian <at> dessent <dot> net> writes: > > and if so,
>> launch it as "sh.exe -c python", using sh.exe in the same
>> > > dir as the shortcut.  This will invoke python through the shell,
>> > > which will follow symlinks.
>>
>> Ja; except that that begs the question -- sh.exe could be a symlink,
>> as it often is to bash.  In fact it isn't even important for me to
>> invoke python in that case; I just need to detect it and avoid it.
>
> No, 'sh.exe' won't be a symlink unless someone has made it so.  'setup.exe'
> creates 'sh.exe' as a copy for exactly the reasons you found.

I realize that much, but someone could make it so.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


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

