得到当前绝对路径

Bash
export CURRENT=`pwd`    # export CURRENT=$(pwd)
export COMPILER_6434_ROOT=$(realpath "$CURRENT/../../../../")
echo $COMPILER_6434_ROOT