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:

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:
?

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:

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"

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

status measured difficulty not learned 37% [default] 0

No repetitions