#16377: back up environment on sage startup
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.3
      Component:  scripts            |   Resolution:
       Keywords:  shell, start,      |    Merged in:
  sandbox                            |    Reviewers:
        Authors:  Ralf Stephan       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  c611382d5e0f71bb2d3adfc056bc390c3f136ef2
  u/rws/back_up_environment_on_sage_startup|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * status:  needs_review => needs_work


Comment:

 There are several issues:
 1. Re-entrancy: when running different Sage processes, the environment of
 only 1 will be kept.
 2. Quoting: The textual output of `env` is not suitable, since `\n`
 characters in environment variables cannot be reconstructed correctly.
 Assuming you need this for Python, why not use Python to store the
 environment in a Python pickle for example?
 3. Why did you copy the `DOT_SAGE` stuff to `src/bin/sage`? Why not simply
 store the environment inside `sage-env`?

 And could you please state more precisely which problem this solves?

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