benefit of source command
Hi,
What are the benefits that we get when we choose to source a file rather than execute it as a shell script? and then in what way is export opposite to source? It looks like they are doing the same thing, i.e making environment variables accessible in the local shell |
Executing it as a shell script is using the source command because source is abbreviated with the DOT. It's really that simple, DOT is source, and vice-versa.
http://en.wikipedia.org/wiki/Source_%28command%29 Or see the first answer, not the comments, the answer http://superuser.com/questions/46139...does-source-do where they say: Quote:
|
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 06:42 PM. |