Hi,
Is it this snippet, would you please elaborate?
<snippet from src/bin/sage-env around line 111>
# Make sure that SAGE_ROOT is either an absolute physical directory name
# or empty.
if [ -n "$SAGE_ROOT" ]; then
export SAGE_ROOT=$(cd "$SAGE_ROOT" 2>/dev/null && pwd -P)
fi
</snippet from src/bin/sage-env around line 111>
BTW, it is rather confusing to see in '$SAGE_LOCAL/bin/sage':
if [ -f "${SELF}-env-config" ]; then
# As of Trac #22731, sage-env-config is optional.
. "${SELF}-env-config" >&2
fi
again export SAGE_ROOT and SAGE_LOCAL (same as in the original question, about 10 lines below)
Many references to $SAGE_ROOT in '$SAGE_LOCAL/bin/sage'.
Is it a prerequisite that $SAGE_ROOT be part of the installation and it must stay as long as $SAGE_LOCAL is around?
Or these parts of '$SAGE_LOCAL/bin/sage'. should be factored out?