Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the default shell of solaris?

1038


What are the different types of variables used in shell script?

1046


What are the different commands available to check the disk usage?

990


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1144


What is the equivalent of a file shortcut that we have a window on a linux system?

1118


How do you find out What is your shell?

1053


What are the 3 standard streams in linux?

1126


what is info area how many types?

2755


How does path variable work?

961


What is meant by dos operating system?

1054


What is a file basename?

1038


What does echo mean in scripting?

1000


What is inside a seashell?

1129


What are the disadvantages of shell scripting?

1189


wats the deinitions for shell utility and filter?

2314