I can run my python scripts using the SAGE python using the
recommended she-bang

#!/usr/bin/env sage -python

as the first line.  But if the path to the script has white space or
non-ascii characters I get an error message like,

....
/Applications/sage-4.3.2/local/bin/sage-sage: line 876: [: too many
arguments
/Applications/sage-4.3.2/local/bin/sage-sage: line 882: [: too many
arguments
/Applications/sage-4.3.2/local/bin/sage-sage: line 888: [: too many
arguments
/Applications/sage-4.3.2/local/bin/sage-sage: line 892: [: too many
arguments
python: can't open file '/Users/loupecora/Nonlinear': [Errno 2] No
such file or directory


where there was a space after Nonlinear. I'm guessing that SAGE-python
is putting the full pathname in as a command line argument(?).   Is
there a fix for this or a work around (other than changing a lot of
path names)? I've looked over the reference, tutorial, and FAQ, as
well as some googling, but found nothing.

Mac OS X 10.4, SAGE 4.3.2.

Thanks.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to