[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval constructs in prog. completion funcs dont't work
From: |
Chet Ramey |
Subject: |
Re: eval constructs in prog. completion funcs dont't work |
Date: |
Thu, 26 Apr 2001 09:39:13 -0400 |
> Machine Type: sparc-sun-solaris2.7
>
> Bash Version: 2.05
> Patch Level: 0
> Release Status: release
>
> Description:
> When there is an eval-construct in a function which is
> called for programmable completion (complete -F ...)
> bash gets into some unexpected state on the first
> completion attempt which uses this function.
It's yacc. yacc-generated parsers are generally not reentrant, which
the completion code needs when `eval' (which runs the parser again) is
used. Use bison to regenerate y.tab.[ch] and rebuild. (I used bison-1.28.)
It's partly my fault. When I upgraded to FreeBSD 4.2 on my primary
development machine, I forgot to install bison, so the y.tab.[ch]
distributed with bash-2.05 are generated by byacc.
I'll probably have to put new y.tab.? files out on my ftp site soon.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/