GNU bug report logs - #8587
Curious bug.

Previous Next

Package: coreutils;

Reported by: Francois Boisson <francois <at> boisson.homeip.net>

Date: Fri, 29 Apr 2011 20:17:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 8587 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Alan Curry <pacman-cu <at> kosh.dhis.org>
Cc: Francois Boisson <francois <at> boisson.homeip.net>, 8587 <at> debbugs.gnu.org
Subject: Re: bug#8587: Curious bug.
Date: Sat, 30 Apr 2011 07:15:44 -0600
[Message part 1 (text/plain, inline)]
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   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 14 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.