#11704: Resolve symbolic links in $HOME/.sage
---------------------------+------------------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.8
Component: scripts | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies: #11924
---------------------------+------------------------------------------------
Comment(by jdemeyer):
Replying to [comment:13 jhpalmieri]:
> Well, what's the purpose of canonicalizing SAGE_ROOT in the `sage`
script?
It's precisely for the reason I said: we need to be able to determine a
usable value of `$SAGE_ROOT` before we can do ''anything'' with Sage.
It's true that it doesn't matter that it's canonical, but we still need to
dereference symbolic links in `$0` (the script filename) to find
`$SAGE_ROOT`. Since #5852, we support an installation where somebody
makes a symbolic link from `/usr/local/bin/sage` to
`/usr/local/sage/sage-4.8/sage` or whatever.
I agree the code duplication is not so nice, but I still think the patch
can be reviewed as-is.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11704#comment:14>
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.