From owner-freebsd-arch Wed Aug 21 11: 3:59 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5C2237B400 for ; Wed, 21 Aug 2002 11:03:57 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id C285943EA3 for ; Wed, 21 Aug 2002 11:03:56 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.10) id 17hZpY-000ABS-00; Wed, 21 Aug 2002 20:03:44 +0200 Date: Wed, 21 Aug 2002 20:03:44 +0200 From: Sheldon Hearn To: "M. Warner Losh" Cc: nbm@mithrandr.moria.org, rizzo@icir.org, arch@FreeBSD.ORG Subject: Re: ugliness in rc.* scripts Message-ID: <20020821180344.GB33546@starjuice.net> Mail-Followup-To: "M. Warner Losh" , nbm@mithrandr.moria.org, rizzo@icir.org, arch@FreeBSD.ORG References: <20020820232538.A53816@iguana.icir.org> <20020821074819.GA58163@mithrandr.moria.org> <20020821.095252.61131232.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020821.095252.61131232.imp@bsdimp.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On (2002/08/21 09:52), M. Warner Losh wrote: > Why not just have > > case -i ${some_config_variable} in > > to do the case folding. This would be a backwards compatible extension: I don't think the ugliness involved in the rc scripts justifies any of the proposed hack-arounds yet. And if you _were_ going to hack around, you'd want to introduce a form of parameter expansion that did lower-case transliteration for you, e.g. ${parameter:lc} Much more useful, but non-portable. But I digress. I don't think the ugliness is ugly enough. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message