The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SCO
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 12-14-2005
RishiPahuja's Avatar
RishiPahuja RishiPahuja is offline
Registered User
  
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
When you say
.profile
it say to spawn a new child shell and execute the script.
while when u say
. ~/.profile
it means you are executing the script in present shell.

say if you have any variables in .profile and unless u export in first case they will not be visible to parent shell. while in second case u will have variable set at current shell level, and will be access even if they are not exported.

rishi