Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2004 11:09:12 +0100 (CET)
From:      Michael Reifenberger <mike@Reifenberger.com>
To:        Jon Noack <noackjr@alumni.rice.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: strange tr behaviour
Message-ID:  <20040326110609.O24707@fw.reifenberger.com>
In-Reply-To: <4063EE4E.3090102@alumni.rice.edu>
References:  <20040326085219.T24707@fw.reifenberger.com> <4063EE4E.3090102@alumni.rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Mar 2004, Jon Noack wrote:

> Date: Fri, 26 Mar 2004 02:48:14 -0600
> From: Jon Noack <noackjr@alumni.rice.edu>
> To: Michael Reifenberger <mike@Reifenberger.com>
> 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



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