bash: variable scope
This is a wiki page. Be bold and improve it!
If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.
See the use of the keywords local
and global
, the switch -G
for declare
.
Late evaluation: expressions are evaluated at the last moment.
What is the scope of local? A code flow segment (between { and }, like C++) or a function?