Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#534929: bash 4 outputs spurious ^C when sending SIGINT

4 views
Skip to first unread message

Marc Lehmann

unread,
Jun 28, 2009, 7:20:17 AM6/28/09
to
Package: bash
Version: 4.0-2
Severity: normal


I often search through the history to find an old command to paste,
followed by pressing ^C (causing SIGINT to be sent). This worked fine in
bash versions up to 3, but in version four, this outputs a spurious ^C
_directly into the readline text_. e.g. bash 3:

cerebro ~# man bash
cerebro ~#

bash 4:

cerebro ~# man b^Ch
cerebro ~#

This makes it rather hard to go back to look at old commands. I didn't
find anything about this in the documentation, nor obviously a way to get
sane behaviour (defined by me as "like other shells").

It really is bash that outputs it, as strace'ing it reveals:

--- SIGINT (Interrupt) @ 0 (0) ---
rt_sigreturn(0x2) = -1 EINTR (Interrupted system call)
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(2, "^C"..., 2) = 2

-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii base-files 5 Debian base system miscellaneous f
ii debianutils 2.30 Miscellaneous utilities specific t
hi libc6 2.7-18 GNU C Library: Shared libraries
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand

Versions of packages bash recommends:
pn bash-completion <none> (no description available)

Versions of packages bash suggests:
hi bash-doc 3.2-4 Documentation and examples for the

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

0 new messages