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


Please Help Members By Posting Answers For Below Questions

What is scripting autism?

700


Explain about gui scripting?

622


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.

2226


What is sudo command?

550


What is k shell?

532






How to find duplicate record in file using shell script?

847


Is shell scripting a language?

581


What is eval in shell script?

649


Is shell scripting easy to learn?

567


How do we create command aliases in a shell?

540


What are the advantages of shell scripting?

584


What is a boot block?

581


Why are shell scripts used?

622


wats the deinitions for shell utility and filter?

1843


What is a scripting language simple definition?

555