![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| typeset and export command difference | systemsb | UNIX for Dummies Questions & Answers | 0 | 05-16-2006 08:36 AM |
| difference between set and export | shriashishpatil | UNIX for Dummies Questions & Answers | 1 | 02-22-2006 09:28 AM |
| Difference between SET and SETENV | 435 Gavea | UNIX for Dummies Questions & Answers | 2 | 11-10-2003 05:07 PM |
| What 's setenv? | myoeminn | Shell Programming and Scripting | 2 | 03-05-2002 05:24 PM |
| set, setenv | w6u6f | UNIX for Dummies Questions & Answers | 1 | 01-31-2002 12:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
difference between EXPORT and setenv
Hi,
Is there any difference between setting an environment variable by EXPORT and by setenv? |
| Forum Sponsor | ||
|
|
|
||||
|
No there isn't a shared realtime environment in multiple shell sessions.
Typically you would setup some sort of profile to kick start the environment that is full of the variables (~/.profile, ~/.bashrc, ~/.tcshrc, etc) just like as well as employ the system wide equivalent /etc/profile and what not. But not there isnt a: super_export TERM=vt100 that will force that variable to be inherited by all your running shells immediately. The export and setenv calls typically are used for other programs or sub programs to use and shouldn't be confused with the 'set' variables in some shell scripts that are local for that shell sessions. Or that programs will set for themselves and their sub programs but will disappear when the program ends. |
||||
| Google The UNIX and Linux Forums |