svn commit: r282672 - head/etc/rc.d

Colin Percival cperciva at freebsd.org
Mon May 11 19:25:24 UTC 2015


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 at 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


More information about the svn-src-all mailing list