#11707: Remove `readlink -n` and `realpath` from $SAGE_ROOT/sage
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: scripts | Keywords: SAGE_ROOT
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by leif):
I mean we should also simplify / use `pwd -P` in `sage-env`'s
{{{
#!sh
# GUESS SAGE_ROOT from pwd
SAVEDIR="`pwd`"
if [ -f sage -a -d spkg ]; then
GUESSED_SAGE_ROOT="`pwd`"
else
if [ -f ../../sage -a -d ../../spkg ]; then
cd ../../
GUESSED_SAGE_ROOT="`pwd`"
else
GUESSED_SAGE_ROOT=""
fi
fi
cd "$SAVEDIR"
}}}
Sorry, currently doing four things at the same time. 8/
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11707#comment:5>
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.