[git commit] ash: explain what "local -" does

Denys Vlasenko vda.linux at googlemail.com
Wed May 13 00:20:14 UTC 2015


commit: http://git.busybox.net/busybox/commit/?id=e0a4e107aa9d1e03546c090b07874dff1865705e
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/shell/ash.c b/shell/ash.c
index 3e9997b..7af8842 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8962,7 +8962,8 @@ parse_command_args(char **argv, const char **path)
  * Make a variable a local variable.  When a variable is made local, it's
  * value and flags are saved in a localvar structure.  The saved values
  * will be restored when the shell function returns.  We handle the name
- * "-" as a special case.
+ * "-" as a special case: it makes changes to "set +-options" local
+ * (options will be restored on return from the function).
  */
 static void
 mklocal(char *name)


More information about the busybox-cvs mailing list