On Wed, 20 Jun 2012 01:02:01 Jason Grout wrote:
> Around line 296 in SAGE_ROOT/spkg/bin/sage, there seems to be a check to
> see if we should make the DOT_SAGE directory in the sage_setup()
> funciton.  The check is:
> 
>      if [ ! -d "$IPYTHON_DIR" ]; then
>       mkdir -p "$DOT_SAGE"
>      fi
> 
> Why are we checking to see if IPYTHON_DIR is defined in order to see if
> we should create DOT_SAGE??
> 
Let's put it in context:
    cd "$SAGE_LOCAL/bin"
    IPYTHONDIR="$DOT_SAGE/ipython" && export IPYTHONDIR
    IPYTHONRC="ipythonrc" && export IPYTHONRC
    if [ ! -d "$IPYTHONDIR" ]; then
        mkdir -p "$DOT_SAGE"
        cp -r "$SAGE_ROOT/ipython" "$DOT_SAGE/"
    fi

I'd say considering the whole thing it may have been
mkdir -p "$IPYTHONDIR"
at one time which would create $DOT_SAGE as a side effect. Of course the
"cp -r ...."
takes care of the subsequent IPYTHONDIR. I'd say someone tried to be too
clever.

Francois

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to