From owner-freebsd-questions@freebsd.org Mon Aug 3 20:50:08 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 ADA379B2065 for ; Mon, 3 Aug 2015 20:50:08 +0000 (UTC) (envelope-from news@mips.inka.de) Received: from mail.inka.de (quechua.inka.de [IPv6:2001:7c0:407:1001:217:a4ff:fe3b:e77c]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 755B077D for ; Mon, 3 Aug 2015 20:50:07 +0000 (UTC) (envelope-from news@mips.inka.de) Received: from mips.inka.de (news@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1ZMMgO-0003WL-QP; Mon, 03 Aug 2015 22:50:04 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.15.2/8.15.2) with ESMTP id t73Kk0Pf084116 for ; Mon, 3 Aug 2015 22:46:00 +0200 (CEST) (envelope-from news@lorvorc.mips.inka.de) Received: (from news@localhost) by lorvorc.mips.inka.de (8.15.2/8.15.2/Submit) id t73Kjxmp084115 for freebsd-questions@freebsd.org; Mon, 3 Aug 2015 22:46:00 +0200 (CEST) (envelope-from news) To: freebsd-questions@freebsd.org From: Christian Weisgerber Newsgroups: list.freebsd.questions Subject: Re: Getting value out of "man getopts" Date: Mon, 3 Aug 2015 20:45:59 +0000 (UTC) Lines: 24 Message-ID: References: X-Trace: lorvorc.mips.inka.de 1438634759 83876 ::1 (3 Aug 2015 20:45:59 GMT) X-Complaints-To: usenet@mips.inka.de User-Agent: slrn/1.0.2 (FreeBSD) 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:50:08 -0000 On 2015-08-03, Chris Stankevitz wrote: > When I type "man getopts" I am presented with a useless list of > "built-in commands". At least it seems useless to me but that's > probably because I am a dunce. "See the built-in command description in the appropriate shell manual page." What's unclear about this? > 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). > 2. Where can I get help with "getopts" (syntax, usage, etc)? I am > using /bin/csh. Further down, the "useless" builtin(1) man page says that getopts is only a builtin in sh(1) and not available in csh(1). -- Christian "naddy" Weisgerber naddy@mips.inka.de