Calling Cygwin python from the "DOS" shell vs. from BASH

Dave Korn dave.korn@artimi.com
Wed Mar 28 17:32:00 GMT 2007


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/



More information about the Cygwin mailing list