Getting value out of "man getopts"

Steve O'Hara-Smith steve at sohara.org
Tue Aug 4 11:06:42 UTC 2015


On Tue, 4 Aug 2015 11:51:20 +0100
RW via freebsd-questions <freebsd-questions at freebsd.org> wrote:

> On Mon, 3 Aug 2015 20:45:59 +0000 (UTC)
> Christian Weisgerber wrote:
> 
> 
> > > 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).
> 
> 
> $ which  getopts
> /usr/bin/getopts
> 
> It is implemented in sh, but it does exist.

	However /usr/bin/getopts is linked to alias, bg, cd, command, fc,
fg, hash, jobs, read, type, ulimit, umask, unalias and wait (all
in /usr/bin).

-- 
Steve O'Hara-Smith <steve at sohara.org>


More information about the freebsd-questions mailing list