When I run the bash
command it opens a new subshell in the current directory. Is there a way to open the new bash shell in a different directory?
This is what it does:
$ pwd
/original/location
$ bash
$ pwd
/original/location
I'd like to do something like this
$ pwd
/original/location
$ bash "some magic command to start it in a /another/location"
$ pwd
/another/location
$ exit
$ pwd
/original/location
EDIT I also want it so that when I exit the subshell I return to the original location