From owner-freebsd-questions@freebsd.org Tue Aug 4 10:52:15 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 811979B21C8 for ; Tue, 4 Aug 2015 10:52:15 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2DDED9C0 for ; Tue, 4 Aug 2015 10:52:15 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by wibxm9 with SMTP id xm9so18197253wib.1 for ; Tue, 04 Aug 2015 03:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=DJabkA3Lw/OsbIjp5m/G8j+4LS/T9O1CgtMdRJ9izAs=; b=ecq5iZKcwOqn9KiUlZ1BQG/840HP5wiQaAbWaELbUmQ0S/Va2OTN1pHe5LxPGMmD+R N0hH5DXrPZWCs+qTJN/r4Rp6GkbWR5MGE/5QknNU3xQIZ79KnrIqz4SeO9Rj+mL+CfRm 4oJLcPiE+DaRDQx0cOpa216eDfSfRPqsKzjgbdHmyShEVGcrnfJcMRu57jHrp/HUaOym LENivgaTDwqzU9vsKS3HiIH+JaPlRbmpfx9htVODqMixAEP3udBXZ+UA60/6Hu5BLeJ1 TkWtuL2B9Viipf5JLB6mMSKc1DnLjrrhGxEVFYUZy/2m77xukPGf6ybSOJJqAepDlqgw nq1w== X-Received: by 10.194.179.136 with SMTP id dg8mr6421780wjc.49.1438685533767; Tue, 04 Aug 2015 03:52:13 -0700 (PDT) Received: from gumby.homeunix.com ([90.195.212.243]) by smtp.gmail.com with ESMTPSA id ft5sm1735450wib.4.2015.08.04.03.52.11 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Aug 2015 03:52:12 -0700 (PDT) Date: Tue, 4 Aug 2015 11:51:20 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: Getting value out of "man getopts" Message-ID: <20150804115120.602f1f87@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Tue, 04 Aug 2015 10:52:15 -0000 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.