bug-bash
[Top][All Lists]
Advanced

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

Re: apparent bug involving completion and eval


From: Chet Ramey
Subject: Re: apparent bug involving completion and eval
Date: Sat, 08 Jan 2005 22:56:15 -0500
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

address@hidden wrote:
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/bash-3.0/share/locale' 
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux gilead 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 
unknown
Machine Type: i686-pc-linux-gnu

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

Description:

In certain circumstances, attempting completion seems to cause Bash to temporarily forget an alias. This seems
        to occur when `eval' is used in the completion function.

Repeat-By:
        
        To reproduce the problem, I first give the following 3 commands:

                alias c5=echo
                cf5() { eval true; }
                complete -F cf5 c5

        I then type "c5 a" at the command line.  The cursor is now
        just after the `a'.  I then request completion by hitting
        Tab (no completions are found, of course).  I then hit Enter.
        Bash then gives the message "-bash: c5: command not found".

Thanks.  I fixed this one.

Chet




reply via email to

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