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

Re: Bash and Letter E



Hello,

On Sun, Mar 26, 2000 at 08:13:25AM -0800, David Benson wrote:
> I only have one debugging idea, but your problem sounds
> like no fun, so I hope this helps...
> 
> Try running ``strace bash'' to see whether the key-event
> is making it to bash.
> 
> If so, try other libreadline-based programs (eg gdb, ncftp).
> I blame readline prematurely here...

Look at the output (the error occurs with bash, ftp and gdb, these are the programs I tested with)

rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "E", 1)                         = 1
^^^^^^^^^^^^^^^

Here I typed E.

read(0, "g", 1)                         = 1
^^^^^^^^^^^^^^^

It waits for another key. I typed g here

write(2, "\7", 1)                       = 1
^^^^^^^^^^^^^^^^^

And it returns a beep, for every single program.

rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
read(0, "t", 1)                         = 1
write(2, "t", 1t)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "T", 1)                         = 1
write(2, "T", 1T)                        = 1

And here is what happens with "normal" keys. Any other idea?

> Good Luck, and Happy Bug Hunting,
> Dave

Thank you very much, Dave, for your help.

PS: Please, send a carbon copy to me. I am not a subscriber from
debian-devel and debian-user lists.

[]'s
-- 
Rodrigo Castro   <rcastro@linux.ime.usp.br>
Computer Science undergraduate student - University of Sao Paulo

I do not fear computers.  I fear the lack of them.
                -- Isaac Asimov


Reply to: