![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| export equivalent command in PERL | ammu | Shell Programming and Scripting | 1 | 09-17-2007 12:46 PM |
| typeset and export command difference | systemsb | UNIX for Dummies Questions & Answers | 0 | 05-16-2006 08:36 AM |
| UNIX export command - memory space | Nomaad | UNIX for Advanced & Expert Users | 2 | 04-10-2006 05:49 PM |
| export command | radhika03 | UNIX for Dummies Questions & Answers | 2 | 12-16-2005 05:25 AM |
| using export command | sveera | Shell Programming and Scripting | 4 | 04-01-2005 08:05 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Export command
Hi all,
Want to know what does export command do?? What is its functionality? And on a shell prompt $at=1 $ echo $at 1 The variable above is it available to other script??? |
| Forum Sponsor | ||
|
|
|
|||
|
It takes a local variable and makes it global.
Try running a script that calls a function or another script. If the secondary script or function sets a LOCAL variable, it is gone when that function of script returns to the parent. If that variable is exported, it is a GLOBAL variable that will remain. |
|
|||
|
1:-Want to know what does export command do??
What is its functionality? The Best way to approach .. Go for the man page of "export" and "env" command. 2:- $at=1 $ echo $at 1 The variable above is it available to other script??? NO, It will be only for that terminal/shell. But if you want use that variable into your another scripts. You must have export it. Thanks Sanjay |