bug-bash
[Top][All Lists]
Advanced

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

bash-4.1: incorrect substitution of extended glob pattern when recalled


From: Rajeev V. Pillai
Subject: bash-4.1: incorrect substitution of extended glob pattern when recalled with !$
Date: Sun, 14 Feb 2010 04:33:38 +0530 (IST)
User-agent: Alpine 2.01 (LNX 1266 2009-07-14)

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/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O3 
-fomit-frame-pointer -march=native -mfpmath=sse -m3dnow -mmmx -msse -pipe
uname output: Linux athlon.localdomain 2.6.32.8 #1 PREEMPT Wed Feb 10 08:06:34 
IST 2010 i686 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 4.1
Patch Level: 2
Release Status: release

Description:
        When ``shopt -s extglob'' is set, bash-4.1 does not substitute the
        complete extended glob pattern when !$ is used to recall it.

Repeat-By:
        $ ls -l !(*.c|*.h)
            ...output omitted...
        $ ls -l !$
        ls -l )
        bash: syntax error near unexpected token `)'

        $ ls -l ?(*.c|*.h)
            ...output omitted...
        $ ls -l !$
        ls -l )
        bash: syntax error near unexpected token `)'
        $





reply via email to

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