#9386: sage-native-execute leaves traces of sage
-------------------------------------+-------------------------------------
       Reporter:  nbruin             |        Owner:  tbd
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.5
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  Nils Bruin,        |  Work issues:
  Thierry Monteil                    |       Commit:
Report Upstream:  N/A                |  41362681edc5377094cfc15bf734081e293b876e
         Branch:                     |     Stopgaps:
  u/nbruin/sage_native_execute_leaves_traces_of_sage|
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Nils Bruin, Thierry Monteil', 'oldvalue': u'Thierry 
Monteil'}):

 * status:  needs_work => needs_review
 * milestone:  sage-6.4 => sage-6.5
 * author:  Thierry Monteil => Nils Bruin, Thierry Monteil


Comment:

 I have tried to take the best ideas from both Thierry's and my
 implementation. Since `sage` itself is already a bash script, there seems
 no loss in using bashisms in our script, so `${!var}` is fine for
 dereferencing.

 I've ensured what I thought are important variables in `sage-env` are now
 saved. If you want to see which are saved, do:
 {{{
 $ ./sage -sh -c 'echo $SAGE_SAVED_ENVIRONMENT_VARIABLES'
 
:PATH:LIBRARY_PATH:CPATH:GP_DATA_DIR:GPHELP:GPDOCDIR:GIT_TEMPLATE_DIR:GIT_EXEC_PATH:SINGULARPATH:SINGULAR_EXECUTABLE:IPYTHONDIR:PYTHON_EGG_CACHE:PYTHONPATH:PYTHONHOME:LD_LIBRARY_PATH:MPLCONFIGDIR:R_HOME:R_PROFILE:MAXIMA_PREFIX:UNAME:CC:CPP:CXX:FC:F77:F90:F95:CCACHE_BASEDIR:ECLDIR:TERMINFO
 }}}
 We could "save" all the `SAGE_` variables as well, to ensure that `sage-
 native-execute` unsets those, but I would expect they would normally not
 get in the way.

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