The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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-05-2007 02:35 AM
How to get to my .profile? GMMike UNIX for Dummies Questions & Answers 3 10-18-2004 10:48 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 11:21 AM
why i have local.profile, local.cshrc,local.login instead of .profile, .login ? abidmalik UNIX for Dummies Questions & Answers 5 08-27-2002 02:47 AM
profile namtab UNIX for Dummies Questions & Answers 1 10-05-2001 02:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-14-2005
maneesh mehta maneesh mehta is offline
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
  #2 (permalink)  
Old 12-14-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by maneesh mehta
.~/.profile
You mean
Code:
. ~/.profile

  #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
  #4 (permalink)  
Old 12-14-2005
maneesh mehta maneesh mehta is offline
Registered User
  
 

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

yes, I mean the same.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0