#18401: maple command broken (on some computer)
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.7
      Component:  interfaces         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/18401                 |  1c71a060202783324a3b5ce1d0e143aacc81a14e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by leif):

 Yep, `expect.py` is to fix, not `maple.py`.  (Otherwise a local `maple`
 would no longer work.)

 The problem when using ssh (or likewise, `sh -c ...`) is that the
 parameters get interpreted twice; once by the local shell, and a second
 time by the remote (or sub-) shell.

 The local one removes the double quotes, passing literally `maple -t -c
 interface(screenwidth=infinity,errorcursor=false)` to the remote shell,
 which gives a syntax error since the parentheses are no longer quoted nor
 escaped to avoid interpretation.

 {{{
 #!sh
 sh -c 'maple -t -c interface(screenwidth=infinity,errorcursor=false)'
 }}}
 would give exactly the same error, while
 {{{
 #!sh
 sh -c 'maple -t -c interface\(screenwidth=infinity,errorcursor=false\)'
 }}}
 would work.

 (So it does ''not'' depend on the computer, unless the remote shell were
 some strange non-standard one not treating the parentheses as special
 characters...)

--
Ticket URL: <http://trac.sagemath.org/ticket/18401#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to