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
On Thursday 01 December 2011 19:01:50 james.cuze...@lyraphase.com wrote:
> Description:
> popd does not appear to return a nonzero exit status when the directory
> stack is empty anymore.
works for me:
$ echo $BASH_VERSION ; popd ; echo $?
4.2.20(1)-release
bash: popd: directory stack empty
On Fri, Dec 2, 2011 at 2:01 AM, wrote:
> 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'
> -DC