bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

brace expansion broken


From: agriffis
Subject: brace expansion broken
Date: Tue, 28 Sep 2004 22:47:59 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -march=athlon-xp -O3 -pipe
uname output: Linux time.flatmonk.org 2.6.8-gentoo-r4 #1 Sun Sep 12 22:35:03 
EDT 2004 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 13
Release Status: release

Description:
        Brace expansion is broken in some cases when it follows quoted
        text.

Repeat-By:
        #
        # WORKING cases
        #

        $ D=W
        $ echo W{illy,onka}       => Willy Wonka
        $ echo ${D}{illy,onka}    => Willy Wonka
        $ echo "W"{illy,onka}     => Willy Wonka
        $ echo "$D"{illy,onka}    => Willy Wonka

        #
        # BROKEN case: variable with braces inside quotes
        #

        $ D=W
        $ echo "${D}"{illy,onka}  => W{illy,onka}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]