From owner-freebsd-questions@freebsd.org Mon Aug 3 20:55:52 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6748D9B2252 for ; Mon, 3 Aug 2015 20:55:52 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from douhisi.pair.com (douhisi.pair.com [209.68.5.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47F16B59 for ; Mon, 3 Aug 2015 20:55:51 +0000 (UTC) (envelope-from quartz@sneakertech.com) Received: from [10.2.2.1] (pool-173-48-121-235.bstnma.fios.verizon.net [173.48.121.235]) by douhisi.pair.com (Postfix) with ESMTPSA id 6BBFD3F70F; Mon, 3 Aug 2015 16:55:50 -0400 (EDT) Message-ID: <55BFD555.4090609@sneakertech.com> Date: Mon, 03 Aug 2015 16:55:49 -0400 From: Quartz MIME-Version: 1.0 To: Chris Stankevitz CC: freebsd-questions Subject: Re: Getting value out of "man getopts" References: <55BFCC52.3030403@sneakertech.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 20:55:52 -0000 > 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).