problem executing python scripts in cygwin bash shell

John J. Lee phrxy at csv.warwick.ac.uk
Thu Apr 5 22:55:36 EDT 2001


On Thu, 5 Apr 2001, D-Man wrote:
[...]
> #!/bin/bash
>
> //d/apps/Python20/python.exe $*
[...]

Aha!  Good idea.  Perhaps even better:

#!/bin/sh

temp = "$@ "
//d/apps/Python20/python `cygpath -w $1` ${temp#* }

Yuck.  It does seem to work, though.  Aren't you glad you can use Python
instead of shell scripts?


John




More information about the Python-list mailing list