I want to overload functionality cdin bash so that I can perform the following checks:
if the directory is not in DIRSTACK → pushd dir
else cd dir(or cd ~#)
However, now I get a recursive loop when trying cd
The reason for this is that I am trying to get around the fact that bash does not support set dunique
source
share