Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, in shell scripting, you have variable, x, whose value you want to set to 2, assume you are within a function and you want that x's scope to only include enclosed function, declare x:
Answer

local x=2

^^ note the use of the local shell built-in command


Question
In linux, in shell scripting, you have variable, x, whose value you want to set to 2, assume you are within a function and you want that x's scope to only include enclosed function, declare x:
Answer
?

Question
In linux, in shell scripting, you have variable, x, whose value you want to set to 2, assume you are within a function and you want that x's scope to only include enclosed function, declare x:
Answer

local x=2

^^ note the use of the local shell built-in command

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
cripts that are mere ``wrapper'' scripts for real programs. The wrapper script sets any environment variables and then exec s the real program binary as its last line. exec should never return. <span>local var = value Assigns a value to a variable. The resulting variable is visible only within the current function. pushd directory and popd These two commands are useful for jumping around directories.

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.