![]() |
|
|
|
|
|||||||
| 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 |
| difference between EXPORT and setenv | dexkid | UNIX for Dummies Questions & Answers | 3 | 02-07-2008 12:06 AM |
| How do I set permanent setenv !!! | geoquest | Shell Programming and Scripting | 1 | 09-07-2002 05:53 AM |
| What 's setenv? | myoeminn | Shell Programming and Scripting | 2 | 03-05-2002 06:24 PM |
| set, setenv | w6u6f | UNIX for Dummies Questions & Answers | 1 | 01-31-2002 01:58 PM |
| setenv Question | ianf | UNIX for Dummies Questions & Answers | 3 | 12-19-2001 02:38 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I never undestood exactly what's the difference between the SET and SETENV commands.
One sets variables visible to all users and the other (SETENV) only to the specific user environment ? Thanks in advance, BraZil - thE heLL iS HEre |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I think that SETENV may be more of C-shell specific thing. According to O'Reilly, SETENV assigns a value to an environment variable. If no arguments are provided, then setenv will produce a list of all names and values in the current environment. The SET command, sets a variable equal to a value. With no arguments, it displays the names and values of all set variables.
C Shell, maintains a set of environment variables which are distinct from the shell variables and arent really part of the C shell. Shell variables are meaningful only within the current shell, but environement varialbes are automatically exported, making them available globally. C shell variables are only available to a particular script in which they are defined, where as environment variables can be used by any shell script, mail utility or editors that you may invoke. (OReilly, UNIX In A NutShell) Korn/Bourne shells dont have the SETENV command (I dont think anyway) |
|
#3
|
||||
|
||||
|
Quote:
|
||||
| Google The UNIX and Linux Forums |