delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/28/12:32:16

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <gl6l03l4mo9mbrrn76jgo2lkr717aru502 AT entropy DOT org>
Subject: RE: Calling Cygwin python from the "DOS" shell vs. from BASH
Date: Wed, 28 Mar 2007 18:31:45 +0100
Message-ID: <003f01c7715e$f5772840$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <gl6l03l4mo9mbrrn76jgo2lkr717aru502@entropy.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 28 March 2007 17:47, Joel Rubin wrote:

> I notice that Python just exits when I call it from cmd.exe in XPSP2
> but it works correctly if I call it from bash. Cygwin is in my path.
> 
> I tried gcc'ing a simple program which prints argv[0] and I didn't see
> any difference in what it prints out when I call it from cmd.exe and
> when it call it from bash.

  'python' is a symlink to the actual version-numbered executable.  Dos
prompts don't understand cygwin symlinks.

/  $ ls -la /usr/bin/python*
lrwxrwxrwx  1 dk Users   13 Jan  1 22:07 /usr/bin/python.exe -> python2.4.exe
-rwxr-x---+ 1 dk Users 5120 May 18  2006 /usr/bin/python2.4.exe



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019