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 shell company all about?
What is mac default shell?
What language is bash written in?
What are the zombie processes?
Explain about return code?
How will you print the login names of all users on a system?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is a beat in a script?
What is bash used for?
How to debug the problems encountered in the shell script/program?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is shell chemistry?
What is k shell?
What is in a script?
Write down the syntax of "for " loop