Open blueyed opened 8 years ago
While not recommended [1] CDPATH might be exported and would be used for e.g. cd test instead of using ./test. E.g. Vim will make use of it (and therefore it needs to be exported, if you do not want to configure it twice).
CDPATH
cd test
./test
Fixes https://github.com/sstephenson/bats/issues/104.
This supersedes https://github.com/sstephenson/bats/pull/119: there is no need to unset/change CDPATH globally.
1: https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
👍
Amended to use set -p instead.
set -p
is this still alive? Possible to merge if that solves the issue?
While not recommended [1]
CDPATH
might be exported and would be used for e.g.cd test
instead of using./test
. E.g. Vim will make use of it (and therefore it needs to be exported, if you do not want to configure it twice).Fixes https://github.com/sstephenson/bats/issues/104.
This supersedes https://github.com/sstephenson/bats/pull/119: there is no need to unset/change CDPATH globally.
1: https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/