diff options
author | jilles <jilles@FreeBSD.org> | 2012-09-08 19:24:03 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-09-08 19:24:03 +0000 |
commit | 88d12193245226f68a1dd6e205834fa65d91a6e6 (patch) | |
tree | 0261f48e4ef9aeb481b5b4edd7d68eda4fb562e1 /bin | |
parent | 7f498fac4af60ae0a9278ccffe36bed96963ea3d (diff) | |
download | FreeBSD-src-88d12193245226f68a1dd6e205834fa65d91a6e6.zip FreeBSD-src-88d12193245226f68a1dd6e205834fa65d91a6e6.tar.gz |
sh: Remove XXX comment about removing nextopt().
Using nextopt() avoids depending on the BSD-specific optreset feature in
getopt() and reduces code size (both source and binary).
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/options.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bin/sh/options.c b/bin/sh/options.c index 4c2c8ab..ad0291e 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -531,10 +531,6 @@ out: } /* - * XXX - should get rid of. have all builtins use getopt(3). the - * library getopt must have the BSD extension static variable "optreset" - * otherwise it can't be used within the shell safely. - * * 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 |