[issue30842] pyenv activate for bash and tcsh

Arnon Sela report at bugs.python.org
Sat Jul 29 09:26:02 EDT 2017


Arnon Sela added the comment:

readlink -f can be replaced by the following sequence:

    pushd $fullpath
    fullpath=$(pwd -P)
    popd

Please note that:

    [[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || fullpath=$0

Should be replaced with:

    [[ $called != $0 ]] && fullpath="${BASH_SOURCE[0]}" || fullpath=$0

0 instead of @ - that was a misspelling.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30842>
_______________________________________


More information about the Python-bugs-list mailing list