Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2015 16:55:49 -0400
From:      Quartz <quartz@sneakertech.com>
To:        Chris Stankevitz <chrisstankevitz@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Getting value out of "man getopts"
Message-ID:  <55BFD555.4090609@sneakertech.com>
In-Reply-To: <CAPi0psvd4OGZbuD0ixD8fCM1Ruhr01WzYiAM_kOn%2Bi7RrUwV0Q@mail.gmail.com>
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

> I'm interested in getopts with an 's', which is a built-in command.

That's what I assume, but once in a while you get someone who's confused 
so I always double check.


> 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.

Yeah, you got it. (I started typing exactly that up before I instead 
decided to clarify first.).


>Still
> leaves me wondering where I am supposed to go for csh's getopts man
> page.

Built-ins don't have one, it's why you get the generic. You should 
instead just google search for getopts under csh to find a guide.

Unfortunately I can't help you personally here- I gave up on csh ages 
ago so I only know getops on bourne-derived shells. (Personally I'd 
strongly encourage you to give up on csh too, I've never understood why 
FreeBSD still uses it as a default in this day and age. If you don't 
want to install bash or zsh or something at least do yourself a favor 
and use tcsh, your sanity will thank you later).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55BFD555.4090609>