By default, bash hashes the location of executables you call the first time you run them. This means that if you place a different version with the same name at some location in your $PATH even with higher precedence, you'll still get the first one by default. You can toggle this off with set +h.
By default,
bashhashes the location of executables you call the first time you run them. This means that if you place a different version with the same name at some location in your$PATHeven with higher precedence, you'll still get the first one by default. You can toggle this off withset +h.TIL!