strange tr behaviour
Michael Reifenberger
mike at Reifenberger.com
Fri Mar 26 02:09:47 PST 2004
On Fri, 26 Mar 2004, Jon Noack wrote:
> Date: Fri, 26 Mar 2004 02:48:14 -0600
> From: Jon Noack <noackjr at alumni.rice.edu>
> To: Michael Reifenberger <mike at Reifenberger.com>
> Cc: freebsd-current at 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 at plaut.de | Priv: Michael at Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
More information about the freebsd-current
mailing list