I must be missing a fundamental understanding about sourcing files in bash. I've tried the different approaches that seem like they should work, but I still get this error
source: not found.
In my script I tried to cd to the directory where the file that I want to source is located before sourcing it. That didn't work.
cd /home/user/path/to/ source myfile
Neither did providing the full absolute path to the file to be sourced:
The error is "source: not found" with the line number of the above statement.
Is there something else, something basic, I could be overlooking? I have checked the paths I'm using and I don't see any errors. This problem is repeatable.
I'm running Ubuntu on a Linode server and my scripts all start with: