#18401: maple command broken through ssh
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  defect             |       Status:  positive_review
       Priority:  major              |    Milestone:  sage-6.7
      Component:  interfaces         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:  Leif Leonhardy
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/18401                 |  dab09f30938b2a3bfdba285f757dd2664667a4bf
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by leif):

 * status:  needs_review => positive_review
 * reviewer:   => Leif Leonhardy


Old description:

> The maple command does contain some options. Our pexpect interface does
> not work when this is used through ssh. The command used to launch maple
> through a ssh tunnel by pexpect is
> {{{
> $ sage-native-execute ssh -t REMOTE \
>  maple -t -c "interface(screenwidth=infinity,errorcursor=false)"
> }}}
> But this does not work because the double quotes get removed '''before'''
> sending the command to the remote server.
>
> Using instead
> {{{
> $ sage-native-execute ssh -t REMOTE \
>  'maple -t -c "interface(screenwidth=infinity,errorcursor=false)"'
> }}}
> works as a charm.
>
> We modify `sage/interface/expect.py` by adding simple quote to guard the
> command when an intermediate server is involved.

New description:

 The maple command does contain some options. Our pexpect interface does
 not work when this is used through ssh. The command used to launch maple
 through a ssh tunnel by pexpect is
 {{{
 $ sage-native-execute ssh -t REMOTE \
  maple -t -c "interface(screenwidth=infinity,errorcursor=false)"
 }}}
 But this does not work because the double quotes get removed '''before'''
 sending the command to the remote server.

 Using instead
 {{{
 $ sage-native-execute ssh -t REMOTE \
  'maple -t -c "interface(screenwidth=infinity,errorcursor=false)"'
 }}}
 works as a charm.

 We modify `sage/interfaces/expect.py` by adding simple quotes to guard the
 command when an intermediate server is involved.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18401#comment:7>
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