From owner-svn-src-all@FreeBSD.ORG Mon May 11 19:25:24 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48B70F70 for ; Mon, 11 May 2015 19:25:24 +0000 (UTC) Received: from o1.l99.sendgrid.net (o1.l99.sendgrid.net [198.37.153.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E526E1E9A for ; Mon, 11 May 2015 19:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=+RatjHNnJcPxuXelSEZbHLd7FjQ=; b=SW74dV9G0HppDHn+7b ZvN4m3H5YJuXiBBs3mNt5hZJIqwEBJrEGI6+pyX6NSkLLXwzPBqhbCVJr7LHWrRJ vt/YOBqFTP1NlHdr9vM/w5ef5sa2hlVKA5P0Jc4hNzhKNpd9g0KkPZpkcmSiXLYx shKOmLhemAG1vdCAsBnpa7XgA= Received: by filter0202p1mdw1.sendgrid.net with SMTP id filter0202p1mdw1.21639.555102214 2015-05-11 19:25:21.254848601 +0000 UTC Received: from mail.tarsnap.com (ec2-54-86-246-204.compute-1.amazonaws.com [54.86.246.204]) by ismtpd-027 (SG) with ESMTP id 14d447051ab.1b05.fea5d for ; Mon, 11 May 2015 19:25:21 +0000 (UTC) Received: (qmail 67991 invoked from network); 11 May 2015 19:22:47 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 11 May 2015 19:22:47 -0000 Received: (qmail 29778 invoked from network); 11 May 2015 19:23:57 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 11 May 2015 19:23:57 -0000 Message-ID: <555101CC.9060702@freebsd.org> Date: Mon, 11 May 2015 12:23:56 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Brooks Davis , John Baldwin CC: Xin LI , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Subject: Re: svn commit: r282672 - head/etc/rc.d References: <201505082336.t48NaWRS080408@svn.freebsd.org> <20150511191850.GC68045@spindle.one-eyed-alien.net> In-Reply-To: <20150511191850.GC68045@spindle.one-eyed-alien.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SG-EID: A6W2xSVPHetogaU8rnzccWwgBYtN+QvIzXyjfe/10PH25wNcDsehesSRr/7+7L27Ttt1Th2n6t4yVb 7jkgRznWFadMA0h+Fsuyz7Zy5zcmkGezMqoY2mFpul0dXl/fzdS3g843E3n87N0EvxUgXERx6M5ekq XDDzPN22VBxmEjg= X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 19:25:24 -0000 On 05/11/15 12:18, Brooks Davis wrote: > On Sun, May 10, 2015 at 03:45:48PM -0400, John Baldwin wrote: >>> On May 8, 2015, at 19:36, Xin LI wrote: >>> - uuid=$1 >>> + uuid=$(echo $1 | tr '[:upper:]' '[:lower:]') >> >> tr is in /usr/bin so this breaks systems with a separate /usr. Perhaps you could use dd with conv=lcase instead? > > Alterntively, a shell function "ltr" exists in rc.subr for this purpose. This only works with a single pattern at a time, though. Perhaps we need a new "ldowncase" shell function which iterates through the alphabet and invokes ltr for each letter? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid