| Start |
|---|
Global variables Will obviously output "hello", but this works the other way around too: Will also output |
| global and local variables By default, every variable in bash is global to every function, script and even the outside shell if you are declaring your variables inside a script. If you want your variable to be local to a function, you can use |
Mixing the two together Will output |
Read Article
https://develop.horje.com/learn/1434/reference