#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 jdemeyer):
Replying to [comment:1 leif]:
> Haha, had the same idea just yesterday.
>
> IMHO we should use (the more portable and perhaps simpler)
> {{{
> #!sh
> (cd "$WHEREVER"; NORMALIZED_PATH=`pwd -P`)
> }}}
> to get a canonical form in shell scripts.
>
> I'm not sure if this also fixes the apparently sometimes prepended
automount prefix (cf. `sage-ptest` etc.).
I guess you mean
{{{
NORMALIZED_PATH=`cd "$WHEREVER"; pwd -P`
}}}
because otherwise the "NORMALIZED_PATH" from the subshell will not be seen
by the main shell.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11707#comment:2>
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.