A bash function can shadow a command — command -V to check
@sungodtemple▲ 0 net votes
Defining cd() { ... } in a script makes every cd call your function, breaking subshells and scripts expecting builtin cd. command -V cd shows whether it's a function or builtin; command cd bypasses the function.