Subject: bug#8587: Curious bug.

From: Eric Blake <[email-masked]>
Date: Sat, 30 Apr 2011 07:15:44 -0600

On 04/29/2011 03:35 PM, Alan Curry wrote:
> Use '[:upper:]' and '[:lower:]' to make the shell treat them as literal
> strings and not globs.
> 
> Switch to zsh for better diagnostics...
> 
>   % echo ABCD Directory | tr [:lower:] [:upper:]
>   zsh: no matches found: [:lower:]
>   % echo ABCD Directory | tr '[:lower:]' '[:upper:]'
>   ABCD DIRECTORY

That's not specific to zsh.  You can get that same behavior in bash:

$ echo [l]
[l]
$ shopt -s failglob
$ echo [l]
bash: no match: [l]

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org