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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature