Bash Scripting - Functions
In a Bash function, why would you use the
local keyword when declaring a variable?local keyword when declaring a variable?local inside functions are global by default.locallocal keyword limits the variable's scope to the function, preventing side effects outside.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions