What is the difference between a shell variable that is
exported and the one that is not exported?
Answer Posted / seshadri sethi
The Shell variable which is exported would available to all
the programs outside the Shell also. And the shell variable
which is not exported, would available for that shell or for
the shell program only, in which the variable is declared.
Export LANG=C
will make the variable LANG the global variable, put it into
the global environment. All other processes can use it.
LANG=C
will change the value only in the current script.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of scripting?
What is scripting used for?
What is option in shell script?
What does echo mean in scripting?
Print the 10th line without using tail and head command.
What is console line?
Is shell a part of kernel?
How to debug the problems encountered in the shell script/program?
What's the difference between scripting and coding?
How to write a function?
What is shell terminal?
What does $@ mean bash?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is gui scripting?
What can you do with powershell?