Re: set +o noglob within completion function disables alias expansion
From:
Chet Ramey
Subject:
Re: set +o noglob within completion function disables alias expansion
Date:
Sat, 23 Jul 2005 12:10:53 -0400
User-agent:
Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
Ian Macdonald wrote:
> Hi,
>
> This is a bit of a corner case, but appears to be a bug.
>
> If one defines a completion function that calls 'set +o noglob' and this
> function is then bound to a command, alias expansion is temporarily
> disabled when the command is executed.
>
> If the command is subsequently executed again without calling the
> completion function, alias expansion occurs as normal.
This has already been fixed for bash-3.1. The problem is that shell
function execution during completion didn't save and restore enough
of the parser state.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/