Getting value out of "man getopts"

Christian Weisgerber naddy at
Mon Aug 3 20:50:08 UTC 2015

On 2015-08-03, Chris Stankevitz <chrisstankevitz at> wrote:

> When I type "man getopts" I am presented with a useless list of
> "built-in commands".  At least it seems useless to me but that's
> probably because I am a dunce.

"See the built-in command description in the appropriate shell manual
What's unclear about this?

> Questions:
> 1. Why does "man getopts" not help me with "getopts"?

Because getopts only exists as a shell built-in, not as a standalone
command.  Maybe you were thinking of getopt(1).

> 2. Where can I get help with "getopts" (syntax, usage, etc)?  I am
> using /bin/csh.

Further down, the "useless" builtin(1) man page says that getopts
is only a builtin in sh(1) and not available in csh(1).

Christian "naddy" Weisgerber                          naddy at

More information about the freebsd-questions mailing list