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 protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to