I have used the Bash shopt cdable_vars option for years. When I cd to a destination that requires cdable_vars to resolve, the shell echoes my CWD before returning me to the prompt. When I cd to a destination that doesn't require a cdable_vars lookup (i.e. a correct, fully spelled subdirectory or an absolute path), the shell doesn't echo my CWD.
Is this the normal, (undocumented?) behavior of cdable_vars?
I faintly recall having activated this behavior at one point, because I liked being reminded that I had navigated to a cdable_var. Now I don't want it, but I can't figure out how to turn it off.
I use the cd builtin (no function or alias).
I do use a prompt command hook, but running with set -x shows that both the cd command and the echo happen before the prompt command runs.
Other places to look?
CDPATHvariable set?