dundalek opened this issue 5 years ago · 0 comments
Currently cd sets $PWD. Make it that it also sets $OLDPWD and when doing cd - change to $OLDPWD.
cd
$PWD
$OLDPWD
cd -