Hi
All
In one of the shell script i found one statement
. $HOME/920.env
i know it is setting environment for user. but i don't know what is . means at beggining in the statement.
Thanks
Vishal
Hi
All
In one of the shell script i found one statement
. $HOME/920.env
i know it is setting environment for user. but i don't know what is . means at beggining in the statement.
Thanks
Vishal
It is called "sourcing" which means the shell script runs in the same process as the calling script. All of the env variables and functions set in that file are available to the main script. Without the . - none of the variable and functions would be available to the main script
Nice explanation...
Thanks a lot...
Vishal