diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-12-09 15:34:55 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-29 16:55:43 +0100 |
commit | 9bd81f34a522b1d5e48e1f1e8c308a2ac38f415d (patch) | |
tree | 9be94da11cd36ff937cc1e51c9f389bbc9d6861a /MenuApplets | |
parent | 97c5a78d27e9dddc12e6b20430892d11016cb6dd (diff) | |
download | serenity-9bd81f34a522b1d5e48e1f1e8c308a2ac38f415d.zip |
Shell: Make for/match/functions put their variables only in the new scope
Otherwise, a function would, for example, overwrite its parent scope:
```sh
foo(x) { }
x=1
foo 2 # would make x=2 otherwise
```
Diffstat (limited to 'MenuApplets')
0 files changed, 0 insertions, 0 deletions