diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-01 22:16:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-04-01 22:16:32 +0200 |
commit | 1409432d072e62c3838ef2e86b0d97637201dbd5 (patch) | |
tree | d9c66bea948ac167f76034ae62879cefa3ddcf2f | |
parent | 00fc1368437f66c6e67ed45a17326e5f2573ea65 (diff) | |
download | busybox-w32-1409432d072e62c3838ef2e86b0d97637201dbd5.tar.gz busybox-w32-1409432d072e62c3838ef2e86b0d97637201dbd5.tar.bz2 busybox-w32-1409432d072e62c3838ef2e86b0d97637201dbd5.zip |
hush: add TODO comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index e6be70078..e42de8762 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -11276,6 +11276,9 @@ static int FAST_FUNC builtin_local(char **argv) | |||
11276 | bb_error_msg("%s: not in a function", argv[0]); | 11276 | bb_error_msg("%s: not in a function", argv[0]); |
11277 | return EXIT_FAILURE; /* bash compat */ | 11277 | return EXIT_FAILURE; /* bash compat */ |
11278 | } | 11278 | } |
11279 | //TODO? ash and bash support "local -" special form, | ||
11280 | //which saves/restores $- around function call (including async returns, such as ^C) | ||
11281 | //(IOW: it makes "set +/-..." effects local) | ||
11279 | argv++; | 11282 | argv++; |
11280 | /* Since all builtins run in a nested variable level, | 11283 | /* Since all builtins run in a nested variable level, |
11281 | * need to use level - 1 here. Or else the variable will be removed at once | 11284 | * need to use level - 1 here. Or else the variable will be removed at once |