Showing posts with label dot. Show all posts
Showing posts with label dot. Show all posts

Friday, March 13, 2015

Source (or dot)

You need to source your script. If not it will be run in a separate subshell, changing the working directory of the subshell but not of the shell you run it in.
To source it :
. myfile.sh
or
source myfile.sh