Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Use empty CDPATH with cd in abs_dirname/expand_path #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link

@blueyed blueyed commented Apr 4, 2016

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 #104.

This supersedes #119: there is
no need to unset/change CDPATH globally.

1: https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/

@msabramo
Copy link

👍

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 sstephenson#104.

This supersedes sstephenson#119: there is
no need to unset/change CDPATH globally.

1: https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
@blueyed
Copy link
Author

blueyed commented Nov 22, 2016

Amended to use set -p instead.

yarikoptic pushed a commit to neurodebian/bats that referenced this pull request Aug 6, 2019
Minor ReadMe improvement testing (sstephenson#157), contributing, contact sections.
@spinus
Copy link

spinus commented Sep 29, 2020

is this still alive? Possible to merge if that solves the issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

running bats on a specific test file says file does not exist
3 participants