Hacker News new | ask | show | jobs
by toast0 53 days ago
Otoh, if you don't put your local path first, you can't override system binaries that you want to override.

Also, if something can write into your path, it can probably write to your shell config and/or the environment variables.

1 comments

Why would you want to override system binaries
Often, system binaries are ancient
Overriding them with path is often a bad idea though unless you are 100% sure about backwards compatibility as this will also mean scripts and other programs will pick up your versions. If you just want the new versions for yourself, aliases in your .bashrc or equivalent is safer.
Are you a MacOS user by any chance?