3 ms·
Sure it does, that’s just how locals work (in bash and similar). Try printing it after `main` with and then without `local`.
by minitech 7y ago
Sure it does, that’s just how locals work (in bash and similar). Try printing it after `main` with and then without `local`.
- emptysea 7y agoAh my mistake Anyways there are some more subtle caveats discussed in this blogpost I was trying to remember: https://jmmv.dev/2018/03/shell-readability-local.html https://jmmv.dev/2018/03/shell-readability-local.html