This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Calling Cygwin python from the "DOS" shell vs. from BASH
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 28 Mar 2007 18:31:45 +0100
- Subject: RE: Calling Cygwin python from the "DOS" shell vs. from BASH
- References: <gl6l03l4mo9mbrrn76jgo2lkr717aru502@entropy.org>
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/