Re: 'tr' Bug

2011-03-11 Thread Tim Daneliuk
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. >> >> Qu

Re: 'tr' Bug

2011-03-11 Thread Eric Blake
On 03/11/2011 08:34 AM, marco atzeri wrote: > $ echo /opt/IBN/df | tr [A-Z] [a-z] > /opt/ibn/df > > $ uname -a > CYGWIN_NT-5.1 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin > > $ set |grep LANG > LANG=C.UTF-8 One more thing to note. According to POSIX, tr '[A-Z]' '[a-z]' is only portable in th

Re: 'tr' Bug

2011-03-11 Thread Eliot Moss
On 3/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

Re: 'tr' Bug

2011-03-11 Thread Eric Blake
On 03/11/2011 08:44 AM, Tim Daneliuk wrote: > 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. >> >> Quot

Re: 'tr' Bug

2011-03-11 Thread Tim Daneliuk
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: >

Re: 'tr' Bug

2011-03-11 Thread Reid Thompson
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 | t

Re: 'tr' Bug

2011-03-11 Thread Reid Thompson
On 03/11/2011 10:28 AM, Tim Daneliuk wrote: echo /opt/IBN/df | tr [A-Z] [a-z] produces: /opt/xxx/df not: /opt/ibn/df Both Linux and FreeBSD produce correct results. Is this a known 'tr' bug? $ env|grep LANG LANG=en_US.UTF-8 GDM_LANG=en_US.UTF-8 [10:38:15] rtho

Re: 'tr' Bug

2011-03-11 Thread Eric Blake
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

Re: 'tr' Bug

2011-03-11 Thread marco atzeri
On Fri, Mar 11, 2011 at 4:28 PM, Tim Daneliuk wrote: > echo /opt/IBN/df | tr [A-Z] [a-z] > > produces: > >   /opt/xxx/df > > not: > >   /opt/ibn/df > > Both Linux and FreeBSD produce correct res

'tr' Bug

2011-03-11 Thread Tim Daneliuk
echo /opt/IBN/df | tr [A-Z] [a-z] produces: /opt/xxx/df not: /opt/ibn/df Both Linux and FreeBSD produce correct results. Is this a known 'tr' bug? -- Tim Daneliuk tun...@tundraware.com -- Probl