[Ilugc] profile file execution

Chandrashekar Babu lug at chandrashekar.info
Sun Feb 13 13:32:52 IST 2005


> If you execute in command prompt it will execute in new shell and come
> out. You cannot see the updations in the current shell.

Wrong!

./spgs_profile   # executes the script in a new shell (child process).

. ./spgs_profile  # whereas this command sources the script in the 
                             # current shell.

In Bash and Csh, you can also use the command 'source ./spgs_profile' 
instead to achieve the same effect.


-- 
Chandrashekar Babu.
http://www.chandrashekar.info/




More information about the ilugc mailing list