You can also use `cd -` to return to the previous directory.
[testfunc(x) for x in testlist]
<successful result>
success = _
print _
<successful result>
It's useful when using the interpreter as a calculator, or when you're bashing out some calculation you can never remember how to do properly. >> "foo"
=> "foo"
>> bar = _
=> "foo"
>> bar
=> "foo" $ pwd
/home/foo
$ mkdir -p bar/baz/qux && cd $_
$ pwd
/home/foo/bar/baz/qux$ pwd
/some/long/compli/cated/v1.0.7/path/to/_stuff
$ cd /simple/
$ do -stuff
$ cd ./foo
$ do -stuff
$ rem now let's get back to that complicated directory again
$ cd -
oh, wait, I cd'ed twice, shit