Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2015 12:23:56 -0700
From:      Colin Percival <cperciva@freebsd.org>
To:        Brooks Davis <brooks@freebsd.org>, John Baldwin <jhb@FreeBSD.org>
Cc:        Xin LI <delphij@FreeBSD.org>,  "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r282672 - head/etc/rc.d
Message-ID:  <555101CC.9060702@freebsd.org>
In-Reply-To: <20150511191850.GC68045@spindle.one-eyed-alien.net>
References:  <201505082336.t48NaWRS080408@svn.freebsd.org> <C072FED2-FBED-4EF9-9D74-11B485594AD7@FreeBSD.org> <20150511191850.GC68045@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <delphij@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?555101CC.9060702>