#8303: Sage cannot work with files with spaces in their names
------------------------------+---------------------------------------------
   Reporter:  ddrake          |       Owner:  ddrake          
       Type:  defect          |      Status:  needs_review    
   Priority:  major           |   Milestone:  sage-4.3.3      
  Component:  user interface  |    Keywords:  spaces filenames
     Author:                  |    Upstream:  N/A             
   Reviewer:                  |      Merged:                  
Work_issues:                  |  
------------------------------+---------------------------------------------
Changes (by ddrake):

  * status:  new => needs_review


Comment:

 Patch up. Apply to sage_scripts spkg, or equivalently, to the repo in
 SAGE_ROOT/local/bin.

 To test, try making a file with spaces in its name, and passing arguments
 with spaces in them. If the file is "script with spaces.sage" and it
 contains:
 {{{
 import sys
 print integrate(x*cos(x)*sin(x), x)
 print sys.argv
 sys.exit(int(5))
 }}}
 then something like this should work properly:
 {{{
 $ sage "script with spaces.sage" "foo bar" arg2
 -1/4*x*cos(2*x) + 1/8*sin(2*x)
 ['script with spaces.py', 'foo bar', 'arg2']
 $ echo $?
 5
 }}}
 I'd like to have the return code tested to make sure we don't get a
 regression on #2861.

 Please test and review!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8303#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to