Quote:
Originally Posted by
iamwrong
Anyone care to advise me?
Start with the standard explanations:
- what OS are you using?
- what shell are you using?
- please describe (in plain text) what you are about to achieve.
From the quoted and linked discussion i take it you don't understand what
export variable does and you don't understand how to create and use variables and what their scope is (that is: where they keep their values and where not). From your script i take it you don't know how to handle command line options either.
I will be glad to explain all that (and maybe more) to you once you have told us what the (real!) underlying motivation for your script is because chances are you need some other explanation(s) either in addition or instead of knowing how to handle variables, command line arguments, etc..
I hope this helps.
bakunin