-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Gaafer Goreish on 6/26/2009 11:43 AM:
> Following is the the simple commands used to re-produce this bug

The bug is in your lack of shell quoting, and not in tr.  To see why this
is not a tr bug, you can do:

# echo hello | echo tr [:lower:] [:upper:]

> 
> r...@mme1-f101-1:# echo hello | tr [:lower:] [:upper:]

You meant to use:

# echo hello | tr '[:lower:]' '[:upper:]'

Otherwise, the shell sees the unquoted [:lower:] as a glob, and if any
files happen to match the glob (in this case, the files ':', 'l', 'o',
'w', 'e', or 'r'), then glob expansion names those files rather than a
bracket expression.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpFDCIACgkQ84KuGfSFAYCdswCfYzbMj4QlwTEuu8jon/POR4Ez
X3cAoLz+lPV1/zRQ5adCYAFaSMx8R4Ny
=SV3P
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to