Date: Sun, 9 May 2004 19:24:36 +0200 From: "Christoph P. Kukulies" <kuku@kukulies.org> To: Jose Lima <jose.lima@charter.net> Cc: questions@freebsd.org Subject: Re: tr A-Z a-z Message-ID: <20040509172436.GA14490@kukulies.org> In-Reply-To: <1084051221.1088.1.camel@fusil.jlpimp.com> References: <200405070853.i478r1UM048075@www.kukulies.org> <1084051221.1088.1.camel@fusil.jlpimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 08, 2004 at 04:20:21PM -0500, Jose Lima wrote: > I use: > > echo "$Z" | tr '[a-z' '[A-Z]' This would be a lower case to upper case and would expose the same problem. And a closing bracket is missing also. Don't know what the $Z should mean in your example. In my example echo Z served as feeding a 'Z' to the tr pipe. But the problem is solved. As Kris suspected and someone else explained it is a locale issue. One should indeed use :lower: :upper: keywords. Or set the locale accordingly for old shell scripts to work correctly. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040509172436.GA14490>