From owner-freebsd-questions@freebsd.org Mon Aug 3 21:09:28 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 82F3A9B2543 for ; Mon, 3 Aug 2015 21:09:28 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter04.peak.org (filter04.peak.org [69.59.194.80]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E39B111C for ; Mon, 3 Aug 2015 21:09:28 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter04.peak.org ({b5578ef9-c87c-4111-97f7-092309db775d}) via TCP (outbound) with ESMTPS id 20150803210920543_0000 for ; Mon, 03 Aug 2015 14:09:20 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id ED44A4D031 for ; Mon, 3 Aug 2015 14:09:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id E1AB84D07A for ; Mon, 3 Aug 2015 14:09:13 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3Ggdp4pt58t6 for ; Mon, 3 Aug 2015 14:09:13 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id ACF5A4D050 for ; Mon, 3 Aug 2015 14:09:13 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZMMyu-0006A7-Ln for freebsd-questions@freebsd.org; Mon, 03 Aug 2015 14:09:12 -0700 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Getting value out of "man getopts" References: <55BFCC52.3030403@sneakertech.com> Mail-Followup-To: freebsd-questions@freebsd.org X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 03 Aug 2015 14:09:12 -0700 In-Reply-To: (Chris Stankevitz's message of "Mon, 3 Aug 2015 13:26:48 -0700") Message-ID: <87h9oggjuv.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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 21:09:28 -0000 Chris Stankevitz writes: > On Mon, Aug 3, 2015 at 1:17 PM, Quartz 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