It seems that RVM is the source of the problem. It overrides the
popdbuiltin with a function:
$ type popd
popd is a function
popd ()
{
builtin popd;
if [[ -s "$PWD/.rvmrc" ]]; then
source "$PWD/.rvmrc";
fi
}
So it looks like this is really a bug in RVM. Thanks for the help f
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA