[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: improper handling of [] sequences
From: |
Tatavarty Kalyan |
Subject: |
Re: improper handling of [] sequences |
Date: |
Fri, 22 Jul 2005 11:57:10 +0530 |
Please try, "ls a[[:upper:]]a" instead.
"a[:upper:]a" matches 'a' followed by any one of ':','u','p','e','r'
,followed by 'a'.
Thanks,
Kalyan
On 7/22/05, James Downs <jdowns@shopping.com> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i386
> OS: linux-gnu
> Compiler: i386-redhat-linux-gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -
> DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -
> DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -
> DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -
> D_FILE_OFFSET_BITS=64 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
> uname output: Linux jdowns.epinions.com 2.6.11-1.27_FC3 #1 Tue May 17
> 20:27:37 EDT 2005 i686 i686 i386 GNU/Linux
> Machine Type: i386-redhat-linux-gnu
>
> Bash Version: 3.0
> Patch Level: 14
> Release Status: release
>
> Description:
> bash-3.00$ ls a[:upper:]a
> aea apa ara aua
>
> Repeat-By:
> touch a number of files matching [a-z][a-zA-z][a-z]
> try the ls command listed above
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQBC4ECyGDivo4dtEZcRAjynAJwMn4FffcJ6JlnpjF3kmd4FZyv/fgCdEJox
> LYLwc24C3wMfB5mtZgpo8aY=
> =0to9
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Bug-bash mailing list
> Bug-bash@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-bash
>
>
>