From owner-cvs-src@FreeBSD.ORG Wed Jun 21 11:22:52 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4C5616A474; Wed, 21 Jun 2006 11:22:52 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A4B143D46; Wed, 21 Jun 2006 11:22:51 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 7B42D11760; Wed, 21 Jun 2006 13:22:50 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 80001-01; Wed, 21 Jun 2006 13:22:35 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id 70AF41174A; Wed, 21 Jun 2006 13:22:33 +0200 (CEST) From: Florent Thoumie To: Stefan Farfeleder In-Reply-To: <20060621111716.GI846@wombat.fafoe.narf.at> References: <200606210942.k5L9gtAi060504@repoman.freebsd.org> <1150883785.3467.4.camel@mayday.esat.net> <20060621105253.GE45947@comp.chem.msu.su> <1150887909.3467.18.camel@mayday.esat.net> <20060621111716.GI846@wombat.fafoe.narf.at> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ocK+ACzDy7Y5qOoLthdm" Date: Wed, 21 Jun 2006 12:22:32 +0100 Message-Id: <1150888952.3467.21.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Yar Tikhiy , src-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/etc rc.subr src/share/man/man8 rc.subr.8 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 11:22:52 -0000 --=-ocK+ACzDy7Y5qOoLthdm Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-06-21 at 13:17 +0200, Stefan Farfeleder wrote: > On Wed, Jun 21, 2006 at 12:05:09PM +0100, Florent Thoumie wrote: > >=20 > > Then I'm not sure what script would benefit from this function. Can you > > point me to an example? > >=20 > > > > I don't have a particular feeling against your function but it uses > > > > commands that may not be available early enough (getopt, egrep). Wh= ile > > > > it's easy to remove the getopt dependency (see rc.d/mdconfig), it's= not > > > > the case for egrep. > > >=20 > > > It's POSIX getopts, which ought to be a shell built-it by its design. > > > egrep is used with -e only, one can avoid using it if egrep isn't > > > available yet. The only issue is true and false, I was sure they > > > were in /bin, but it can be fixed easily. >=20 > true and false are builtins for /bin/sh. >=20 > >=20 > > Still, with /bin/sh, getopt isn't a builtin: >=20 > getopt !=3D getopts Oops. Misread that. > > $ sh -c 'which getopt' > > /usr/bin/getopt >=20 > /bin/sh doesn't have a which builtin, so you are executing /usr/bin/which= which > just looks in $PATH. Try 'type getopts'. Bleh, bites me everytime. Thanks! --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-ocK+ACzDy7Y5qOoLthdm Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEmSv4MxEkbVFH3PQRAuGEAJ96HGhvlBIqbc6GdPoHE9kybhb5xgCghvdx sGD88JYHwpAKqPuIwfjBWFA= =MBLL -----END PGP SIGNATURE----- --=-ocK+ACzDy7Y5qOoLthdm--