As the question says, what is the difference between executing a script with
source command and with
. , i.e.:
There seems to be much disbelief about this! For anyone who might like to verify that the commands are simply synonyms and nothing more: first download and extract the source code. Then examine the file,
|show 2 more comments|
This behaviour has bitten me, scripts tested with bash as /bin/sh fail when run under ash, for example.