Invoking Python from Cygwin problem.

Cousin Stanley cousinstanley at hotmail.com
Sat Nov 25 11:54:46 EST 2006



> Hi all,
>
> Using cygwin and Python 2.5, I have the following scripts, 
> one bash script and the other a python script:
> --------------------------------------------------------------

Ant .... 

  Using Cygwin and Python 2.4 under Win2K the following version 
  of your code seems to work OK here with no extraneous CR ....

  I only changed the variable names & messages just a bit 
  for clarity ....

  I don't see any real differences in this version
  and what you originally posted, so I can't explain
  the reason for the semingly extraneous carriage return
  that you are seeing ....
      
  # ------------------------------------------------------------ 

  #!/bin/bash

  TEST_1=`./test.py`
  TEST_2="Testing Bash  Value"

  echo " "
  echo "TEST_1 :  $TEST_1 .... OK"
  echo "TEST_2 :  $TEST_2 .... OK"


  # ------------------------------------------------------------

  #!/usr/bin/python
  print "Testing Python Code",


  # ------------------------------------------------------------

  $ ./test_vars

  TEST_1 :  Testing Python Code .... OK
  TEST_2 :  Testing Bash  Value .... OK
  

-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list