bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG in tr when lowercase letters 'o', 'p' & 'e' file names in the sa


From: Gaafer Goreish
Subject: Re: BUG in tr when lowercase letters 'o', 'p' & 'e' file names in the same directory
Date: Sat, 27 Jun 2009 12:43:51 -0500

Thanks for the clarification. My fault, I totally missed the shell
expansion.

On Fri, Jun 26, 2009 at 1:01 PM, Bob Proulx <address@hidden> wrote:

> Gaafer Goreish wrote:
> > I discovered that if there is a file with the one lowercase letter name
> 'o'
> > or 'p'  or 'e' in the same directory where the tr command is executed it
> > generates an error or unexpected result.
>
> Thank you for your report.  However this is not a bug in tr.  It is
> insufficient quoting of shell arguments.
>
> > Following is the the simple commands used to re-produce this bug
> >
> > address@hidden:# echo hello | tr [:lower:] [:upper:]
>
> That has insufficiently quoted arguments.  The shell will expand
> them.  You must quote them.  Try this:
>
>  echo hello | tr "[:lower:]" "[:upper:]"
>
> Your question is a variation on the theme behind this FAQ:
>
>  http://www.gnu.org/software/coreutils/faq/#expr-2-_002a-3-does-not-work
>
> Bob
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]