#4029: [with patch; needs work] sage-env kills the shell when called from
"wrong"
directory
----------------------------+-----------------------------------------------
Reporter: dphilp | Owner: mabshoff
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.7
Component: distribution | Keywords: sage-env source
Author: Mike Hansen | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Comment(by jhpalmieri):
I don't think this will be obsolete with #10469: after applying that
patch, if I open up a new shell and source sage-env, the shell closes.
Isn't the issue using "exit" instead of "return", since the script is
being sourced? I'm not a shell script expert, but can we just replace
"exit 1" with "return 1" everywhere? Failing that, can you explain your
hack
{{{
return 1 2>/dev/null || exit 1
}}}
This seems to work for me.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4029#comment:13>
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 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.