From owner-freebsd-questions@freebsd.org Tue Aug 4 11:06:42 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 2FB659B2819 for ; Tue, 4 Aug 2015 11:06:42 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id E0C5F1362 for ; Tue, 4 Aug 2015 11:06:41 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [88.151.27.41] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1ZMa3K-0007u0-KN; Tue, 04 Aug 2015 12:06:38 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.marelmo.com with smtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZMa3J-000MBT-04; Tue, 04 Aug 2015 11:06:37 +0000 Date: Tue, 4 Aug 2015 12:06:36 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Cc: RW Subject: Re: Getting value out of "man getopts" Message-Id: <20150804120636.6727ccd13713c1c300d1e07e@sohara.org> In-Reply-To: <20150804115120.602f1f87@gumby.homeunix.com> References: <20150804115120.602f1f87@gumby.homeunix.com> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 24227@permanet.ie (plain) 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: Tue, 04 Aug 2015 11:06:42 -0000 On Tue, 4 Aug 2015 11:51:20 +0100 RW via freebsd-questions 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