On a remote computer with bash version "3.2.51(1)-release" (OS: SUSE Linux Enterprise Server 11.1 (x86_64)), I could not do a usual tab completion with variable name. for example, I'd like to type:
then at the end of the slash, I can hit "Tab" and the variable name would be expanded to the old directory name (before the last
pushd command). This works in my own laptop (Debian 7, Bash 4.2.37(1)-release). Why in this SLES bash shell it would not work?
Similarly, if I type
and then hit "Tab" at the end of the "P" there, bash would complete that to
$OLDPWD. This would not happen in SLES 11 bash too.
What control variables (shopt? set?) that affect this behavior?