From owner-freebsd-questions@FreeBSD.ORG Sun May 9 10:24:44 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFB9316A4CF for ; Sun, 9 May 2004 10:24:44 -0700 (PDT) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC4DC43D46 for ; Sun, 9 May 2004 10:24:43 -0700 (PDT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.12.10/8.12.10) with ESMTP id i49HOcDF014539; Sun, 9 May 2004 19:24:38 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.12.10/8.12.10/Submit) id i49HObBv014538; Sun, 9 May 2004 19:24:37 +0200 (CEST) (envelope-from kuku) Date: Sun, 9 May 2004 19:24:36 +0200 From: "Christoph P. Kukulies" To: Jose Lima Message-ID: <20040509172436.GA14490@kukulies.org> References: <200405070853.i478r1UM048075@www.kukulies.org> <1084051221.1088.1.camel@fusil.jlpimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1084051221.1088.1.camel@fusil.jlpimp.com> User-Agent: Mutt/1.4.1i cc: Christoph Kukulies cc: questions@freebsd.org Subject: Re: tr A-Z a-z X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 17:24:45 -0000 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