We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code uses e.g cat which may be mocked/stubbed by the user and point to something else.
cat
I'd suggest to get the real locations on startup (e.g. command -v cat or which cat) and save them for later use.
command -v cat
which cat
Alternative:
During startup (global scope): _BATSLIB_PATH="$PATH" Call site: PATH="$_BATSLIB_PATH" \cat -
_BATSLIB_PATH="$PATH"
PATH="$_BATSLIB_PATH" \cat -
This resets the path and avoids macro/alias expansion
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The code uses e.g
cat
which may be mocked/stubbed by the user and point to something else.I'd suggest to get the real locations on startup (e.g.
command -v cat
orwhich cat
) and save them for later use.Alternative:
During startup (global scope):
_BATSLIB_PATH="$PATH"
Call site:
PATH="$_BATSLIB_PATH" \cat -
This resets the path and avoids macro/alias expansion
The text was updated successfully, but these errors were encountered: