X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/