Closed bergman closed 9 years ago
Now it never changes back to the old directory?!
@hpurmann It runs in a subshell. Try this in a shell:pwd && (cd / && pwd) && pwd
Edit: More information on subshells: http://www.tldp.org/LDP/abs/html/subshells.html
Oh nice! I didn't see the parenthesis at first. Learning never stops ;)
+1
@benmills any chance of merging this? I'm happy to answer any questions you might have.
@benmills Please merge this, we need it! :smiley:
Rebased on current master.
Slick! Thanks
Fixes a problem where the directory is not restored if the command exits with a non-zero code.