What is the difference between a shell variable that is
exported and the one that is not exported?
Answer Posted / tony
By default, Shells will only keep all variables to the Shell in which they run. This is good, since it assumes variables are not needed outside of a given script. In most cases, that is correct. But, if you have a script that you want to use to set Shell variables, it must be exported in some way. Alternative ways to export variables, is to call a script with "source" or just with a dot and a whitespace.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find duplicate record in file using shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
Why are shell scripts used?
Explain about non-login shell files?
How to use arguments in a script?
How does ls command work?
Is shell scripting useful?
What are the different commands available to check the disk usage?
What is a boot block?
How do I stop script errors?
What is the significance of $#?
What is shell and shell script?
I have 2 files and I want to print the records which are common to both.
What is a batch file used for?
What are scripts in psychology?