This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 'tr' Bug
On 3/11/2011 9:44 AM, Tim Daneliuk said this:
> On 3/11/2011 9:39 AM, Eric Blake said this:
>> 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.
>>
>
> OK, then why the "correct" behavior on FreeBSD 8.2 and RHEL 5.5,
> both running bash I wonder ...
>
Sigh ... Eric just pointed out privately that the 'x' file wasn't on the
other test systems.
Some days, it doesn't pay to start a shell ....
<Going to go beat my head against a wall ...>
Thanks all ...
--
------------------------------------------------------------------------
Tim Daneliuk
tundra@tundraware.com
--
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