diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-05-06 13:28:42 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-05-06 13:28:42 +0000 |
| commit | b98072777fd86407714cb3492ac38a2908dc6af3 (patch) | |
| tree | e2791c0c066ba57066a520681d9eaa59e5b2c74a /bin/sh/options.c | |
| parent | 1fc317e37463a09d99a19c647064ccea9594dedb (diff) | |
Notes
Diffstat (limited to 'bin/sh/options.c')
| -rw-r--r-- | bin/sh/options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/sh/options.c b/bin/sh/options.c index 8b501f2d1b6a0..2ac1a4bb46b0f 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -141,6 +141,8 @@ optschanged(void) /* * Process shell options. The global variable argptr contains a pointer * to the argument list; we advance it past the options. + * If cmdline is true, process the shell's argv; otherwise, process arguments + * to the set special builtin. */ static void @@ -392,7 +394,7 @@ shiftcmd(int argc, char **argv) /* - * The set command builtin. + * The set builtin command. */ int @@ -558,7 +560,7 @@ out: /* * Standard option processing (a la getopt) for builtin routines. The * only argument that is passed to nextopt is the option string; the - * other arguments are unnecessary. It return the character, or '\0' on + * other arguments are unnecessary. It returns the option, or '\0' on * end of input. */ |
