Re: read builtin breaks autocompletion

2005-12-07 Thread Philip Rowlands
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_funct

[patch] unsafe signal handler

2005-12-07 Thread Tim Waugh
Hi, Here is a patch which aims to address the problem reported earlier: http://lists.gnu.org/archive/html/bug-bash/2005-07/msg00129.html by making the signal handler set a flag which is then checked at strategic points in the main flow of code. What do you think? Tim. */ --- bash-3.0/sig.c.

[patch] memory leak in read builtin

2005-12-07 Thread Tim Waugh
There is at least one memory leak in the read builtin in bash-3.0. To demonstrate it, try this test case: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173283#c10 There is a link to a file, nonblock.c, which you should compile like 'make nonblock'. Then run the short script to see the