← Commit list

e0a4e107a

Denys Vlasenko
Denys Vlasenko
2015-05-13
SUCCESS Duration: 158s

Subject

ash: explain what "local -" does

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+2 -1
@@ -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)