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
Why do we use shell scripting?
How to debug the problems encountered in the shell script/program?
What is the difference between scripting and coding?
Explain about shebang?
What does chmod do?
What does the sh command do?
Is shell scripting easy to learn?
How can I set the default rwx permission to all users on every file which is created in the current shell?
Explain about the exit command?
what is info area how many types?
What is .sh file in mac?
How do I run a shell script in powershell?
What makes c shell a more preferable option than the bourne shell?
What command needs to be used to take the backup?
Is shell and terminal the same?