HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Bash has local variables | Hacker News Reader
Bash has local variables
tldp.org
1 point
·
dorfsmay
·
·
1 comment
Open article
Save
View on HN
dorfsmay
(original poster)
·
By default all variables are global, and had not realised that you can specify "local" to make variables inside a function, local.
Reply on news.ycombinator.com