How do I create a script that creates a new local variable?



Can you give a little more context? Or a little more information?
What exactly are you trying to do?

What is the variable supposed to be local to? The script it's running in? Or is it an environment variable in the current shells execution environment?
 
Last edited:
OK, that's great - that's a little more information, but it doesn't quite answer my questions.

What is this 'local' variable local to - is it just a variable that will be used only inside your script?

Or do you intend it to be an environment variable that will be exported to the local execution environment of the shell that your script is running in?

What is this variable going to be local to?
 
OK, that's great - that's a little more information, but it doesn't quite answer my questions.

What is this 'local' variable local to - is it just a variable that will be used only inside your script?

Or do you intend it to be an environment variable that will be exported to the local execution environment of the shell that your script is running in?

What is this variable going to be local to?
yea please i need a solution for this ia am trying to create a local variable
 

Staff online


Top