#4512: [with patch, needs review] sage path-related troubles
------------------------+---------------------------------------------------
 Reporter:  craigcitro  |       Owner:  craigcitro
     Type:  defect      |      Status:  new       
 Priority:  blocker     |   Milestone:  sage-3.2  
Component:  build       |    Keywords:            
------------------------+---------------------------------------------------
 Unfortunately, it seems that `sage -sh` doesn't ask the shell to avoid
 processing the `.profile` or equivalent. In particular, it can lead to
 things like this:

 {{{
 [EMAIL PROTECTED] ~/new-three-two]  $ ./sage -version
 Sage Version 3.2.rc0, Release Date: 2008-11-10
 [EMAIL PROTECTED] ~/new-three-two]  $ ./sage -sh

 Starting subshell with Sage environment variables set.
 Be sure to exit when you are done and do not do anything
 with other copies of Sage!

 [EMAIL PROTECTED] ~/new-three-two]  $ sage -version
 SAGE Version 3.1.4, Release Date: 2008-10-16
 [EMAIL PROTECTED] ~/new-three-two]  $ which sage
 /usr/local/bin/sage
 }}}

 This comes from the fact that I manually '''prepend''' certain things to
 my path in my `.bashrc`. Sadly, this leads to several small, subtle
 issues. I've attached a patch which turns several calls to `sage` into
 `$SAGE_ROOT/sage`.

 However, something more serious is needed. I think that the right approach
 is to start the new shell without processing any login files, so that we
 know our path is correct. The patch does that.

 I'm listing this as a blocker, because it causes such subtle errors, and
 because a fix is attached.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4512>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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