I have a shell script that changes directory and then runs. I want the directory change to be bubbled to the command prompt once the script terminates.
So, I run it with:
. script
However, now when the script terminates, the whole window terminates. Is there a way to fix this?
My shell is bash.