www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/11/10:41:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4D7A4274.2070705@ateb.com>
Date: Fri, 11 Mar 2011 10:40:36 -0500
From: Reid Thompson <Reid DOT Thompson AT ateb DOT com>
Reply-To: Reid DOT Thompson AT ateb DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 'tr' Bug
References: <4D7A3FB8 DOT 3050004 AT tundraware DOT com> <4D7A4216 DOT 6010207 AT redhat DOT com>
In-Reply-To: <4D7A4216.6010207@redhat.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 03/11/2011 10:39 AM, Eric Blake wrote:
> On 03/11/2011 08:28 AM, Tim Daneliuk wrote:
>> echo /opt/IBN/df | tr [A-Z] [a-z]
>>
>> produces:
>>
>>     /opt/xxx/df
>
> Let me guess - you have a file named 'x' in the current directory.
>
> Quote your arguments, so that the shell won't glob them:
>
> echo /opt/IBN/df | tr '[A-Z]' '[a-z]'
>
> This is not cygwin-specific.
>

you are correct ;)

thank you

$ echo /opt/IBN/df | tr '[A-Z]' '[a-z]'
/opt/ibn/df

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019