Ticket #5852: trac_5852.patch

File trac_5852.patch, 522 bytes (added by tornaria, 12 years ago)

On systems where "readlink -f" is supported, use that so the path for $SAGE_ROOT is fully canonicalized

  • sage-3.4/sage

    # User Gonzalo Tornaria <tornaria@math.utexas.edu>
    Fixed #5852: on systems where "readlink -f" is supported, use that so
    the path for $SAGE_ROOT is fully canonicalized.
    
    old new  
    1414fi
    1515
    1616if [ "$SAGE_ROOT" = "....." ];  then
     17    SAGE_ROOT=`readlink -nf "$0" 2> /dev/null` || \
    1718    SAGE_ROOT=`readlink -n "$0" 2> /dev/null` || \
    1819    SAGE_ROOT=`realpath    "$0" 2> /dev/null` || \
    1920    SAGE_ROOT="$0"