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
How do I open the shell in cmd?
What is another name for a bash shell script that you might see?
Is shell script a programming language?
What is the first line of a shell script called?
Is shell scripting useful?
Explain about echo command?
What shell is bin sh?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What is the difference between break and continue commands?
How do you debug a script?
How to open a read-only file in the shell?
I want to connect to a remote server and execute some commands, how can I achieve this?
How will you emulate wc –l using awk?
What is scripting autism?
What is shell scripting?