Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 5360 invoked by uid 6000); 11 Jul 1999 14:35:18 -0000 Received: (qmail 5354 invoked from network); 11 Jul 1999 14:35:17 -0000 Received: from devsys.jagunet.com (206.156.208.6) by taz.hyperreal.org with SMTP; 11 Jul 1999 14:35:17 -0000 Received: (from jim@localhost) by devsys.jaguNET.com (8.9.3/jag-2.6) id KAA03195 for new-httpd@apache.org; Sun, 11 Jul 1999 10:35:00 -0400 (EDT) From: Jim Jagielski Message-Id: <199907111435.KAA03195@devsys.jaguNET.com> Subject: Re: cvs commit: apache-1.3/src CHANGES To: new-httpd@apache.org Date: Sun, 11 Jul 1999 10:34:59 -0400 (EDT) In-Reply-To: <19990711124115.A4017@engelschall.com> from "Ralf S. Engelschall" at Jul 11, 99 12:41:15 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Status: O Ralf S. Engelschall wrote: > > > In article <19990710182727.139.qmail@hyperreal.org> you wrote: > > > Make configure SysV tr happy. Also, some typos :) > > > > - apc_optarg=`echo "$apc_optarg" | tr "A-Z" "a-z"` > > - apc_optarg_real=`echo "$apc_optarg" | tr "a-z" "A-Z"` > > + apc_optarg=`echo "$apc_optarg" | tr '[A-Z]' '[a-z]'` > > + apc_optarg_real=`echo "$apc_optarg" | tr '[a-z]' '[A-Z]'` > > Yeah, but I'd to learn with GNU shtool the last weeks that there is only > one(!) really portable way: > > tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' > > Anything else, including the above [a-z], failed on some platforms for me. > It's unbelievable, I know. But doubt me, only the above expanded form survived > all platforms. So please use this one, please. > Hmmm... I'm guess that the 'tr' in question is interpreting the '-' not as a range but as the real "dash" character. Or, you're not doing a one for one sub but maybe a deletion? The reason '[a-z]' works for both BSD and SysV is that under SysV, the '[]' are required but under BSD we simply have an inefficient mapping when we map '[' to '[' and ']' to ']'. This is also what we have in Configure... Those 'tr's where it failed must be seriously broken... Do they work with tr "[a-z]" "[A-Z]" ? -- =========================================================================== Jim Jagielski ||| jim@jaguNET.com ||| http://www.jaguNET.com/ "That's no ordinary rabbit... that's the most foul, cruel and bad-tempered rodent you ever laid eyes on"