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 language is bash written in?
Is cmd a shell?
What does the sh command do?
write a shell script to check the failed jobs?
How to print pid of the current shell?
How to print all the arguments provided to the script?
What is bash coding?
What is bourne shell scripting?
What are the advantages of shell scripting?
What is k shell?
Can shell script run on windows?
Calculate a real number calculation directly from the terminal and not any shell script.
What are the advantages of shell script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is scripting used for?