test_description='can find python executable with different names' . '../test-lib.bash' # the test machine needs to have a binary named `python` test_expect_success 'setup' ' mkdir ~/tmp_bin && ( IFS=: for p in $PATH; do if [ -d $p ]; then find $p -maxdepth 1 -mindepth 1 -exec sh -c \ '"'"'ln -sf {} $HOME/tmp_bin/$(basename {})'"'"' \; fi done ) && rm -f ~/tmp_bin/python && rm -f ~/tmp_bin/python2 && rm -f ~/tmp_bin/python3 ' test_expect_failure 'run' ' PATH="$HOME/tmp_bin" run_dotbot <> ~/tmp_bin/python <