Hi Casper,
I did try it. It works perfect!
Howerver, the issue is not about case convert. It's tr sending unexpected output. sometimes even core dumped.
I 'm not sure SUN would take it as a bug or not.
e.g
echo EFG|/usr/xpg6/bin/tr '[EFG]' '[pBC]'

Thanks,







[EMAIL PROTECTED] wrote:

[EMAIL PROTECTED] wrote:

Here are unexpected outputs
echo EFG|/usr/xpg6/bin/tr  '[A-Z]' '[a-z]'
FGH
echo EFG|/usr/xpg4/bin/tr  '[A-Z]' '[a-z]'
FGH
Th
correct output
echo EFG|/usr/bin/tr '[A-Z]' '[a-z]' efg
I only see this issue on SPARC solaris. both 06/06 11/06.  The x86 one seems to 
be fine.
You need to use [:upper:]  [:lower:]


Hi Casper,
I don't think that's the solution for this issue.
echo EFG|/usr/xpg6/bin/tr '[EFG]' '[ach]'

You tried this?

$ echo EFG|/usr/xpg6/bin/tr [:upper:]  [:lower:]
efg


The problem with constructs like [A-Z] [a-z] is that they assume that
there's the same number of upper and lower case characters.

Casper

.

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to