The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SCO
Google UNIX.COM


SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Where can I read about the difference between "..profile" and ".profile" zorrokan UNIX for Dummies Questions & Answers 2 09-04-2007 10:35 PM
How to get to my .profile? GMMike UNIX for Dummies Questions & Answers 3 10-18-2004 06:48 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 07:21 AM
why i have local.profile, local.cshrc,local.login instead of .profile, .login ? abidmalik UNIX for Dummies Questions & Answers 5 08-26-2002 10:47 PM
profile namtab UNIX for Dummies Questions & Answers 1 10-04-2001 10:56 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Wink Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script:


.profile


.~/.profile
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-13-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,643
Quote:
Originally Posted by maneesh mehta
.~/.profile
You mean
Code:
. ~/.profile
Reply With Quote
  #3 (permalink)  
Old 12-13-2005
RishiPahuja's Avatar
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
Reply With Quote
  #4 (permalink)  
Old 12-14-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Quote:
Originally Posted by vino
You mean
Code:
. ~/.profile

yes, I mean the same.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0