<html><head></head><body style="zoom: 0%;"><div dir="auto">I also use it in scripts as it doesn't mess with $OLDPWD and easily leaves you in the directory you run the script, despite the directories in which the script needs to run.<br></div>
<div dir="auto">It makes the use of relative paths in arguments much easier.</div>
<div class="gmail_quote" >On 21 Jan 2022, at 11:41 am, Brad Campbell <<a href="mailto:brad@fnarfbargle.com" target="_blank">brad@fnarfbargle.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">On 20/1/22 13:06, Juneidy wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Hi guys,<br> <br> I first heard about `pushd` and `popd` from Alistair long time ago and <br> never really seriously thought about how to use it from my day to day <br> work. The closest I have used daily is `cd -`.<br> <br> Then a conversation in office lead to someone talking about `pushd` and <br> `popd` again.<br> <br> I wonder if anyone here used `pushd` and `popd` frequently? What sort of <br> navigation would you use that for?<br></blockquote><br><br>I use them all the time in scripts. On the command line I just use <br>$OLDPWD and bash history, though now you've brought it up I might <br>explore it a bit. Old habits die hard though.<br><br>Regards,<br>Brad</pre></blockquote></div></body></html>