Skip to main content
3 events
when toggle format what by license comment
Feb 23, 2022 at 14:21 comment added chicks They are also good for interactive use. Using a subshell still seems like the wrong choice. You could also store $PWD in another variable like $OLDPWD and cd back to that.
Feb 23, 2022 at 10:47 comment added Toby Speight I disagree on pushd and popd. They are much better suited for interactive use, and a nuisance in scripts. They also produce output that would need to be redirected away.
Feb 22, 2022 at 21:16 history answered chicks CC BY-SA 4.0