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 scripting autism?
Explain about gui scripting?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is sudo command?
What is k shell?
How to find duplicate record in file using shell script?
Is shell scripting a language?
What is eval in shell script?
Is shell scripting easy to learn?
How do we create command aliases in a shell?
What are the advantages of shell scripting?
What is a boot block?
Why are shell scripts used?
wats the deinitions for shell utility and filter?
What is a scripting language simple definition?