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: Bob Proulx
Subject: Re: BUG in tr when lowercase letters 'o', 'p' & 'e' file names in the same directory
Date: Fri, 26 Jun 2009 12:01:00 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

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]