I think twitter guidance on using pushd/popd vs a ...
# general
e
I think twitter guidance on using pushd/popd vs a subshell with a single cd is misguided unless performance is critical - but then why bash? - a (cd $DIR; commands...) is good for all the reasons context managers, RAII, etc are good - plus no platform difference