-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] whereis -b
not supported on macOS
#19
Comments
I think this can fail if the expected executable name that I am passing to |
I'm not sure, but I think I should go with the |
whence -b
not supported on macOSwhereis -b
not supported on macOS
Use `hash` command instead of `whereis -b` to check if an executable exist or not as it's POSIX compatible.
You're right on the aliases! To avoid the "determine and remember" overhead of re-hashing, when I want to get a binary's path, I use:
Tweaking for silent, return value only:
|
The concern regarding re-hashing is moved to another issue #22. |
Issue observed in the following shell(s):
Describe the bug
Upon shell startup:
I suggest you do:
and then:
Expected behaviour
No error
The text was updated successfully, but these errors were encountered: