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 does shell scripting work?
What is a shell? · Types of shell · what is shell scripting?
How do I open the shell in cmd?
What is option in shell script?
How many fields are present in a crontab file and what does each field specify?
What are the two files of crontab command?
How important is shell scripting?
What is a command line shell?
How do we create command aliases in a shell?
What can scripts do?
What are the advantages of shell scripting?
What is the first line in every perl script called?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
Is shell script a programming language?
Give some situations where typing error can destroy a program?