-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
Check existance of $HOME/bin before adding to PATH #5294
Comments
I would consider this a feature rather than a bug, as non-existing components should be ignored, but you can always create the What is the exact problem you are trying to solve? |
Yes, it's a feature request, not a bug. But github only has "new issue"... The reason is, that I spend quite a while searching my own startup scripts (not only bash, because I'm in this case on windows), looking for the place, why this directory is in my I based my bash scripts on the debian |
Okay, I understand the intention now. |
@bohni do you plan on working on this? If not, I'd like to close this ticket. |
No completed, but won't fix |
It's just an optimization for a *nix shell script. The behaviour is still present in current main branch.
https://github.com/git-for-windows/build-extra/blob/6735402549b1776f65723e129b9208fa0ee5056b/git-extra/env.sh#L2
the PATH should only be extended, if the directory exists and is not already included in PATH
Maybe the second test (that PATH already includes the directory) must be omitted because not every shell supports this check.
The text was updated successfully, but these errors were encountered: