@Gargron @jk Switching directory is very safe, though, and you would save a lot needless typing of "cd ".

(Also, this behaviour only triggers if you add a / at the end of the directory, like you get when using tab completion, so it could even be limited to just that case, and still be very useful, without causing issues with mistyped commands.)