[Ilugc] profile file execution
- From: lug@xxxxxxxxxxxxxxxxxx (Chandrashekar Babu)
- Date: Sun Feb 13 13:33:12 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/
Other related posts: