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: Sat, 3 Dec 2005 05:28:02 +0000 (GMT)

On Fri, 2 Dec 2005, Chet Ramey wrote:

I can't reproduce it, using bash-2.05b and bash-3.0 on MacOS X and Red
Hat Linux.  I don't use any custom completions or the bash-completion
package, though, so I don't know what effect those might have.

Hmm, I did take pains not to have any .inputrc or completion side-effects. A little more digging:

SHELL 1
$ echo $$
$ read -t 1

(gdb) print /x rl_readline_version
$1 = 0x500
(gdb) print /x rl_readline_state
$2 = 0x4000e

RL_STATE_INITIALIZED
RL_STATE_TERMPREPPED
RL_STATE_READCMD
RL_STATE_TTYCSAVED


SHELL 2
$ echo $$
$ read -e -t 1

(gdb) print /x rl_readline_state
$1 = 0x4800e

RL_STATE_INITIALIZED
RL_STATE_TERMPREPPED
RL_STATE_READCMD
RL_STATE_SIGHANDLER
RL_STATE_TTYCSAVED

Does this help narrow down the cause? If not, I'll have to go diving around in the bash source.


Cheers,
Phil




reply via email to

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