diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-05-13 02:20:14 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-05-13 02:20:14 +0200 |
commit | e0a4e107aa9d1e03546c090b07874dff1865705e (patch) | |
tree | 4cfbfe6435c966fbda2f13c63af4e1b8c4c4d129 /shell | |
parent | 1285aa62f914ba894b82880e57bd81cfbc41f180 (diff) | |
download | busybox-w32-e0a4e107aa9d1e03546c090b07874dff1865705e.tar.gz busybox-w32-e0a4e107aa9d1e03546c090b07874dff1865705e.tar.bz2 busybox-w32-e0a4e107aa9d1e03546c090b07874dff1865705e.zip |
ash: explain what "local -" does
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 3e9997b53..7af8842bb 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8962,7 +8962,8 @@ parse_command_args(char **argv, const char **path) | |||
8962 | * Make a variable a local variable. When a variable is made local, it's | 8962 | * Make a variable a local variable. When a variable is made local, it's |
8963 | * value and flags are saved in a localvar structure. The saved values | 8963 | * value and flags are saved in a localvar structure. The saved values |
8964 | * will be restored when the shell function returns. We handle the name | 8964 | * will be restored when the shell function returns. We handle the name |
8965 | * "-" as a special case. | 8965 | * "-" as a special case: it makes changes to "set +-options" local |
8966 | * (options will be restored on return from the function). | ||
8966 | */ | 8967 | */ |
8967 | static void | 8968 | static void |
8968 | mklocal(char *name) | 8969 | mklocal(char *name) |