From owner-freebsd-current@FreeBSD.ORG Fri Mar 26 02:09:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76D9216A4CE for ; Fri, 26 Mar 2004 02:09:47 -0800 (PST) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10F5D43D46 for ; Fri, 26 Mar 2004 02:09:47 -0800 (PST) (envelope-from mike@reifenberger.com) Received: from fwd10.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1B6oHU-0006eR-05; Fri, 26 Mar 2004 11:09:40 +0100 Received: from fw.reifenberger.com (ZqPOVaZQYe6zNVOU0fOpxt4DNVDF8Cxmg7xNwvzku2YKYgznmaBCUC@[217.232.250.105]) by fmrl10.sul.t-online.com with esmtp id 1B6oH3-2CibcO0; Fri, 26 Mar 2004 11:09:13 +0100 Received: from localhost (mike@localhost)i2QA9DQp025509; Fri, 26 Mar 2004 11:09:13 +0100 (CET) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Fri, 26 Mar 2004 11:09:12 +0100 (CET) From: Michael Reifenberger To: Jon Noack In-Reply-To: <4063EE4E.3090102@alumni.rice.edu> Message-ID: <20040326110609.O24707@fw.reifenberger.com> References: <20040326085219.T24707@fw.reifenberger.com> <4063EE4E.3090102@alumni.rice.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Seen: false X-ID: ZqPOVaZQYe6zNVOU0fOpxt4DNVDF8Cxmg7xNwvzku2YKYgznmaBCUC@t-dialin.net cc: freebsd-current@freebsd.org Subject: Re: strange tr behaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 10:09:47 -0000 On Fri, 26 Mar 2004, Jon Noack wrote: > Date: Fri, 26 Mar 2004 02:48:14 -0600 > From: Jon Noack > To: Michael Reifenberger > Cc: freebsd-current@freebsd.org > Subject: Re: strange tr behaviour > ... > Short version: > tr(1) was modified to be POSIX compliant for 5.x. You are seeing > correct behavior. See the solution below. > Thanks all for the hints. Only that tr(1) states: ... COMPATIBILITY System V has historically implemented character ranges using the syntax ``[c-c]'' instead of the ``c-c'' used by historic BSD implementations and standardized by POSIX. System V shell scripts should work under this implementation as long as the range is intended to map in another range, i.e. the command ``tr [a-z] [A-Z]'' will work as it will map the ``['' character in string1 to the ``['' character in string2. However, if the ... So I just expected the historic behaviour so that [a-z] map to [A-Z] as before :-( Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com