bug-bash
[Top][All Lists]
Advanced

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

Re: read builtin breaks autocompletion


From: Philip Rowlands
Subject: Re: read builtin breaks autocompletion
Date: Mon, 23 Jan 2006 02:24:16 +0000 (GMT)

Ping

On Wed, 7 Dec 2005, Philip Rowlands wrote:

In builtins/read.def (from bash-3.0.tar.gz):

  677   old_attempted_completion_function = rl_attempted_completion_function;
  678   rl_attempted_completion_function = (rl_completion_func_t *)NULL;
  679   ret = readline (p);
  680   rl_attempted_completion_function = old_attempted_completion_function;


I suspect that, in the case of timeout, the old function is never restored, and remains NULL. (I'm puzzled that this isn't repeatable, unless readline is completely disabled.)

I hope this makes sense to somebody, because the signal handling code and add_unwind_protect looks... scary, and out of my depth to patch.


Phil




reply via email to

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