Open NicMcPhee opened 3 years ago
It turns out that in bash, the cd command sets an OLDPWD shell variable that we can use to get back to where we came from. I should probably mention that in the "Second script" write-up.
bash
cd
OLDPWD
It turns out that in
bash
, thecd
command sets anOLDPWD
shell variable that we can use to get back to where we came from. I should probably mention that in the "Second script" write-up.