Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2015 14:09:12 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Getting value out of "man getopts"
Message-ID:  <87h9oggjuv.fsf@elk.localnet>
In-Reply-To: <CAPi0psvd4OGZbuD0ixD8fCM1Ruhr01WzYiAM_kOn%2Bi7RrUwV0Q@mail.gmail.com> (Chris Stankevitz's message of "Mon, 3 Aug 2015 13:26:48 -0700")
References:  <CAPi0psusiWhyuG52jNRMgwShPuj0djMUb=nO6S=qG9V_9xc-RQ@mail.gmail.com> <55BFCC52.3030403@sneakertech.com> <CAPi0psvd4OGZbuD0ixD8fCM1Ruhr01WzYiAM_kOn%2Bi7RrUwV0Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Stankevitz <chrisstankevitz@gmail.com> writes:

> On Mon, Aug 3, 2015 at 1:17 PM, Quartz <quartz@sneakertech.com> wrote:
>> Just to be 100% clear, are you referring to "getopt" or "getopts" (with the
>> 's')? They're closely related and often confused.
>
> Quartz,
>
> I'm interested in getopts with an 's', which is a built-in command.
>
> And I think I understand why "man getopts" shows me a largely useless
> page.  Builtin commands might exist for many different shells and the
> man infrastructure doesn't necessarily know which shell's
> documentation to display... so it gives just a generic manual.  Still
> leaves me wondering where I am supposed to go for csh's getopts man
> page.

I don't think that csh has getopts.  There is some information in the
sh(1) manpage, and that is the standard shell that will be used for
shell scripts.  The bash manpage has somewhat more, and probably ksh and
zsh also.
-- 
Carl Johnson		carlj@peak.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87h9oggjuv.fsf>