I have a variables source file called my.vars located in ~/. In it I have:
FIRSTNAME=John LASTNAME=Doe FIRSTANDLASTNAME=John Doe
In a script I call the source file using:
But I keep getting the error:
line 3: Doe: command not found
I read somewhere that the source command actually runs the program so it maybe seeing the space as a delimiter.
How can I call the variables source file in my script? I've tried also: