The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
difference between EXPORT and setenv dexkid UNIX for Dummies Questions & Answers 3 02-06-2008 11:06 PM
How to export jisha BSD 4 01-21-2008 03:06 AM
export??? Justinkase Shell Programming and Scripting 1 12-03-2007 02:32 PM
typeset and export command difference systemsb UNIX for Dummies Questions & Answers 0 05-16-2006 08:36 AM
using export command sveera Shell Programming and Scripting 4 04-01-2005 08:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2006
Registered User
 

Join Date: Dec 2005
Location: Pune
Posts: 78
Stumble this Post!
difference between set and export

Hi,

can anybody tell me what is the difference between set and export in unix.

-Ashish
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-22-2006
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
Stumble this Post!
It varies by shell, but basically the set command is used to define a variable for the current shell. The export command is used to define the variable as one that subshells (shells spawned from the original) should inherit.
__________________
[url=http://chuckb.1le.net/]My website[/url]
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:26 AM.


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