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
What is bash shell command?
What is bash command used for?
What is the equivalent of a file shortcut that we have a window on a linux system?
Why are there shells on the beach?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is shell company all about?
What is a boot block?
How will you copy a file from one machine to other?
When should shell programming/scripting not be used?
What is the conditional statement in shell scripting?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is shell geeksforgeeks?
how will you find the total disk space used by a specific user?
What is meant by $1 in shell script?
What are scripts in psychology?